[opensuse-ruby] rails:freeze:gems broken with rails 2.3.10 and rubygems 1.5.0
![](https://seccdn.libravatar.org/avatar/4b2168f40dbb8ed92e40bfe17a2fa3ef.jpg?s=120&d=mm&r=g)
Hi All, I'm wondering if anyone else has seen this and has a convenient workaround. Since updating rubygems from 1.4 to 1.5, freezing rails no longer works (this is true on openSUSE 11.3 and Factory): # rails foo ... create ... ... # cd foo # rake --trace rails:freeze:gems (in /tmp/foo) ** Invoke rails:freeze:gems (first_time) ** Execute rails:freeze:gems Freezing to the gems for Rails 2.3.10 rm -rf vendor/rails mkdir -p vendor/rails cd vendor/rails rm -rf vendor/rails rake aborted! undefined method `version_requirements' for #<Gem::Dependency:0xb749c8cc> /usr/lib/ruby/gems/1.8/gems/rails-2.3.10/lib/tasks/framework.rake:27 /usr/lib/ruby/gems/1.8/gems/rails-2.3.10/lib/tasks/framework.rake:26:in `each' /usr/lib/ruby/gems/1.8/gems/rails-2.3.10/lib/tasks/framework.rake:26 /usr/lib/ruby/1.8/fileutils.rb:121:in `chdir' /usr/lib/ruby/1.8/fileutils.rb:121:in `chdir' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `chdir' /usr/lib/ruby/gems/1.8/gems/rails-2.3.10/lib/tasks/framework.rake:25 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19 Thanks, Tim -- Tim Serong <tserong@novell.com> Senior Clustering Engineer, OPS Engineering, Novell Inc. -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/4b2168f40dbb8ed92e40bfe17a2fa3ef.jpg?s=120&d=mm&r=g)
On 2/9/2011 at 05:27 PM, "Tim Serong" <tserong@novell.com> wrote:
Hi All,
I'm wondering if anyone else has seen this and has a convenient workaround. Since updating rubygems from 1.4 to 1.5, freezing rails no longer works (this is true on openSUSE 11.3 and Factory):
# rails foo ... create ... ... # cd foo # rake --trace rails:freeze:gems (in /tmp/foo) ** Invoke rails:freeze:gems (first_time) ** Execute rails:freeze:gems Freezing to the gems for Rails 2.3.10 rm -rf vendor/rails mkdir -p vendor/rails cd vendor/rails rm -rf vendor/rails rake aborted! undefined method `version_requirements' for #<Gem::Dependency:0xb749c8cc>
OK, so somehow, my having asked the question on a public mailing list caused me to work out where the problem is. Go figure. I've attached the patch for reference. What's the Right Thing to do here? Patch our rubygem-rails-2_3? Submit this fix upstream then wait for 2.3.11 or .12? Thanks, Tim -- Tim Serong <tserong@novell.com> Senior Clustering Engineer, OPS Engineering, Novell Inc.
![](https://seccdn.libravatar.org/avatar/52505bac1e0f5b3052ed89f63d10292d.jpg?s=120&d=mm&r=g)
i sent your patch upstream and it got committed: https://github.com/rails/rails/commit/abc06a2f769e6e451462460610369ccddb4525... hth darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org
participants (2)
-
Marcus Rueckert
-
Tim Serong