r/ruby • u/kobaltzz • Aug 16 '19
Blog post Rails 6.0.0 Released
https://weblog.rubyonrails.org/2019/8/15/Rails-6-0-final-release/4
u/hartator Aug 16 '19
Awesome. I would love to benchmark this.
Any idea if // testing is coming to rspec as well?
7
u/kobaltzz Aug 16 '19
You can use rspec with it already. I had to reference the github branch of rspec to get it working. But I feel a release is imminent for rspec. :)
1
30
24
u/pau1rw Aug 16 '19
Pretty massive set of changes. Love that rails isn't just a stable framework, but can add a bunch of features that makes developer lives easier and get shit done quicker.
3
u/jchapin Aug 16 '19
Ha, just started 6.0.0rc2 app this morning to explore what was new and would require changes in my quick start template. Running the webpacker install generator... yarn to install js... and a couple of environment.js changes and everything else largely worked. Really liked seeing that the number of object allocated displays after every view is rendered too.
1
u/akamal90 Aug 17 '19
number of object allocated displays after every view is rendered
sorry, what do you mean by that?
1
u/drx3brun Aug 18 '19
He means number of object allocated displays after every view is rendered,
1
u/akamal90 Aug 18 '19
yeah, now I really understand, this is eye-opening, thank you
but I have some more questions, where did it display, in console, browser?, and what objects exactly, AR objects?
2
u/442401 Aug 19 '19
In the development log. Total ruby objects. For a simple request it will be 3 figures.
4
Aug 17 '19
Wow, they missed their date hard. I wonder what happened.
April 30: Final release. Ship and celebrate the release of Rails 6.0 at RailsConf 2019!
-2
u/janko-m Aug 17 '19 edited Aug 17 '19
If I had to guess, since Rails 5.2 added Active Storage and Rails 6.0 Action Text and Action Mailbox, I expect this added overhead to coordinating releases. All these components are tightly coupled to the rest of Rails, so I expect that in general more time will need to be spent ensuring compatibility.
1
1
u/SprightlyWombat Aug 18 '19
I have a gem I am working on. How can I update it to support rails 6 but retain compatibility with rails 4 and 5?
Specifically, rails 4 and 5 do not support module_parents and my tests are giving `undefined method `module_parents'` errors.
DEPRECATION WARNING: `Module#parent` has been renamed to `module_parent`. `parent` is deprecated and will be removed in Rails 6.1.
1
Aug 21 '19
if Module.method_defined?(:module_parent) def my_method # Rails 6 code end else def my_method # Rails 4/5 code end end
0
Aug 16 '19
[deleted]
6
u/Frizkie Aug 17 '19
sassc-railsis an interesting one, because I thoughtsass-railswas deprecated in favor ofsassc-rails.
3
u/rabarbas Aug 17 '19
I just started learning rails a few days ago through railstutorial.org. It's for Rails 5. Is it still possible to use same material or should I wait for the updated version?