aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2007-06-15 06:28:56 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2007-06-15 06:28:56 +0000
commit1c487e4be8de182e2323d7a1d6126859e3172fe9 (patch)
tree093d7ee013c6095fc3fe913281431be5e62550f6
parente381bde1ea74552c227e33dbb0c73a2fade897f6 (diff)
downloadluasocket-1c487e4be8de182e2323d7a1d6126859e3172fe9.tar.gz
luasocket-1c487e4be8de182e2323d7a1d6126859e3172fe9.tar.bz2
luasocket-1c487e4be8de182e2323d7a1d6126859e3172fe9.zip
Almost ready to release.
-rw-r--r--LICENSE4
-rw-r--r--NEW12
-rw-r--r--doc/index.html76
-rw-r--r--doc/installation.html8
4 files changed, 41 insertions, 59 deletions
diff --git a/LICENSE b/LICENSE
index 67f0f85..8c3cfe5 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,5 +1,5 @@
1LuaSocket 2.0.1 license 1LuaSocket 2.0.2 license
2Copyright © 2004-2006 Diego Nehab 2Copyright © 2004-2007 Diego Nehab
3 3
4Permission is hereby granted, free of charge, to any person obtaining a 4Permission is hereby granted, free of charge, to any person obtaining a
5copy of this software and associated documentation files (the "Software"), 5copy of this software and associated documentation files (the "Software"),
diff --git a/NEW b/NEW
index 13b6d60..ad8c74c 100644
--- a/NEW
+++ b/NEW
@@ -1 +1,11 @@
1Fixed case sensitivity in headers of multipart messages in smtp.message. 1What's New
2
3This 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>
81Copyright &copy; 2004-2006 Diego Nehab. All rights reserved. <br> 81Copyright &copy; 2004-2007 Diego Nehab. All rights reserved. <br>
82Author: <A href="http://www.cs.princeton.edu/~diego">Diego Nehab</a> 82Author: <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>
90LuaSocket version 2.0.1 is now available for download! It is 90LuaSocket version 2.0.2 is now available for download! It is
91compatible with Lua&nbsp;5.0 and Lua&nbsp;5.1, and has 91compatible with Lua&nbsp;5.1, and has
92been tested on Windows&nbsp;XP, Linux, and Mac OS X. Chances 92been tested on Windows&nbsp;XP, Linux, and Mac OS X. Chances
93are it works well on most UNIX systems. 93are 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
108also available from LuaForge. 108also available from LuaForge.
109</p> 109</p>
110 110
111<p> 111<p> Take a look at the <a
112If you are using Lua 5.0, and want to give LuaSocket a quick 112href=installation.html>installation</a> section of the
113try, download the stand-alone archive and unpack everything into 113manual to find out how to properly install the library.
114a directory, say <tt>c:\luasocket</tt>. Then set <tt>LUA_INIT</tt> to load
115the <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>
120c:\luasocket\&gt; set LUA_INIT=@c:\luasocket\compat-5.1.lua
121c:\luasocket\&gt; set LUA_CPATH=?.dll
122c:\luasocket\&gt; set LUA_PATH=?.lua
123</pre>
124
125<p>
126From that directory, you can then run the interpreter and it should find all
127files it needs. To download this manual page from the Internet, for example,
128do the following:
129</p>
130
131<pre class=example>
132c:\luasocket\&gt; lua50
133Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio
134&gt; http = require"socket.http"
135&gt; print(http.request"http://www.cs.princeton.edu/~diego/professional/luasocket/")
136--&gt; the source to this web page gets dumped to terminal
137</pre>
138
139<p>
140If you are using Lua 5.1, you shouldn't use
141<tt>compat-5.1.lua</tt>. Just unpack the standalone
142directory, set <tt>LUA_CPATH</tt> and <tt>LUA_PATH</tt>, and
143you should be ready to run:
144</p> 114</p>
145 115
146<pre class=example>
147c:\luasocket\&gt; set LUA_CPATH=?.dll
148c:\luasocket\&gt; set LUA_PATH=?.lua
149c:\luasocket\&gt; lua5.1
150Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
151&gt; http = require"socket.http"
152&gt; print(http.request"http://www.cs.princeton.edu/~diego/professional/luasocket/"
153--&gt; 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
158how 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>
180This is just a bug-fix/update release. 1362.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
143messages in smtp.message() (Graham Henstridge);
144<li> Fixed a couple instances of error() being called instead of
145base.error(). These would cause an error when an error was
146reported :) (Ketmar Dark);
147<li> Fixed: test script now uses pairs() iterator instead
148of the old Lua syntax (Robert Dodier).
149</ul>
150
151<p>
1522.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.
43All Lua library developers are encouraged to update their libraries so that 43All Lua library developers are encouraged to update their libraries so that
44all libraries can coexist peacefully and users can benefit from the 44all libraries can coexist peacefully and users can benefit from the
45standardization and flexibility of the standard. 45standardization 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>
125Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio 125Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
126&gt; socket = require("socket") 126&gt; socket = require("socket")
127&gt; print(socket._VERSION) 127&gt; print(socket._VERSION)
128--&gt; LuaSocket 2.0.1 128--&gt; 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
132load the modules you directly depend upon: </p> 132load the modules you directly depend upon: </p>
133 133
134<pre class=example> 134<pre class=example>
135Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio 135Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
136&gt; http = require("socket.http") 136&gt; http = require("socket.http")
137&gt; print(http.request("http://www.cs.princeton.edu/~diego/professional/luasocket")) 137&gt; print(http.request("http://www.cs.princeton.edu/~diego/professional/luasocket"))
138--&gt; homepage gets dumped to terminal 138--&gt; homepage gets dumped to terminal