Is there any way to run the ruby ​​app?

I managed to create shoes on Linux (Mint 14), but apparently I can only run the script by first executing the executable and selecting "Open Application". This is a bit tedious, but when I run ruby CoverMaker.rb , I get the following errors:

 /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>' 

My complete code is below:

 require 'shoes' #include Shoes Shoes.app do flow do para "Image folder:" edit_line end end 

Uncommenting #include 'shoes' gets the error "Invalid argument type Class (expected module)"
So, is there a way to get a script to run by running it directly without the overhead of shoes?

+4
source share
2 answers

If you created the shoes as a standalone application, you can run the script with the following command:

./ Shoes CoverMaker.rb

+3
source

On OS X, you can use:

/Applications/Shoes/Shoes.app/Contents/MacOS/shoes script.rb

0
source

All Articles