diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2007-06-15 06:28:56 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2007-06-15 06:28:56 +0000 |
commit | 1c487e4be8de182e2323d7a1d6126859e3172fe9 (patch) | |
tree | 093d7ee013c6095fc3fe913281431be5e62550f6 | |
parent | e381bde1ea74552c227e33dbb0c73a2fade897f6 (diff) | |
download | luasocket-1c487e4be8de182e2323d7a1d6126859e3172fe9.tar.gz luasocket-1c487e4be8de182e2323d7a1d6126859e3172fe9.tar.bz2 luasocket-1c487e4be8de182e2323d7a1d6126859e3172fe9.zip |
Almost ready to release.
-rw-r--r-- | LICENSE | 4 | ||||
-rw-r--r-- | NEW | 12 | ||||
-rw-r--r-- | doc/index.html | 76 | ||||
-rw-r--r-- | doc/installation.html | 8 |
4 files changed, 41 insertions, 59 deletions
@@ -1,5 +1,5 @@ | |||
1 | LuaSocket 2.0.1 license | 1 | LuaSocket 2.0.2 license |
2 | Copyright © 2004-2006 Diego Nehab | 2 | Copyright © 2004-2007 Diego Nehab |
3 | 3 | ||
4 | Permission is hereby granted, free of charge, to any person obtaining a | 4 | Permission is hereby granted, free of charge, to any person obtaining a |
5 | copy of this software and associated documentation files (the "Software"), | 5 | copy of this software and associated documentation files (the "Software"), |
@@ -1 +1,11 @@ | |||
1 | Fixed case sensitivity in headers of multipart messages in smtp.message. | 1 | What's New |
2 | |||
3 | This is just a bug-fix/update release. | ||
4 | |||
5 | * Fixed: crash when reading '*a' on closed socket (Duck); | ||
6 | * Fixed: return values are consistent when reading from closed sockets; | ||
7 | * Fixed: case sensitivity in headers of multipart messages in | ||
8 | smtp.message() (Graham Henstridge); | ||
9 | * Fixed a couple instances of error() being called instead of base.error(). These would cause an error when an error was reported. :) (Ketmar Dark); | ||
10 | * Fixed: test script now uses pairs() iterator instead of the old | ||
11 | Lua syntax (Robert Dodier). | ||
diff --git a/doc/index.html b/doc/index.html index ab4bea6..4992e04 100644 --- a/doc/index.html +++ b/doc/index.html | |||
@@ -78,7 +78,7 @@ LuaSocket. | |||
78 | </p> | 78 | </p> |
79 | 79 | ||
80 | <p> | 80 | <p> |
81 | Copyright © 2004-2006 Diego Nehab. All rights reserved. <br> | 81 | Copyright © 2004-2007 Diego Nehab. All rights reserved. <br> |
82 | Author: <A href="http://www.cs.princeton.edu/~diego">Diego Nehab</a> | 82 | Author: <A href="http://www.cs.princeton.edu/~diego">Diego Nehab</a> |
83 | </p> | 83 | </p> |
84 | 84 | ||
@@ -87,10 +87,10 @@ Author: <A href="http://www.cs.princeton.edu/~diego">Diego Nehab</a> | |||
87 | <h2 id=download>Download</h2> | 87 | <h2 id=download>Download</h2> |
88 | 88 | ||
89 | <p> | 89 | <p> |
90 | LuaSocket version 2.0.1 is now available for download! It is | 90 | LuaSocket version 2.0.2 is now available for download! It is |
91 | compatible with Lua 5.0 and Lua 5.1, and has | 91 | compatible with Lua 5.1, and has |
92 | been tested on Windows XP, Linux, and Mac OS X. Chances | 92 | been tested on Windows XP, Linux, and Mac OS X. Chances |
93 | are it works well on most UNIX systems. | 93 | are it works well on most UNIX distributions and Windows flavours. |
94 | </p> | 94 | </p> |
95 | 95 | ||
96 | <p> | 96 | <p> |
@@ -108,55 +108,11 @@ available from LuaForge. These are compatible with the | |||
108 | also available from LuaForge. | 108 | also available from LuaForge. |
109 | </p> | 109 | </p> |
110 | 110 | ||
111 | <p> | 111 | <p> Take a look at the <a |
112 | If you are using Lua 5.0, and want to give LuaSocket a quick | 112 | href=installation.html>installation</a> section of the |
113 | try, download the stand-alone archive and unpack everything into | 113 | manual to find out how to properly install the library. |
114 | a directory, say <tt>c:\luasocket</tt>. Then set <tt>LUA_INIT</tt> to load | ||
115 | the <tt>compat-5.1.lua</tt> and set <tt>LUA_PATH</tt> and | ||
116 | <tt>LUA_CPATH</tt> to look for files in the current directory: | ||
117 | </p> | ||
118 | |||
119 | <pre class=example> | ||
120 | c:\luasocket\> set LUA_INIT=@c:\luasocket\compat-5.1.lua | ||
121 | c:\luasocket\> set LUA_CPATH=?.dll | ||
122 | c:\luasocket\> set LUA_PATH=?.lua | ||
123 | </pre> | ||
124 | |||
125 | <p> | ||
126 | From that directory, you can then run the interpreter and it should find all | ||
127 | files it needs. To download this manual page from the Internet, for example, | ||
128 | do the following: | ||
129 | </p> | ||
130 | |||
131 | <pre class=example> | ||
132 | c:\luasocket\> lua50 | ||
133 | Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio | ||
134 | > http = require"socket.http" | ||
135 | > print(http.request"http://www.cs.princeton.edu/~diego/professional/luasocket/") | ||
136 | --> the source to this web page gets dumped to terminal | ||
137 | </pre> | ||
138 | |||
139 | <p> | ||
140 | If you are using Lua 5.1, you shouldn't use | ||
141 | <tt>compat-5.1.lua</tt>. Just unpack the standalone | ||
142 | directory, set <tt>LUA_CPATH</tt> and <tt>LUA_PATH</tt>, and | ||
143 | you should be ready to run: | ||
144 | </p> | 114 | </p> |
145 | 115 | ||
146 | <pre class=example> | ||
147 | c:\luasocket\> set LUA_CPATH=?.dll | ||
148 | c:\luasocket\> set LUA_PATH=?.lua | ||
149 | c:\luasocket\> lua5.1 | ||
150 | Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio | ||
151 | > http = require"socket.http" | ||
152 | > print(http.request"http://www.cs.princeton.edu/~diego/professional/luasocket/" | ||
153 | --> the source to this web page gets dumped to terminal | ||
154 | </pre> | ||
155 | |||
156 | <p> When you are done playing, take a look at the | ||
157 | <a href=installation.html>installation</a> section of the manual to find out | ||
158 | how to properly install the library. </p> | ||
159 | |||
160 | <!-- thanks +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 116 | <!-- thanks +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
161 | 117 | ||
162 | <h2 id=thanks>Special thanks</h2> | 118 | <h2 id=thanks>Special thanks</h2> |
@@ -177,7 +133,23 @@ has been helping a lot too! Thanks to you all! | |||
177 | <h2 id=new>What's New</h2> | 133 | <h2 id=new>What's New</h2> |
178 | 134 | ||
179 | <p> | 135 | <p> |
180 | This is just a bug-fix/update release. | 136 | 2.0.2 is just a bug-fix/update release. |
137 | </p> | ||
138 | |||
139 | <ul> | ||
140 | <li> Fixed: crash when reading '*a' on closed socket (Duck); | ||
141 | <li> Fixed: return values are consistent when reading from closed sockets; | ||
142 | <li> Fixed: case sensitivity in headers of multipart | ||
143 | messages in smtp.message() (Graham Henstridge); | ||
144 | <li> Fixed a couple instances of error() being called instead of | ||
145 | base.error(). These would cause an error when an error was | ||
146 | reported :) (Ketmar Dark); | ||
147 | <li> Fixed: test script now uses pairs() iterator instead | ||
148 | of the old Lua syntax (Robert Dodier). | ||
149 | </ul> | ||
150 | |||
151 | <p> | ||
152 | 2.0.1 is just a bug-fix/update release. | ||
181 | </p> | 153 | </p> |
182 | 154 | ||
183 | <ul> | 155 | <ul> |
diff --git a/doc/installation.html b/doc/installation.html index 8c64557..0288f4a 100644 --- a/doc/installation.html +++ b/doc/installation.html | |||
@@ -39,7 +39,7 @@ Installation"> | |||
39 | 39 | ||
40 | <h2>Installation</h2> | 40 | <h2>Installation</h2> |
41 | 41 | ||
42 | <p> LuaSocket 2.0.1 uses the new package system for Lua 5.1. | 42 | <p> LuaSocket 2.0.2 uses the new package system for Lua 5.1. |
43 | All Lua library developers are encouraged to update their libraries so that | 43 | All Lua library developers are encouraged to update their libraries so that |
44 | all libraries can coexist peacefully and users can benefit from the | 44 | all libraries can coexist peacefully and users can benefit from the |
45 | standardization and flexibility of the standard. | 45 | standardization and flexibility of the standard. |
@@ -122,17 +122,17 @@ it should be easy to use LuaSocket. Just fire the interpreter and use the | |||
122 | <tt>require</tt> function to gain access to whatever module you need:</p> | 122 | <tt>require</tt> function to gain access to whatever module you need:</p> |
123 | 123 | ||
124 | <pre class=example> | 124 | <pre class=example> |
125 | Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio | 125 | Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio |
126 | > socket = require("socket") | 126 | > socket = require("socket") |
127 | > print(socket._VERSION) | 127 | > print(socket._VERSION) |
128 | --> LuaSocket 2.0.1 | 128 | --> LuaSocket 2.0.2 |
129 | </pre> | 129 | </pre> |
130 | 130 | ||
131 | <p> Each module loads their dependencies automatically, so you only need to | 131 | <p> Each module loads their dependencies automatically, so you only need to |
132 | load the modules you directly depend upon: </p> | 132 | load the modules you directly depend upon: </p> |
133 | 133 | ||
134 | <pre class=example> | 134 | <pre class=example> |
135 | Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio | 135 | Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio |
136 | > http = require("socket.http") | 136 | > http = require("socket.http") |
137 | > print(http.request("http://www.cs.princeton.edu/~diego/professional/luasocket")) | 137 | > print(http.request("http://www.cs.princeton.edu/~diego/professional/luasocket")) |
138 | --> homepage gets dumped to terminal | 138 | --> homepage gets dumped to terminal |