shoes

Integrate Shoes into Aptana Studio RadRails

折月煮酒 提交于 2019-12-02 03:51:07
问题 How can I run my Carpet applications directly from Aptana Studio with RadRails? Setting the shoes.exe as VM/Interpreter won't work. 回答1: If you have the file in a Ruby project, you can do the following: Go to Run -> External Tools -> External Tools... Create a new tool, name it something (like, say, "Shoes") Set Location to the Shoes binary, for example, on my system it's C:\Program Files\Common Files\Shoes\0.r1134\shoes.exe Set Working Directory to ${workspace_loc}${project_loc} (You can

Integrate Shoes into Aptana Studio RadRails

倾然丶 夕夏残阳落幕 提交于 2019-12-01 22:52:36
How can I run my Carpet applications directly from Aptana Studio with RadRails? Setting the shoes.exe as VM/Interpreter won't work. If you have the file in a Ruby project, you can do the following: Go to Run -> External Tools -> External Tools... Create a new tool, name it something (like, say, "Shoes") Set Location to the Shoes binary, for example, on my system it's C:\Program Files\Common Files\Shoes\0.r1134\shoes.exe Set Working Directory to ${workspace_loc}${project_loc} (You can change this to fit your needs, but I'd assume the project's base directory is as good a place as any to set as

Using Ruby libraries and gems with a Shoes app

送分小仙女□ 提交于 2019-11-30 00:32:16
I am writing a little Shoes app that requires a library I wrote with my regular Ruby installation. My library uses the 'net-ssh' gem and a bunch of other Ruby libraries. When I run my library directly with regular ruby (it has its own command-line interface) like this: ruby my_lib.rb ...all is fine. But when I try to require it within my Shoes app I get an 'no such file to load - net/ssh' error (because my_lib uses net-ssh). I tried messing around with the $: include path variable in the Shoes app like this: $:.unshift "C:/ruby/lib/ruby/1.8" $:.unshift "C:/ruby/lib/ruby/site_ruby/1.8" require

Using Ruby libraries and gems with a Shoes app

一笑奈何 提交于 2019-11-28 21:26:51
问题 I am writing a little Shoes app that requires a library I wrote with my regular Ruby installation. My library uses the 'net-ssh' gem and a bunch of other Ruby libraries. When I run my library directly with regular ruby (it has its own command-line interface) like this: ruby my_lib.rb ...all is fine. But when I try to require it within my Shoes app I get an 'no such file to load - net/ssh' error (because my_lib uses net-ssh). I tried messing around with the $: include path variable in the

Ruby Shoes GUI: Continually Updating Paragraphs

爷,独闯天下 提交于 2019-11-28 10:05:51
问题 The Shoes GUI kit for Ruby seems like a really nice and easy way to add a GUI to my various scripts, but after banging my head against it, I can't seem to make a paragraph be continually updated with a loop. Here's my minimal code to show what I'm trying to do: Shoes.app do stack do @exit = button "Exit" @log = stack { para "Logging goes here..." } @exit.click { exit } end loop do sleep 1 contents = `ls` @log.append { para contents } end end But this just blocks forever and my GUI never shows