Question

I have shoes raisins (0.r1134) [i686-darwin8.9.1] +video

I'm trying to set up a Shoes.setup block like this:


Shoes.setup do
  gem 'mini_exiftool'
  gem 'xml-simple > 1.0'

  require "mini_exiftool"
  require 'xmlrpc/client'
  require 'xmlsimple.rb'
  require "my_webservice_api_wrapper"

  mwa = MyWebserviceApiWrapper.new
  mwa.login  # problems...
end

All works fine until we get to mwa.login, which takes us off to my XML-RPC wrapper API that will do a secure login. I get the error:

undefined method `closed?' for #

If I fire up irb and load "my_webservice_api_wrapper.rb" it all works fine, so I'm thinking maybe I misunderstood what should be loaded in Shoes and when.

Any help appreciated. Shoes looks really cool.

Was it helpful?

Solution

I hope your login module doesn't use HTTPS as I don't think that is supported in Shoes yet.

OTHER TIPS

I think you need to break that up into two separate blocks:

Shoes.setup do
  gem 'mini_exiftool'
  gem 'xml-simple > 1.0'
end

require "mini_exiftool"
require 'xmlrpc/client'
require 'xmlsimple.rb'
require "my_webservice_api_wrapper"

Shoes.app do
  mwa = MyWebserviceApiWrapper.new
  mwa.login  # problems...
end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top