tags:

views:

115

answers:

1

Despite reading what has been written on this here and here and here, I still can't get these lines to work for me:

Shoes.setup do
  gem 'statemachine'
end

require 'rubygems'
require 'statemachine'

I have run "sudo gem install statemachine" successfully and copied the gem by hand to ~/.shoes/ to no avail so far.

I am using ruby 1.8 under Mac OS X 10.5.8 and the gem I'm trying to use has no dependencies and works perfectly when invoked from Ruby.

I am trying to grok the Shoes and Gem code to solve this mystery but could use some help from experienced programmers.

Thanks.

+1  A: 

That code works fine for me. Shoes should go out on its own and get the gem if needed. Your problem may be that you copied the gem over. Try deleting it from ~/.shoes/ and running the code again.

Pesto