[ANN] Rails 3.1.2.rc2

Hi everyone,

Rails 3.1.2.rc2 has been released. Don’t ask about rc1!

Please give it a try, but first read the important note below.

If there are no release blockers, then I will be releasing the final
version
some time after 16:00 UTC on 17th November.

IMPORTANT NOTE FOR RC TESTERS

Rails 3.1.2 will depend on sprockets 2.1. The current stable version
of
sass-rails (3.1.4) depends on sprockets 2.0. To solve this problem,
the
current sass-rails release candidate removes its explicit dependency
on
sprockets, because sass-rails depends on actionpack which already
depends
on sprockets, so the version should be specified there.

So to test this RC, you need to change your sass-rails dependency to:

gem 'sass-rails', '~> 3.1.5.rc.2'

When Rails 3.1.2 final is released, the final version of sass-rails
3.1.5 will
also be released, so people with ‘~> 3.1.4’ in their Gemfile will not
have to
do anything as Bundler will resolve the dependency itself.

CHANGES

Our changelogs are now in lovely Markdown format, which means you can
read
them all nicely formatted on Github! Here are the links:

Action Mailer:

  • No changes

Action Pack:

Active Model:

  • No changes

Active Record:

Active Resource:

  • No changes

Active Support:

  • No changes

Railties:

As ever, you can see a full list of commits between the versions on
Github:

And you can see the issues we haven’t closed:

Cheers,

Jon

On Mon, Nov 14, 2011 at 5:15 PM, Jon L.
[email protected]wrote:

IMPORTANT NOTE FOR RC TESTERS

So to test this RC, you need to change your sass-rails dependency to:

gem ‘sass-rails’, ‘~> 3.1.5.rc.2’

When Rails 3.1.2 final is released, the final version of sass-rails
3.1.5 will
also be released, so people with ‘~> 3.1.4’ in their Gemfile will not
have to
do anything as Bundler will resolve the dependency itself.

I ran into a problem. I updated my base_app_31 as follows:

https://github.com/petervandenabeele/base_app/commit/f9dd915c7af9a69d62a6b587e272dc67443f3de0

Essentially that is:
-gem ‘rails’, ‘3.1.1’
+gem ‘rails’, ‘3.1.2.rc2’

group :assets do

  • gem ‘sass-rails’, ‘~> 3.1.0’
  • gem ‘coffee-rails’, ‘~> 3.1.0’
  • gem ‘uglifier’, ‘>= 1.0.3’
  • gem ‘sass-rails’, ‘~> 3.1.5.rc.2’
  • gem ‘coffee-rails’, ‘~> 3.1’
  • gem ‘uglifier’, ‘>= 1.0’
    gem ‘bootstrap-sass’, ‘>= 1.3.0’
    end

I was able to execute bundle update locally without problems.

But upon cap deploy of a flamjobs app that I rebased on this newer
version of the base_app, I now suddenly got this issue, that I did not
see on the deployment of the 3.1.1 based version. The ruby version
on the production system is 1.9.2p0

production shared server (so unless I use rvm, version set-up by the
hosting company)
$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
$ gem --version
1.3.7

local development
$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
$ gem --version
1.8.10

