News for hackers. Stuff that matters.
Re:Ruby 2.2.0 Released by grandalf on Thursday December 25, 2014 @09:41PM (#8797820)
What is the nature of the incompatibility?
Re:Ruby 2.2.0 Released by cmelbye on Thursday December 25, 2014 @10:25PM (#8797913)
One change is that test/unit is now no longer part of the standard library, which Rails requires. The workaround is simple, "test-unit" must be added to the Gemfile.

A less easily fixed change is that the following syntax no longer works the same as it did in previous versions of Ruby:

    def foo(bar = bar)
The recommended fix is the following: (I believe)

    def foo(bar = bar())
Rails uses this syntax occasionally. It's simple to change, but the Rails team refuses to merge in the fixes because it's not a security issue.
Re:Ruby 2.2.0 Released by grandalf on Friday December 26, 2014 @11:25AM (#8799192)
Wow that's too bad.

Do you know if the Rails team would approve a patch that was submitted?

Also, the change of the meaning of the right bar in your example above seems significant. Do you happen to know of any context for that change?

Re:Ruby 2.2.0 Released by ehsanu1 on Friday January 02, 2015 @02:45PM (#8828152)