我设法在 Linux (Mint 14) 上构建鞋子,但显然我只能通过首先运行鞋子可执行文件并选择“打开应用程序”来运行我的脚本。这有点乏味,但是当我运行时ruby CoverMaker.rb
,我收到以下错误:
/home/bleuarff/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- shoes (LoadError)
from /home/bleuarff/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from CoverMaker.rb:1:in `<main>'
我的完整代码如下:
require 'shoes'
#include Shoes
Shoes.app do
flow do
para "Image folder:"
edit_line
end
end
取消注释#include 'shoes'
得到一个错误“错误的参数类型类(预期模块)”
那么,有没有办法通过直接运行脚本来让脚本正常工作,而无需先运行跑鞋的开销?