RubyGems Tests Pass on 1.9

Eric Hodel | Thu, 20 Sep 2007 10:00:25 GMT

Posted in ,

455 tests, 1600 assertions, 0 failures, 0 errors

Wooo!

Here’s some of the changes and notes I made for you:

  • Removed some privates, because life is better without privates.
  • 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! 4 comments

Comments RSS FEED

SWEET. Good notes, thanks.

netshade said about 4 hours later

Great news Eric!

There are plans to solve the issue with pure-ruby, ruby+extensions and prebuilt gems for different platforms?

Luis Lavena said 2 days later

Luis: Check out my Rubygems category.

Eric Hodel said 2 days later

Thanks Eric, missed that post…

BTW, adding your feed to my reader :-)

Luis Lavena said 4 days later

Comments are disabled