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 'rubygems'
gem 'net-ssh'
require 'my_lib.rb'
...but had no success. I get 'Could not find RubyGem net-ssh'.
Anyone has had the same problem? What's the best way to use your Ruby libraries and gems in a Shoes app?