Sha256: 7789dd3ec7e2eff797125963c57fd97a9239adce2c67ec9de7a5a6bd44088e3a
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
$: << File.join(File.dirname(__FILE__), '..', 'lib') require 'rubygems' require '../lib/rturk' aws = YAML.load(File.open(File.join(File.dirname(__FILE__), 'mturk.yml'))) RTurk::setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) hits = RTurk::Hit.all_reviewable puts "#{hits.size} reviewable hits. \n" unless hits.empty? puts "Approving all assignments and disposing of each hit!" hits.each do |hit| hit.expire! hit.assignments.each do |assignment| assignment.approve! end hit.dispose! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rturk-2.0.0 | examples/blank_slate.rb |