0
任何想法會導致這種情況?幾個月前一直工作到今天。不知道我改變了什麼。Spork錯誤:未定義方法'拆分'爲零:NilClass(NoMethodError)
我在我的機器上安裝了spork 0.9.0.rc9 gem(OS X 10.7更新了所有的os更新)和我的Gemfile(Rails 3.1.1)。當我嘗試運行spork --bootstrap時出現以下錯誤:
undefined method 'split' for nil:NilClass (NoMethodError)
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/gem_helpers.rb:10:in 'initialize'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/gem_helpers.rb:25:in 'new'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/gem_helpers.rb:25:in 'block in latest_load_paths'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/gem_helpers.rb:24:in 'each'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/gem_helpers.rb:24:in 'inject'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/gem_helpers.rb:24:in 'latest_load_paths'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork.rb:108:in 'other_spork_gem_load_paths'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork.rb:101:in 'detect_and_require'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/test_framework.rb:167:in ''
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/runner.rb:49:in 'find_test_framework'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/runner.rb:57:in 'run'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/lib/spork/runner.rb:10:in 'run'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/gems/spork-0.9.0.rc9/bin/spork:10:in ''
/Users/mm/.rvm/gems/ruby-1.9.2-p190/bin/spork:19:in 'load'
/Users/mm/.rvm/gems/ruby-1.9.2-p190/bin/spork:19:in ''