#1206 ✓not-applicable
Postmodern

dm-rails cannot bundle rspec-rails =2.0.0.a9

Reported by Postmodern | February 25th, 2010 @ 05:31 AM

While running the dm-rails installation example using bundler 0.9.6, I noticed that it could not bundle rspec-rails =2.0.0.a9:

rake aborted!
Could not find gem 'rspec-rails (= 2.0.0.a9, runtime)' in any of the sources.
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler/resolver.rb:163:in `resolve'
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler/resolver.rb:40:in `resolve'
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler/resolver.rb:39:in `catch'
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler/resolver.rb:39:in `resolve'
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler/runtime.rb:95:in `specs'
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler/runtime.rb:81:in `specs_for'
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler/runtime.rb:18:in `setup'
/usr/lib64/ruby/gems/1.8/gems/bundler-0.9.6/lib/bundler.rb:66:in `setup'
/home/hal/dm_rails3_app/config/boot.rb:7
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/hal/dm_rails3_app/config/application.rb:1
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/hal/dm_rails3_app/Rakefile:4
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/bin/rake:31

Comments and changes to this ticket

  • Martin Gamsjaeger (snusnu)

    Martin Gamsjaeger (snusnu) February 25th, 2010 @ 08:36 AM

    • State changed from “new” to “unconfirmed”

    Can you please try with latest bundler (0.9.7)? I just tried and it bundled everything fine

    ...
    Installing rspec (2.0.0.a8) from git://github.com/rspec/rspec.git (at master) 
    Installing rspec-core (2.0.0.a8) from git://github.com/rspec/rspec-core.git (at master) 
    Installing rspec-expectations (2.0.0.a8) from git://github.com/rspec/rspec-expectations.git (at master) 
    Installing rspec-mocks (2.0.0.a8) from git://github.com/rspec/rspec-mocks.git (at master) 
    Installing rspec-rails (2.0.0.a9) from git://github.com/rspec/rspec-rails.git (at master) 
    ...
    
  • Postmodern

    Postmodern February 25th, 2010 @ 04:07 PM

    I just updated to bundler 0.9.9 (edge), and everything installs perfectly except for rspec-rails =2.0.0.a9.

             run      rake spec --trace from "."
    (in /home/hal/dm_rails3_app)
    rake aborted!
    Could not find gem 'rspec-rails (= 2.0.0.a9, runtime)' in any of the sources.
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler/resolver.rb:163:in `resolve'
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler/resolver.rb:40:in `resolve'
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler/resolver.rb:39:in `catch'
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler/resolver.rb:39:in `resolve'
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler/runtime.rb:93:in `specs'
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler/runtime.rb:82:in `specs_for'
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler/runtime.rb:18:in `setup'
    /usr/lib64/ruby/gems/1.8/gems/bundler-0.9.9/lib/bundler.rb:66:in `setup'
    /home/hal/dm_rails3_app/config/boot.rb:7
    /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /home/hal/dm_rails3_app/config/application.rb:1
    /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /home/hal/dm_rails3_app/Rakefile:4
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
    /usr/bin/rake:31
    
  • Postmodern

    Postmodern March 8th, 2010 @ 12:59 AM

    I found the cause of this. One must specify...

    @@@ Ruby :require => 'rspec/rails'

    
    for rspec-rails.
    
  • Postmodern

    Postmodern March 8th, 2010 @ 01:00 AM

    Err, :require => 'rspec/rails' after the gem 'rspec-rails' definition.

  • Postmodern

    Postmodern March 8th, 2010 @ 01:29 AM

    Actually, this ticket is probably Invalid.

    I just noticed that the bundler command was installed under Ruby 1.9.1, but I was attempting to run rake (which uses Ruby 1.8.7) from the generated Rails app. After running ruby /usr/bin/bundler install, both rake -T and rake19 -T ran successfully.

  • Martin Gamsjaeger (snusnu)

    Martin Gamsjaeger (snusnu) March 8th, 2010 @ 11:08 AM

    • State changed from “unconfirmed” to “not-applicable”

    I upgraded the rails-templates to use latest rspec-2.0.0.beta.3. Also, bundler-0.9.10 is the recommended version atm. I guess that still not all rspec generated would pass, but this ticket isn't valid anymore. I should add that

    :require => 'rspec/rails' 
    
    is wrong because rspec-rails contains the lib/rspec-rails.rb file.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages