2013-03-28 21 views
0

編輯:我回滾到Thor 0.17.0,這似乎工作。不知道爲什麼,但它在那裏。自動測試中的「Bundler:GemNotFound」錯誤:Thor

我可以找出是什麼原因造成這一點,但我的自動測試停止運行測試,並給了我以下錯誤:

"/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" -rrubygems -S "/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/exe/rspec" --tty "/Users/charliekim/programming/Ganesh/spec/controllers/pages_controller_spec.rb" "/Users/charliekim/programming/Ganesh/spec/controllers/student_groups_controller_spec.rb" "/Users/charliekim/programming/Ganesh/spec/controllers/students_controller_spec.rb" "/Users/charliekim/programming/Ganesh/spec/controllers/users_controller_spec.rb" "/Users/charliekim/programming/Ganesh/spec/models/student_group_spec.rb" "/Users/charliekim/programming/Ganesh/spec/models/student_spec.rb" "/Users/charliekim/programming/Ganesh/spec/models/user_spec.rb" "/Users/charliekim/programming/Ganesh/spec/requests/layout_links_spec.rb" 
/usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find thor-0.18.0 in any of the sources (Bundler::GemNotFound) 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/spec_set.rb:85:in `map!' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/spec_set.rb:85:in `materialize' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/definition.rb:114:in `specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/definition.rb:159:in `specs_for' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/definition.rb:148:in `requested_specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/environment.rb:18:in `requested_specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:13:in `setup' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler.rb:120:in `setup' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/setup.rb:17:in `<top (required)>' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' 
    from /Users/charliekim/programming/Ganesh/config/boot.rb:6:in `<top (required)>' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /Users/charliekim/programming/Ganesh/config/application.rb:1:in `<top (required)>' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /Users/charliekim/programming/Ganesh/config/environment.rb:2:in `<top (required)>' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /Users/charliekim/programming/Ganesh/spec/spec_helper.rb:3:in `<top (required)>' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /Users/charliekim/programming/Ganesh/spec/controllers/pages_controller_spec.rb:1:in `<top (required)>' 
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load' 
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files' 
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each' 
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files' 
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run' 
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run' 
    from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun' 

我已經看到了關於SO錯誤GemNotFound一些類似的問題,但解決方案不要」 t似乎爲此工作。當我運行bundle exex gem list Thor 0.18.0存在。

+0

是否設置在gemspec雷神的版本0.18.0開始? – 2013-03-28 23:53:41

+0

首先,你做了什麼讓我的代碼看起來不錯?對不起,它是如此醜陋... 和關於gemspec ...不知道如何編輯。我將它添加到我的gemfile中,但這並沒有改變任何東西。我還在學習,所以可能我只是爲你的意思所困惑。 – dax 2013-03-29 09:22:09

+0

有關代碼格式的信息,請參閱http://stackoverflow.com/editing-help#code。我也在學習。你能否在你的問題中包括gemfile? – 2013-03-29 09:57:45

回答

0

的解決辦法是回滾到Thor 0.17.0

0

我在運行rake任務時遇到了類似的問題,並執行了以下操作來解決問題。

在您的gemfile中,將來源從https更改爲http://rubygems.org,然後運行bundle install。

我的耙子任務然後工作,不完全確定爲什麼這發生了我很確定我的開發機器設置相同。

+0

沒有骰子,不幸的是:/ – dax 2013-03-29 07:44:16