A look at the new features shows a few API changes that were introduced in Ruby 1.9, but have been backported to Ruby 1.8.7:
- Enumerable::Enumerator is a feature of Ruby 1.9 to bring external iterators to Ruby (these come in addition to the internal iteration methods in the Enumerable mixin). Some of the methods in Enumerable have also been updated to behave more like in Ruby 1.9, e.g. returning Enumerators if no blocks are given.
- Object#tap
- Symbol#to_proc
- Process.exec
- etc.
For everyone testing multiple Ruby versions, we reported about using Multiruby to test Ruby applications on different Ruby versions.
Community comments
Forced Upgrade
by Daniel Berger,
Forced Upgrade
by Daniel Berger,
Your message is awaiting moderation. Thank you for participating in the discussion.
The moment the Rails teams decides to use any of the new 1.8.7 features this becomes a forced upgrade. Awful, awful decision, but just what I've come to expect from the Ruby core team.