The "original" Shoes doesn't play well with gems. The newest version of Shoes (Shoes 4) lets you require gems normally. It's pre-alpha, but almost feature-complete. Here's your code modified to run in Shoes 4. Note that the id
assignment has to be moved into the button block (but this would be necessary for any version of Shoes)
require 'launchy'
Shoes.app do
background "#EFC"
border("#BE8", strokewidth: 6)
stack(margin: 12) do
para "Enter ID"
flow do
@e = edit_line
fburl = "http://www.facebook.com/profile.php?id="
button "OK" do
id = @e.text
alert fburl+id
Launchy.open("#{fburl}+#{id}")
end
end
end
end
To install Shoes 4, follow the instructions on GitHub, and make sure you gem install launchy
. Then you should be able to run your app.