[ANN] Rails 3.0.9 has been released!
Posted by aaronp June 16, 2011 @ 10:27 AM
Hi everybody!
Rails 3.0.9 has been released! Since I am at Nordic Ruby, I will deem this Nordic Ruby Edition. ;-)
The main boogs fixed in this release are problems dealing with modifications of SafeBuffers.
gem install rails or update your Gemfile and bundle update while it's hot!
CHANGES
The major changes in this release of Rails are bug fixes surrounding modifications to SafeBuffer strings. We had places that were modifying SafeBuffers and those places raised exceptions after the security fixes in the 3.0.8 release.
We've since updated those code paths, and now we have this nice release for you today!
Please check the CHANGELOG files in each section on github for more details.
For an exhaustive list of the commits in this release, please see github.
Gem checksums
SHA-1:
- fb8f3c0b6c866dbad05ec33baf2af7e851f9d745 actionmailer-3.0.9.gem
- 9bc2c05463962320d0497bb2e30f4ffa66ed4f79 actionpack-3.0.9.gem
- 2c1004747a22f756722cf95605398bf9ba6244ed activemodel-3.0.9.gem
- 285759d41c79460a3f49d26d8a0b3f8c9279e868 activerecord-3.0.9.gem
- 28f2b296525caeca1341467b5f1bbb90de88aaa7 activesupport-3.0.9.gem
- 09d52fdcbeefba31dd267d3d7484332ec30f7539 rails-3.0.9.gem
- 8b46dbeddb56e2e4b4ebfb5312fe81eb865a47e7 railties-3.0.9.gem
Please enjoy this release of Rails!
<3 <3 <3

Good news. Waiting for Release Rails-3.1
Me too, thanks again. You should release less often, I am getting tired od “thanks again” :P.
Great Job guys. Don’t stop updating if it’s needed. Ollie, this sounds crazy, but the speed of releases means that idle hands can’t bung up rails. Rails is back, and thanks again core team.
I know, I am joking. :)
Great work Aaron, keep on rollin’
Awesome news and see you all at Nordic Ruby!
thanks
Greeeeeeeeaaaaaaaaat! Thanks guy you are awesome
Wow… Thanks guys.
There seems to be a problem with regex $ variables and safe text:
ruby-1.9.2-p136 :057 > def linkify_it(txt) ruby-1.9.2-p136 :058?> safe_text = ERB::Util::h(txt) ruby-1.9.2-p136 :059?> safe_text.gsub(/(|\s)(https?:\/\/([\s\/])\S)(\s|$)/i) {|m| puts “safe txt: match ’#{m}’, $1 ’#{$1}’, $2 ’#{$2}’, $3 ’#{$3}’, $4 ’#{$4}’”} ruby-1.9.2-p136 :060?> txt.gsub(/(|\s)(https?:\/\/([\s\/])\S)(\s|$)/i) {|m| puts “unsafe txt: match ’#{m}’, $1 ’#{$1}’, $2 ’#{$2}’, $3 ’#{$3}’, $4 ’#{$4}’”} ruby-1.9.2-p136 :061?> end => nil ruby-1.9.2-p136 :062 > linkify_it(a)safe txt: match ’ hTTp://google.com ’, $1 ’’, $2 ’’, $3 ’’, $4 ’’unsafe txt: match ’ hTTp://google.com ’, $1 ’ ’, $2 ‘hTTp://google.com’, $3 ‘google.com’, $4 ’ ‘ => “try thisit is fun” ruby-1.9.2-p136 :063 > a => “try this hTTp://google.com it is fun” ruby-1.9.2-p136 :064 > linkify_it(“try this hTTp://google.com it is fun”) safe txt: match ’ hTTp://google.com ’, $1 ’’, $2 ’’, $3 ’’, $4 ’’ unsafe txt: match ’ hTTp://google.com ’, $1 ’ ’, $2 ‘hTTp://google.com’, $3 ‘google.com’, $4 ’ ‘ => “try thisit is fun”
So for html_escaped strings, the $ variables are not being set. The used to, i.e. the above code worked fine in 3.0.6
Sorry, that last one was messed up, here’s a gist of the problem:
https://gist.github.com/1030065
git://gist.github.com/1030065.git
Many thanks to aaron and his “double dream hands” – and the whole rails-core team! ;)
thanks aaronp
Now THIS is unexpected, it all still worked with the last version (and yes, I do have mysql2, have had it for ages):
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load—active_record/connection_adapters/mysql2_adapter)
And of course, the message is plain wrong, since there is no gem “activerecord-mysql2-adapter” available anyway.
@michael Sure that you dont use mysql2 0.3+?`That version doesnt work with rails 3.0.x
@michael.. specify mysql2 gem version in your Gemfile by default uses the last version (0.3.6) but version its only supported in rails 3
you should use
gem “mysql2”, “0.2.7”
or any version below 0.3.0
0.2.11 is the current version for the 0.2.x branch of mysql2
You need to update the home page…
Great update guys! Upgrading from 3.0.7 to 3.0.9 (and some gems as well) somehow resuled in a huge improvement on loading times on our service. Check out this:
http://status.paspartout.com/gvaecgctpfzt/359561
More than half, just excellent! Thanks!
Thanks again for this update :)
you should upgrade the frontpage of www.rubyonrails.org to 3.0.9
I paid $32.67 for a XBOX 360 and my mom got a 17 inch Toshiba laptop for $94.83 being delivered to our house tomorrow by FedEX. I will never again pay expensive retail prices at stores. I even sold a 46 inch HDTV to my boss for $650 and it only cost me $52.78 to get. Here is the website we using to get all this stuff, BidsGet.com