extensions 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ 2004-10-04 Gavin Sinclair <gsinclair@soyabean.com.au>
2
+
3
+ * RELEASE: 0.5.0 ===================================================
4
+ * lib/extensions/binding.rb: New file, with Binding.of_caller and
5
+ several convenience methods like Binding#eval.
6
+ * lib/extensions/continuation.rb: New file, with Continuation.create.
7
+ * lib/extensions/all.rb: Include binding.rb and continuation.rb.
8
+ * test/tc_binding.rb: Test cases for Binding.
9
+ * test/tc_continuation.rb: Test cases for Continuation.
10
+ * README: Updated to describe release of 0.5.
11
+ * Rakefile: added 'install' target (build and installs gem).
12
+
1
13
  2004-09-23 Gavin Sinclair <gsinclair@soyabean.com.au>
2
14
 
3
15
  * RELEASE: 0.4.0 ===================================================
data/HISTORY CHANGED
@@ -1,59 +1,59 @@
1
- This file describes the difference between releases, and documents that date
2
- those releases were made. See ChangeLog for more information.
3
-
4
- 2003-10-04, v0.2.0 (v0_2_0)
5
-
6
- - string.rb completed with working functionality, two more methods, and full
7
- unit tests. New methods:
8
- String#taballto
9
- String#leftmost_indent
10
- String#expand_tabs
11
-
12
- - Numeric#format_s, adopted from Austin Ziegler's contribution to
13
- FixNumFormat on the wiki, added.
14
-
15
- - Fixed important typo in install-doc.rb.
16
-
17
- - Removed most methods from io.rb as they look cluttered and I'm not exactly
18
- sure what to do with them! Only IO.write remains, which is the only
19
- really important one.
20
-
21
- - Generated RDoc goes to directory "rdoc" not "doc" now. It is installed to
22
- that directory, and uploaded to http://extensions.rubyforge.org/rdoc with
23
- etc/doctools/website/upload.sh.
24
-
25
- - General improvement in documentation.
26
-
27
- - etc/release directory introduced for generating tarballs from CVS.
28
-
29
-
30
- 2003-10-02, v0.1 (v0_1)
31
-
32
- - 'rbxtm' returns the following
33
-
34
- Class#autoinit
35
- Enumerable#build_hash
36
- Enumerable#collect_with_index
37
- Enumerable#contains?
38
- Enumerable#has?
39
- Enumerable#includes?
40
- Enumerable#map_with_index
41
- IO::read_binary
42
- IO::read_text
43
- IO::write
44
- IO::write_binary
45
- IO::write_text
46
- Integer#even?
47
- Integer#odd?
48
- Object#in?
49
- Object#singleton_class
50
- String#indent
51
- String#outdent
52
- String#tabto
53
- String#trim
54
-
55
- - Not all methods are thoroughly tested. String and IO are the only ones
56
- lacking, I think.
57
-
58
- - Infrastructure: etc/website/*, etc/doctools/*, README all in good shape.
59
- etc/release/* nonexistent.
1
+ This file describes the difference between releases, and documents that date
2
+ those releases were made. See ChangeLog for more information.
3
+
4
+ 2003-10-04, v0.2.0 (v0_2_0)
5
+
6
+ - string.rb completed with working functionality, two more methods, and full
7
+ unit tests. New methods:
8
+ String#taballto
9
+ String#leftmost_indent
10
+ String#expand_tabs
11
+
12
+ - Numeric#format_s, adopted from Austin Ziegler's contribution to
13
+ FixNumFormat on the wiki, added.
14
+
15
+ - Fixed important typo in install-doc.rb.
16
+
17
+ - Removed most methods from io.rb as they look cluttered and I'm not exactly
18
+ sure what to do with them! Only IO.write remains, which is the only
19
+ really important one.
20
+
21
+ - Generated RDoc goes to directory "rdoc" not "doc" now. It is installed to
22
+ that directory, and uploaded to http://extensions.rubyforge.org/rdoc with
23
+ etc/doctools/website/upload.sh.
24
+
25
+ - General improvement in documentation.
26
+
27
+ - etc/release directory introduced for generating tarballs from CVS.
28
+
29
+
30
+ 2003-10-02, v0.1 (v0_1)
31
+
32
+ - 'rbxtm' returns the following
33
+
34
+ Class#autoinit
35
+ Enumerable#build_hash
36
+ Enumerable#collect_with_index
37
+ Enumerable#contains?
38
+ Enumerable#has?
39
+ Enumerable#includes?
40
+ Enumerable#map_with_index
41
+ IO::read_binary
42
+ IO::read_text
43
+ IO::write
44
+ IO::write_binary
45
+ IO::write_text
46
+ Integer#even?
47
+ Integer#odd?
48
+ Object#in?
49
+ Object#singleton_class
50
+ String#indent
51
+ String#outdent
52
+ String#tabto
53
+ String#trim
54
+
55
+ - Not all methods are thoroughly tested. String and IO are the only ones
56
+ lacking, I think.
57
+
58
+ - Infrastructure: etc/website/*, etc/doctools/*, README all in good shape.
59
+ etc/release/* nonexistent.
data/InstalledFiles ADDED
@@ -0,0 +1,50 @@
1
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/all.rb
2
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/class.rb
3
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/enumerable.rb
4
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/io.rb
5
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/numeric.rb
6
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/object.rb
7
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/string.rb
8
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/symbol.rb
9
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_base.rb
10
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_template.rb
11
+ /usr/local/bin//rbxtm
12
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/all.rb
13
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/array.rb
14
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/hash.rb
15
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/io.rb
16
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/object.rb
17
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/ostruct.rb
18
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/string.rb
19
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_base.rb
20
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_template.rb
21
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/all.rb
22
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/object.rb
23
+ /usr/local/bin//rbxtm
24
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/all.rb
25
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/array.rb
26
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/class.rb
27
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/enumerable.rb
28
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/hash.rb
29
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/io.rb
30
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/numeric.rb
31
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/object.rb
32
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/ostruct.rb
33
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/string.rb
34
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/symbol.rb
35
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_base.rb
36
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_template.rb
37
+ /usr/local/bin//rbxtm
38
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/all.rb
39
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/array.rb
40
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/class.rb
41
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/enumerable.rb
42
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/hash.rb
43
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/io.rb
44
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/numeric.rb
45
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/object.rb
46
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/ostruct.rb
47
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/string.rb
48
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/symbol.rb
49
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_base.rb
50
+ /usr/local/lib/ruby/site_ruby/1.8/extensions/_template.rb
data/README CHANGED
@@ -91,15 +91,14 @@ Wiki Page:: http://www.rubygarden.org/ruby?StandardClassExtensions
91
91
 
92
92
  == Current Version and Status
93
93
 
94
- Version 0.4 was released on 2004-09-23 and can be installed as a gem,
94
+ Version 0.5 was released on 2004-10-04 and can be installed as a gem,
95
95
  installed via the RPA, or downloaded from the project page. Anybody is
96
96
  welcome to access the CVS and see changes as they happen. As always,
97
97
  everything included is unit tested and well documented.
98
98
 
99
- Version 0.4 is a precursor to version 0.5 where yet more methods will be
100
- introduced. It just makes sense to release what's currently available before
101
- committing to that effort. The long-term goal of <tt>extensions</tt> is to
102
- become part of the <tt>addlib</tt> project.
99
+ Version 0.4 was released on 2004-09-23, not long before 0.5. The reason for
100
+ the quick update is the addition of the important method
101
+ <tt>Binding.of_caller</tt>, on which the 'dev-utils' package depends.
103
102
 
104
103
  Several methods have been added since version 0.3. <tt>ChangeLog</tt> has all
105
104
  the details, and the changes are highlighted below.
@@ -110,6 +109,9 @@ released with new methods. Nobody has complained about bugs so far, and any
110
109
  bugs would be easy to fix, so I have no problem using this package in my own
111
110
  production code.
112
111
 
112
+ The long-term goal of <tt>extensions</tt> is to become part of the
113
+ <tt>addlib</tt> project.
114
+
113
115
  The methods listed in this document will always reflect the most recent
114
116
  released version, but the online RDoc will reflect what's in the latest CVS.
115
117
 
@@ -160,10 +162,10 @@ The "base directory" is the directory you unpacked from the tarball. If you
160
162
  installed via RubyGems, you might try this:
161
163
 
162
164
  gem unpack extensions
163
- cd extensions-0.4.0
165
+ cd extensions-0.5.0
164
166
  ruby install-doc.rb [location]
165
167
  cd ..
166
- rm -rf extensions-0.4.0
168
+ rm -rf extensions-0.5.0
167
169
 
168
170
  <tt>gem unpack</tt> is like having access to the tarball without having to
169
171
  manually download it.
@@ -177,7 +179,14 @@ At time of writing, this command gives (<tt>+</tt> indicates new method since
177
179
  0.3).
178
180
 
179
181
  + Array#select!
182
+ + Binding#[]
183
+ + Binding#[]=
184
+ + Binding#defined?
185
+ + Binding#eval
186
+ + Binding#local_variables
187
+ + Binding.of_caller
180
188
  Class#autoinit
189
+ + Continuation.create
181
190
  Enumerable#build_hash
182
191
  Enumerable#collect_with_index
183
192
  Enumerable#collectf
@@ -217,7 +226,9 @@ At time of writing, this command gives (<tt>+</tt> indicates new method since
217
226
  The files that you can load are:
218
227
 
219
228
  extensions/all
229
+ extensions/binding
220
230
  extensions/class
231
+ extensions/continuation
221
232
  extensions/enumerable
222
233
  extensions/io
223
234
  extensions/numeric
@@ -336,6 +347,6 @@ Standard disclaimer:
336
347
  ------
337
348
 
338
349
  <i>
339
- $Id: README,v 1.12 2004/09/23 09:44:43 gsinclair Exp $
350
+ $Id: README,v 1.13 2004/10/04 06:25:18 gsinclair Exp $
340
351
  vim: et sw=2 ts=2 sts=2 ai
341
352
  </i>
data/README.1st CHANGED
@@ -1,11 +1,11 @@
1
- README (in the top-level directory, which should be the one you're in now)
2
- contains all the documentation for this package, apart from the RDoc
3
- information.
4
-
5
- You can read it as plain text if you like, but it's easier to read as HTML
6
- after being RDoc'ed. Two options:
7
- * run 'ruby install-doc.rb' (probably Unix/Cygwin only for now)
8
- and/or
9
- * read the README as HTML online at http://extensions.rubyforge.org.
10
-
11
- The HTML on the internet contains RDocs for the very latest (CVS) code.
1
+ README (in the top-level directory, which should be the one you're in now)
2
+ contains all the documentation for this package, apart from the RDoc
3
+ information.
4
+
5
+ You can read it as plain text if you like, but it's easier to read as HTML
6
+ after being RDoc'ed. Two options:
7
+ * run 'ruby install-doc.rb' (probably Unix/Cygwin only for now)
8
+ and/or
9
+ * read the README as HTML online at http://extensions.rubyforge.org.
10
+
11
+ The HTML on the internet contains RDocs for the very latest (CVS) code.
data/Rakefile CHANGED
@@ -77,6 +77,12 @@ Rake::GemPackageTask.new(spec) do |pkg|
77
77
  pkg.need_tar = true
78
78
  end
79
79
 
80
+ # Install the gem.
81
+ task :install => :repackage do
82
+ file = Dir['build/packages/*.gem'].last or fail
83
+ sh "gem install #{file}"
84
+ end
85
+
80
86
  # Upload website (:website)
81
87
  desc 'Upload RDoc information to RubyForge'
82
88
  task :website => :rerdoc do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
data/bin/rbxtm CHANGED
@@ -1,13 +1,13 @@
1
- #!/usr/local/bin/ruby
2
-
3
- #
4
- # rbxtm - Ruby/Extensions methods
5
- #
6
- # Lists all the methods implemented by the Ruby/Extensions package
7
- # (http://extensions.rubyforge.org). Intended as a quick command-line reference
8
- # card. See the package's RDoc for proper documentation.
9
- #
10
-
11
- require 'extensions/all'
12
-
13
- puts ExtensionsProject.extension_methods.sort
1
+ #!/usr/local/bin/ruby
2
+
3
+ #
4
+ # rbxtm - Ruby/Extensions methods
5
+ #
6
+ # Lists all the methods implemented by the Ruby/Extensions package
7
+ # (http://extensions.rubyforge.org). Intended as a quick command-line reference
8
+ # card. See the package's RDoc for proper documentation.
9
+ #
10
+
11
+ require 'extensions/all'
12
+
13
+ puts ExtensionsProject.extension_methods.sort
@@ -1,10 +1,10 @@
1
- <html>
2
- <head>
3
- <meta http-equiv="Refresh" content="0; URL=/rdoc/index.html"/>
4
- </head>
5
- <body>
6
- Redirecting to <a href="/rdoc/index.html">here</a>
7
- </body>
8
- </html>
9
-
10
-
1
+ <html>
2
+ <head>
3
+ <meta http-equiv="Refresh" content="0; URL=/rdoc/index.html"/>
4
+ </head>
5
+ <body>
6
+ Redirecting to <a href="/rdoc/index.html">here</a>
7
+ </body>
8
+ </html>
9
+
10
+