I am not sure if it is related to 3.1.2.rc2, but I did never see this
problem before on this cap deploy and can now reproduce it
(I left the server in this state, so I can do more tests if required).

  • executing “cd
    /home/vandenabeele/apps/flamjobs/releases/20111115225624
    && bundle install --gemfile
    /home/vandenabeele/apps/flamjobs/releases/20111115225624/Gemfile --path
    /home/vandenabeele/apps/flamjobs/shared/bundle --deployment --quiet
    –without development test”
    servers: [“server_name”]
    [server_name] executing command
    ** [out :: server_name]
    /opt/lib/ruby/1.9.1/rubygems/specification.rb:519:in
    normalize_yaml_input' ** [out :: server_name] : ** [out :: server_name] invalid byte sequence in US-ASCII ** [out :: server_name] ( ** [out :: server_name] ArgumentError ** [out :: server_name] ) ** [out :: server_name] from /opt/lib/ruby/1.9.1/rubygems/specification.rb:479:in from_yaml’
    ** [out :: server_name] from
    /opt/lib/ruby/1.9.1/rubygems/package/tar_input.rb:183:in load_gemspec' ** [out :: server_name] from /opt/lib/ruby/1.9.1/rubygems/package/tar_input.rb:51:in block in
    initialize’
    ** [out :: server_name] from
    /opt/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:64:in block in each' ** [out :: server_name] from /opt/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in loop’
    ** [out :: server_name] from
    /opt/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in each' ** [out :: server_name] from /opt/lib/ruby/1.9.1/rubygems/package/tar_input.rb:32:in initialize’
    ** [out :: server_name] from
    /opt/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in new' ** [out :: server_name] from /opt/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in open’
    ** [out :: server_name] from
    /opt/lib/ruby/1.9.1/rubygems/package.rb:58:in
    open' ** [out :: server_name] from /opt/lib/ruby/1.9.1/rubygems/format.rb:63:in from_io’
    ** [out :: server_name] from
    /opt/lib/ruby/1.9.1/rubygems/format.rb:51:in
    block in from_file_by_path' ** [out :: server_name] from /opt/lib/ruby/1.9.1/open-uri.rb:35:in open’
    ** [out :: server_name] from /opt/lib/ruby/1.9.1/open-uri.rb:35:in
    open' ** [out :: server_name] from /opt/lib/ruby/1.9.1/rubygems/format.rb:50:in from_file_by_path’
    ** [out :: server_name] from
    /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/source.rb:72:in
    fetch' ** [out :: server_name] from /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:45:in block in run’
    ** [out :: server_name] from
    /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in
    block in each' ** [out :: server_name] from /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in each’
    ** [out :: server_name] from
    /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in
    each' ** [out :: server_name] from /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in run’
    ** [out :: server_name] from
    /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in
    install' ** [out :: server_name] from /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in install’
    ** [out :: server_name] from
    /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in
    run' ** [out :: server_name] from /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in invoke_task’
    ** [out :: server_name] from
    /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in
    dispatch' ** [out :: server_name] from /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in start’
    ** [out :: server_name] from
    /opt/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/bin/bundle:13:in <top (required)>' ** [out :: server_name] from /usr/bin/bundle:19:in load’
    ** [out :: server_name] from /usr/bin/bundle:19:in `’
    command finished in 28578ms
    *** [deploy:update_code] rolling back
  • executing “rm -rf
    /home/vandenabeele/apps/flamjobs/releases/20111115225624; true”

Full Gemfile.lock of the locally installed flamjobs application is
below.
Is there more info I can supply to track this down?

Thanks,

Peter

$ cat Gemfile.lock
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.2.rc2)
actionpack (= 3.1.2.rc2)
mail (~> 2.3.0)
actionpack (3.1.2.rc2)
activemodel (= 3.1.2.rc2)
activesupport (= 3.1.2.rc2)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.5)
rack-cache (~> 1.1)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.0)
activemodel (3.1.2.rc2)
activesupport (= 3.1.2.rc2)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.2.rc2)
activemodel (= 3.1.2.rc2)
activesupport (= 3.1.2.rc2)
arel (~> 2.2.1)
tzinfo (~> 0.3.29)
activeresource (3.1.2.rc2)
activemodel (= 3.1.2.rc2)
activesupport (= 3.1.2.rc2)
activesupport (3.1.2.rc2)
multi_json (~> 1.0)
arel (2.2.1)
bootstrap-sass (1.4.0)
sass-rails (~> 3.1.0)
builder (3.0.0)
capistrano (2.5.21)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.0.0)
capybara (1.1.2)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
childprocess (0.2.2)
ffi (~> 1.0.6)
coffee-rails (3.1.1)
coffee-script (>= 2.2.0)
railties (~> 3.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.3)
cucumber (1.1.2)
builder (>= 2.1.2)
diff-lcs (>= 1.1.2)
gherkin (~> 2.6.2)
json (>= 1.4.6)
term-ansicolor (>= 1.0.6)
cucumber-rails (1.2.0)
capybara (>= 1.1.1)
cucumber (>= 1.1.1)
nokogiri (>= 1.5.0)
database_cleaner (0.7.0)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.2.9)
multi_json (~> 1.0)
factory_girl (2.2.0)
activesupport
factory_girl_rails (1.3.0)
factory_girl (~> 2.2.0)
railties (>= 3.0.0)
ffi (1.0.11)
gherkin (2.6.5)
json (>= 1.4.6)
haml (3.1.3)
haml-rails (0.3.4)
actionpack (~> 3.0)
activesupport (~> 3.0)
haml (~> 3.0)
railties (~> 3.0)
highline (1.6.8)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.17)
railties (~> 3.0)
thor (~> 0.14)
json (1.6.1)
json_pure (1.6.1)
libv8 (3.3.10.4)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.17.2)
multi_json (1.0.3)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.2.1)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
nokogiri (1.5.0)
openminds_deploy (1.0.4)
capistrano (>= 2.5)
pg (0.11.0)
polyglot (0.3.3)
rack (1.3.5)
rack-cache (1.1)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.1.2.rc2)
actionmailer (= 3.1.2.rc2)
actionpack (= 3.1.2.rc2)
activerecord (= 3.1.2.rc2)
activeresource (= 3.1.2.rc2)
activesupport (= 3.1.2.rc2)
bundler (~> 1.0)
railties (= 3.1.2.rc2)
rails3-generators (0.17.4)
railties (>= 3.0.0)
railties (3.1.2.rc2)
actionpack (= 3.1.2.rc2)
activesupport (= 3.1.2.rc2)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rdoc (3.11)
json (~> 1.4)
rspec (2.7.0)
rspec-core (~> 2.7.0)
rspec-expectations (~> 2.7.0)
rspec-mocks (~> 2.7.0)
rspec-core (2.7.1)
rspec-expectations (2.7.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.7.0)
rspec-rails (2.7.0)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.7.0)
rubyzip (0.9.4)
sass (3.1.10)
sass-rails (3.1.5.rc.2)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (~> 3.1.10)
tilt (~> 1.3.2)
selenium-webdriver (2.12.2)
childprocess (>= 0.2.1)
ffi (~> 1.0.9)
json_pure
rubyzip
simple_form (1.5.2)
actionpack (~> 3.0)
activemodel (~> 3.0)
sprockets (2.1.0)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
term-ansicolor (1.0.7)
therubyracer (0.9.9)
libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.31)
uglifier (1.1.0)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
xpath (0.1.4)
nokogiri (~> 1.3)

PLATFORMS
ruby

DEPENDENCIES
bootstrap-sass (>= 1.3.0)
capistrano (~> 2.5.21)
capybara
coffee-rails (~> 3.1)
cucumber-rails
database_cleaner
factory_girl_rails
haml
haml-rails
jquery-rails
openminds_deploy
pg
rails (= 3.1.2.rc2)
rails3-generators
rspec-rails
sass-rails (~> 3.1.5.rc.2)
simple_form
therubyracer
uglifier (>= 1.0)