Rails 3.0: Release candidate! »
Created at: 27.07.2010 00:45, source: Riding Rails - home, tagged: Releases
High off Baltimore Pandemic and Yellow Tops, I believe we promised a release candidate shortly after RailsConf. As things usually go in open source, we gorged ourselves on fixes and improvements instead. But all to your benefit. We’ve had 842 commits by 125 authors since the release of the last beta!
Now it’s time to just say good is good enough, otherwise we could keep on with this forever. So please welcome the Rails 3 release candidate! You install, as always, with gem install rails --pre.
Most of the fixes have been of minor significance, but we did manage to dramatically speed up Rails 3 development and startup speed for larger applications (Basecamp went from insufferable to about 2.3 levels of enjoyment).
Speed is now pretty good across the board except for part of Arel that Active Record now depends on. We’ll be making sure we get performance of Active Record back to at least 2.3 levels before release.
A few more highlights:
- Support for the MySQL2 gem, which will take care of MySQL encoding issues on Ruby 1.9.2.
- Shallow routes are back.
- Fixed the autoload issues
- Made the rails command work even when you’re in a subdirectory
- Dealt with a variety of web encoding issues
Indulge yourself in the delights of all the glorious details from the commit logs or checkout the slightly less pedantic summaries in the CHANGELOGs.
This release candidate of Rails 3 also concides with the release candidate of Bundler 1.0. Huge strides were made with Bundler and it should both be much faster and have most of the edge cases sawed off.
I’ve said “we’re almost there” so many times that I’m almost exhausted. But really, guys, WE’RE ALMOST THERE!!!1
1 Just a few weeks before final is out?
more »
Rails 3.0: Beta 4 now, RC in days »
Created at: 09.06.2010 01:20, source: Riding Rails - home, tagged: Releases
RailsConf 2010 is underway and what better occasion to do the final stage of the Rails 3 beta program. We’re very pleased to announce Rails 3 beta 4, which we’ll be hammering on and tuning during RailsConf.
At the end of RailsConf, we’ll be putting out the release candidate. So if you’re at the conference, and even if you’re not, now is the time to give upgrading a chance or even starting a new app. We’re all responsible for making this release solid, please join the fun.
You can install the latest beta with gem install rails --pre
Since we’re so close to release now, it’s also a great pleasure to introduce the new Rails 3 screencast series by Gregg Pollack and EnvyLabs. They’ve done an awesome job putting together six episodes and more are coming. You can also read along in their great Rails 3 slides from the RailsConf tutorial.
I also gave a keynote on Rails 3 this morning at RailsConf, so you can enjoy the slides.
Let’s race to the finish line together.
more »
Ruby on Rails 2.3.8 Released »
Created at: 25.05.2010 07:52, source: Riding Rails - home, tagged: Releases
The 2.3.7 release slipped out the door too hastily. Fixing compatibility with the rails_xss plugin inadvertently forced everyone to use it. Facepalm.
I apologize for wasting a chunk of your day on installing what ought to have been a patch-level update only to find it breaks your app. That’s well out of line with our stable release process and it’s my fault for stepping out of it. I got caught up in a sky-is-falling response to a 2.3.6 bug that affected a handful of users and responded with a fix that exposed a new flaw to nearly all users, despite testing and sanity checking.
Thanks for all your feedback today. We hear you, and yes, a thousand times yes. Every stable release, including point releases, deserves the same methodical drumbeat on its march from git stable to to .pre gem to final gem. Expect no less.
Now, on to the gem-cutting: Rails 2.3.8 is available now, bringing us back to stable ground.
more »
Ruby on Rails 2.3.7 Released »
Created at: 24.05.2010 11:20, source: Riding Rails - home, tagged: Releases
With the 2.3.6 release hot out of the oven, Nathan Weizenbaum began updating HAML to support it. He uncovered a couple of bugs in the HTML-safety changes backported from Rails 3, so we’re cutting a 2.3.7 release to fix them.
If you use the rails_xss plugin for automatic HTML escaping, you should upgrade to Rails 2.3.7 and the latest rails_xss plugin.
If you don’t use the rails_xss plugin yet, now’s the time to start. It’s baked in to Rails 3.
Update: fixing compatibility with the rails_xss plugin broke HTML-safety for apps that don’t use rails_xss. We’re sorry, all: HTML-safety is meant to be opt-in! The fix is available now in 2.3.8.pre1 and will be released shortly.
more »
Ruby on Rails 2.3.6 Released »
Created at: 23.05.2010 10:56, source: Riding Rails - home, tagged: Releases
We’ve released Ruby on Rails 2.3.6: six months of bug fixes, a handful of new features, and a strong bridge to Rails 3.
We deprecated some obscure and ancient features in Rails 2.3.6 so we could cut them entirely from Rails 3. If your app runs on Rails 2.3.6 without deprecation warnings, you’re in good shape for a smooth sail onward.
This slow-cooked dish is brought to you some 87 committers from our all-volunteer kitchen.
Now, let’s open the goodie bag!
Action Pack
- Upgrade Rack from 1.0.1 to 1.1.0.
- XSS prevention: update to match Rails 3 and move to the official plugin at http://github.com/rails/rails_xss.
- Cookies: convenient cookie jar add-ons to set permanent or signed cookies, or both at once:
cookies.permanent.signed[:remember_me] = current_user.id. Read more. - Flash: promote
alertandnotice, the most common flash keys in many apps, toself.alert = '...'andself.notice = '...'. Addredirect_to url, :alert => '...'and:notice => '...'. Read more. - i18n: localize the
labelhelper.
Active Record
- Namespacing: support optional table name prefixes on modules by defining
self.table_name_prefix. Read more. - Destroy uses optimistic locking.
- Counter cache: use
Post.reset_counters(1234, :comments)to count the number of comments for post 1234 and reset its comments_count cache. - PostgreSQL: always use standard-conforming strings, if supported.
- MySQL: add index length support. Read more.
- MySQL:
add_andchange_columnsupport column positioning using:first => trueand:after => :other_column.
Active Support
- Upgrade i18n from 1.3.3 to 1.3.7.
- Upgrade TZInfo from 0.3.12 to 0.3.16.
- Multibyte: speed up string verification and cleaning.
- JSON: use YAJL for JSON decoding, if available.
gem install yajl-ruby - Testing: add
assert_blankandassert_present. Read more. - Core: backport
Object#singleton_classfrom Ruby 1.8.8, deprecating ourObject#metaclass. - Core: add
Object#presencethat returns the object if it’s#present?otherwise returnsnil. Example:region = params[:state].presence || params[:country].presence || 'US' - Core: add
Enumerable#exclude?to matchinclude?. - Core: rename
Array#randtoArray#random_elementto avoid collision withKernel#rand. - Core: rename
Date#andTime#last_(month|year)to#prev_(month|year)for Ruby 1.9 forward compatibility.
Active Resource
- JSON: set
ActiveResource::Base.include_root_in_json = trueto serialize as a hash of model name -> attributes instead of a bare attributes hash. Defaults to false.
Action Mailer
- Upgrade TMail from 1.2.3 to 1.2.7.
Railties
- Silence RubyGems 1.3.6 deprecation warnings.
Peruse the commit log for the full story.
more »
