Eric Hodel
Posts: 660
Nickname: drbrain
Registered: Mar, 2006
Eric Hodel is a long-time Rubyist and co-founder of Seattle.rb.
RubyGems Tests Pass on 1.9
Posted: Sep 20, 2007 4:53 AM
This post originated from an RSS feed registered with Ruby Buzz
by Eric Hodel.
Original Post: RubyGems Tests Pass on 1.9
Feed Title: Segment7
Feed URL: http://blog.segment7.net/articles.rss
Feed Description: Posts about and around Ruby, MetaRuby, ruby2c, ZenTest and work at The Robot Co-op.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eric Hodel
Latest Posts From Segment7
Advertisement
455 tests, 1600 assertions, 0 failures, 0 errors
Wooo!
Here’s some of the changes and notes I made for you:
Removed some private s, because life is better without private s.
Added Object#send! stub on 1.8.
lambda cares about number of arguments now, so add |*a| .
ENV['FOO'] = nil
becomes ENV.delete 'FOO'
. This is the most annoying change, since restoring defaults is a pain.
WEBrick’s response object’s #code alias is gone, use #status
(i = 0; 5.times do |i| end; i == 4)
is false, so use a separate variable like count, and add count = i
Kernel#require stores the full path to the require’d file now.
There’s something going on with class variable sharing between a module and its singleton class. See [ruby-core:12200] .
Strings aren’t Array-like anymore, so use things like Kernel#Array instead of String#to_a
#methods and #instance_variables return arrays of symbols instead of strings now.
Also, the tests run 20-25% faster on 1.9 than 1.8. Look for a beta of RubyGems coming next week!
Read: RubyGems Tests Pass on 1.9