我有一个没有任何 rails、merb 等框架的 ruby-javascript 项目。Gem 已成功安装,但是当我尝试初始化 jasmine 时,jasmine init
我收到了以下消息:
can't activate rack (~> 1.2.1, runtime) for ["actionpack-3.0.3", "railties-3.0.3"],
already activated rack-1.3.0 for ["jasmine-1.0.2.1]
宝石文件:
source "http://rubygems.org"
gem "coderay"
gem 'ruby-debug19'
gem 'jasmine'
如何解决这个问题?谢谢
PS Windows 7,DivKit
PS1。似乎bundle exec jasmine init
应该工作,但我有另一个错误:
C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/lib/jasmine/tasks/jasmine.rake:1:
in `<top (required)>': undefined method `namespace' for main:Object (NoMethodError)
from e:/Work/ReadTheCode/Rakefile:4:in `load'
from e:/Work/ReadTheCode/Rakefile:4:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/lib/jasmine
/command_line_tool.rb:49:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/lib/jasmine
/command_line_tool.rb:49:in `process'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/jasmine-1.0.2.1/bin/jasmine
:6:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/bin/jasmine:19:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/bin/jasmine:19:in `<main>'