我想讓這個metric_fu工作,但我得到一個奇怪的錯誤。Rails運行metric_fu的問題
[email protected]:~/prj/dummy_app$ rake metrics:all --trace
(in /home/braga/prj/dummy_app)
rake aborted!
RubyGem version error: chronic(0.6.2 not ~> 0.3.0)
/usr/local/lib/site_ruby/1.8/rubygems.rb:812:in `report_activate_error'
/usr/local/lib/site_ruby/1.8/rubygems.rb:223:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems.rb:258:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems.rb:257:in `each'
/usr/local/lib/site_ruby/1.8/rubygems.rb:257:in `activate'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/home/braga/prj/dummy_app/Rakefile:12
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/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:2016:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000: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
在Rakefile行12中,我所做的全部都是require 'metric_fu'
。我試着卸載慢性寶石。在所有組合中安裝0.3.0和0.6.2的單獨版本。但是我仍然無法運行這些指標。任何幫助將非常感激。我用
軌道版本和紅寶石版本
[email protected]:~/prj/dummy_app$ rails --version
Rails 2.3.14
[email protected]:~/prj/dummy_app$ ruby --version
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
是的..我用--trace但是沒有透露太多 – bragboy