Live data from Hacker News

Ruby 2.2.0 Released

ruby-lang.org

81–82 of 82 posts

Re: Ruby 2.2.0 Released

#81
post #38

Anyone know how Ruby 2.2 works with Rails on Heroku (with unicorn)? When I switched from 2.0 to 2.1, it caused all sorts of memory problems so I had to switch back.

I gave Ruby 2.2 a try with Rails 4.2 and the same memory problems that plagued Ruby 2.1 also occurred. I am switching back to Ruby 2.0. Rails 5 will require Ruby 2.2 and higher so I hope someone will find a way to fix this.

Thanks for your answer (here and on SO). I guess I'll wait it out...

Re: Ruby 2.2.0 Released

#82
post #75

Earlier quoted context omitted.

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 s…

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?

In case you weren't aware: https://github.com/rails/rails/pull/18160
Post reply on HN