README in shared-0.4.2 vs README in shared-0.4.3

- old
+ new

@@ -10,10 +10,15 @@ URIS http://rubyforge.org/projects/codeforpeople http://codeforpeople.com/lib/ruby/ HISTORY + 0.4.3 + - added version info + - move methods from Object to Kernel and made them private (thx Stefan + Rusterholz) + 0.4.2 initial version SAMPLES @@ -42,12 +47,16 @@ p Bar.new.classname #=> "Bar" ~ > ruby samples/a.rb - "Foo" - "Bar" + samples/a.rb:4:in `require': ./lib/shared.rb:2: no .<digit> floating literal anymore; put 0 before dot (SyntaxError) + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ + ./lib/shared.rb:2: syntax error, unexpected tINTEGER + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ from samples/a.rb:4 <========< samples/b.rb >========> ~ > cat samples/b.rb @@ -71,11 +80,16 @@ p(C.class_method + C.new.instance_method) #=> 42 ~ > ruby samples/b.rb - 42 + samples/b.rb:5:in `require': ./lib/shared.rb:2: no .<digit> floating literal anymore; put 0 before dot (SyntaxError) + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ + ./lib/shared.rb:2: syntax error, unexpected tINTEGER + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ from samples/b.rb:5 <========< samples/c.rb >========> ~ > cat samples/c.rb @@ -106,11 +120,16 @@ p a.to_range #=> "a".."c" ~ > ruby samples/c.rb - "a".."c" + samples/c.rb:5:in `require': ./lib/shared.rb:2: no .<digit> floating literal anymore; put 0 before dot (SyntaxError) + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ + ./lib/shared.rb:2: syntax error, unexpected tINTEGER + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ from samples/c.rb:5 <========< samples/d.rb >========> ~ > cat samples/d.rb @@ -137,11 +156,16 @@ p Model.new.to_html #=> "<blink> zaphod </blink>" ~ > ruby samples/d.rb - "<blink> zaphod </blink>" + samples/d.rb:5:in `require': ./lib/shared.rb:2: no .<digit> floating literal anymore; put 0 before dot (SyntaxError) + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ + ./lib/shared.rb:2: syntax error, unexpected tINTEGER + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ from samples/d.rb:5 <========< samples/e.rb >========> ~ > cat samples/e.rb @@ -177,7 +201,12 @@ p(Foo.instances.size + Bar.instances.size) ~ > ruby samples/e.rb - 42 + samples/e.rb:5:in `require': ./lib/shared.rb:2: no .<digit> floating literal anymore; put 0 before dot (SyntaxError) + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ + ./lib/shared.rb:2: syntax error, unexpected tINTEGER + Shared::VERSION = 0.4.3 unless defined?(Shared::VERSION) + ^ from samples/e.rb:5