I swear this was working a few weeks ago but I keep getting "coerce must return [x, y]" when I use the rturk gem to create a hit.
RTurk.setup(configatron.amazon.access_key_id, configatron.amazon.secret_access_key, :sandbox => true)
hit = RTurk::Hit.create(:title => "SOMETESTTHING" ) do |hit|
hit.assignments = 5
hit.description = "FOOBAR"
hit.question("http://underworld.homelinux.com/surveys/39/turk/new",
:frame_height => 1000) # pixels for iframe
hit.reward = 0.10
end
This is the last few lines of the trace...
/Library/Ruby/Gems/1.8/gems/rturk-2.3.0/lib/rturk/requester.rb:62:in `-'
/Library/Ruby/Gems/1.8/gems/rturk-2.3.0/lib/rturk/requester.rb:62:in `hmac_sha1'
/Library/Ruby/Gems/1.8/gems/rturk-2.3.0/lib/rturk/requester.rb:55:in `sign'
That error works out to this code...
key += [].fill(0, 0, 64-key.length) if key.length < 64
I'm a bit out of my depth debugging this. Any idea what is up or maybe another ruby mturk lib I could use instead that would be great. I swear this was working a few months ago.