turkee 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -0
- data/lib/turkee.rb +1 -3
- metadata +5 -5
data/Rakefile
CHANGED
@@ -11,6 +11,11 @@ begin
|
|
11
11
|
|
12
12
|
For instructions on gem usage, visit:
|
13
13
|
http://github.com/aantix/turkee#readme
|
14
|
+
|
15
|
+
** If you like the Turkee gem, please click the "watch" button on the
|
16
|
+
Github project page. You'll make me smile and feel appreciated. :)
|
17
|
+
http://github.com/aantix/turkee
|
18
|
+
|
14
19
|
========================================================================
|
15
20
|
-- Gobble, gobble.
|
16
21
|
}
|
data/lib/turkee.rb
CHANGED
@@ -89,7 +89,7 @@ module Turkee
|
|
89
89
|
# hit.qualifications.add :approval_rate, { :gt => 80 }
|
90
90
|
end
|
91
91
|
|
92
|
-
TurkeeTask.create(:sandbox =>
|
92
|
+
TurkeeTask.create(:sandbox => RTurk.sandbox?,
|
93
93
|
:hit_title => hit_title, :hit_description => hit_description,
|
94
94
|
:hit_reward => reward.to_f, :hit_num_assignments => num_assignments.to_i,
|
95
95
|
:hit_lifetime => lifetime, :form_url => f_url,
|
@@ -197,14 +197,12 @@ module Turkee
|
|
197
197
|
concat("<input type=\"hidden\" id=\"assignmentId\" name=\"assignmentId\" value=\"#{assignment_id}\"/>")
|
198
198
|
fields_for(object_name, *(args << options), &proc)
|
199
199
|
concat('</form>'.html_safe)
|
200
|
-
# concat('<script type="text/javascript">Event.observe(window, \'load\', function() {mturk_form_init(\''+object_name.to_s.underscore+'\')});</script>')
|
201
200
|
self
|
202
201
|
end
|
203
202
|
|
204
203
|
# Returns the external Mechanical Turk url used to post form data based on whether RTurk is cofigured
|
205
204
|
# for sandbox use or not.
|
206
205
|
def mturk_url
|
207
|
-
# Rails.env == 'production' ? "https://www.mturk.com/mturk/externalSubmit" : "https://workersandbox.mturk.com/mturk/externalSubmit"
|
208
206
|
RTurk.sandbox? ? "https://workersandbox.mturk.com/mturk/externalSubmit" : "https://www.mturk.com/mturk/externalSubmit"
|
209
207
|
end
|
210
208
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turkee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Jones
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-03 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -75,7 +75,7 @@ has_rdoc: true
|
|
75
75
|
homepage: http://github.com/aantix/turkee
|
76
76
|
licenses: []
|
77
77
|
|
78
|
-
post_install_message: "\n ========================================================================\n Turkee Installation Complete.\n ------------------------------------------------------------------------\n\n For instructions on gem usage, visit:\n http://github.com/aantix/turkee#readme\n ========================================================================\n -- Gobble, gobble.\n "
|
78
|
+
post_install_message: "\n ========================================================================\n Turkee Installation Complete.\n ------------------------------------------------------------------------\n\n For instructions on gem usage, visit:\n http://github.com/aantix/turkee#readme\n\n ** If you like the Turkee gem, please click the \"watch\" button on the\n Github project page. You'll make me smile and feel appreciated. :)\n http://github.com/aantix/turkee\n\n ========================================================================\n -- Gobble, gobble.\n "
|
79
79
|
rdoc_options:
|
80
80
|
- --charset=UTF-8
|
81
81
|
require_paths:
|