我在ruby 1.9.2上运行编织时遇到问题。问题在于fattr gem
$ braid
/opt/local/lib/ruby1.9/gems/1.9.1/gems/fattr-2.1.0/lib/fattr.rb:85:in `block (2 levels) in fattrs': wrong number of arguments (1 for 0) (ArgumentError)
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/fattr-2.1.0/lib/fattr.rb:90:in `instance_eval'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/fattr-2.1.0/lib/fattr.rb:90:in `call'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/fattr-2.1.0/lib/fattr.rb:90:in `block (2 levels) in fattrs'
from (eval):3:in `call'
from (eval):3:in `arity!'
from (eval):4:in `arity'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/parameter.rb:105:in `sanity_check!'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/parameter.rb:101:in `initialize'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/parameter.rb:53:in `block in create'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/parameter.rb:53:in `instance_eval'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/parameter.rb:53:in `create'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/program/class_methods.rb:193:in `option'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/program/class_methods.rb:92:in `set_default_options!'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/program/class_methods.rb:65:in `block in build'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/program/class_methods.rb:63:in `module_eval'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/program/class_methods.rb:63:in `build'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/factories.rb:16:in `run'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/main-4.2.0/lib/main/factories.rb:25:in `Main'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/braid-0.6.2/bin/braid:13:in `<top (required)>'
from /opt/local/bin/braid:19:in `load'
from /opt/local/bin/braid:19:in `<main>'
你知道解决这个问题的方法吗?
答案 0 :(得分:2)
这是主fattr分支/ gem上的常见问题。虽然主分支尚未撤消更改,但有人修补了它。尝试删除使用braid安装的fattr gem并将其替换为此版本https://github.com/kitop/fattr。
更新:main branch现已更新为1.9.2。