rturk 2.3.4 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ 2.3.5
2
+ -----
3
+ * Added GetQualificationRequests API call [hamin]
4
+ * rake spec now works correctly [hamin]
5
+
1
6
  2.3.4
2
7
  -----
3
8
  * Added bonus_payments to Assignment and HIT for auditing [dbalatero]
data/Rakefile CHANGED
@@ -16,8 +16,8 @@ begin
16
16
  gem.name = "rturk"
17
17
  gem.summary = %Q{Mechanical Turk API Wrapper}
18
18
  gem.email = "mark@mpercival.com"
19
- gem.homepage = "http://github.com/markpercival/rturk"
20
- gem.authors = ["Mark Percival"]
19
+ gem.homepage = "http://github.com/mdp/rturk"
20
+ gem.authors = ["Mark Percival", "Zach Hale", "David Balatero", "Rob Hanlon"]
21
21
  gem.add_dependency('rest-client', '>= 1.4.0')
22
22
  gem.add_dependency('nokogiri', '>= 1.4.1')
23
23
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.4
1
+ 2.3.5
@@ -0,0 +1,26 @@
1
+ # operation retrieves requests for Qualifications of a particular Qualification type
2
+
3
+ module RTurk
4
+ class GetQualificationRequests < Operation
5
+ attr_accessor :qualification_type_id, :status, :page_size, :page_number
6
+ require_params :qualification_type_id
7
+
8
+ def parse(xml)
9
+ RTurk::GetQualificationRequestsResponse.new(xml)
10
+ end
11
+
12
+ def to_params
13
+ params = {
14
+ 'QualificationTypeId' => qualification_type_id
15
+ }
16
+ params['Status'] = status unless status.nil?
17
+ params['PageSize'] = page_size unless page_size.nil?
18
+ params['PageNumber'] = page_number unless page_number.nil?
19
+ params
20
+ end
21
+ end
22
+
23
+ def self.GetQualificationRequests(*args)
24
+ RTurk::GetQualificationRequests.create(*args)
25
+ end
26
+ end
@@ -0,0 +1,19 @@
1
+ # Parses a QualificationRequest object
2
+
3
+ module RTurk
4
+ class QualificationRequestParser < RTurk::Parser
5
+ attr_reader :qualification_request_id, :qualification_type_id, :subject_id,
6
+ :submit_time, :test, :answer
7
+
8
+ def initialize(qualification_request_xml)
9
+ @xml_obj = qualification_request_xml
10
+ map_content(@xml_obj,
11
+ :qualification_request_id => 'QualificationRequestId',
12
+ :qualification_type_id => 'QualificationTypeId',
13
+ :subject_id => 'SubjectId',
14
+ :submit_time => 'SubmitTime',
15
+ :test => 'Test',
16
+ :answer => 'Answer')
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,26 @@
1
+ # Parses the GetQualificationRequests Response
2
+
3
+ module RTurk
4
+ class GetQualificationRequestsResponse < Response
5
+ attr_reader :num_results, :total_num_results, :page_number
6
+
7
+ def initialize(response)
8
+ @raw_xml = response.body
9
+ @xml = Nokogiri::XML(@raw_xml)
10
+ raise_errors
11
+ map_content(@xml.xpath('//GetQualificationRequestsResult'),
12
+ :num_results => 'NumResults',
13
+ :total_num_results => 'TotalNumResults',
14
+ :page_number => 'PageNumber'
15
+ )
16
+ end
17
+
18
+ def qualification_requests
19
+ @qualification_requests ||= []
20
+ @xml.xpath('//QualificationRequest').each do |qualification_request_xml|
21
+ @qualification_requests << QualificationRequestParser.new(qualification_request_xml)
22
+ end
23
+ @qualification_requests
24
+ end
25
+ end
26
+ end
@@ -1,300 +1,304 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rturk}
8
- s.version = "2.3.4"
8
+ s.version = "2.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Mark Percival"]
12
- s.date = %q{2010-11-18}
11
+ s.authors = ["Mark Percival", "Zach Hale", "David Balatero", "Rob Hanlon"]
12
+ s.date = %q{2011-03-29}
13
13
  s.email = %q{mark@mpercival.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
16
- "README.markdown"
16
+ "README.markdown"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- ".gitmodules",
21
- ".yardoc",
22
- "CHANGELOG.markdown",
23
- "Gemfile",
24
- "LICENSE",
25
- "README.markdown",
26
- "Rakefile",
27
- "TODO.markdown",
28
- "VERSION",
29
- "aws_docs/ApiReference_AnswerKeyDataStructureArticle.html",
30
- "aws_docs/ApiReference_ApproveAssignmentOperation.html",
31
- "aws_docs/ApiReference_AssignQualificationOperation.html",
32
- "aws_docs/ApiReference_AssignmentDataStructureArticle.html",
33
- "aws_docs/ApiReference_BlockWorkerOperation.html",
34
- "aws_docs/ApiReference_ChangeHITTypeOfHITOperation.html",
35
- "aws_docs/ApiReference_CommonParametersArticle.html",
36
- "aws_docs/ApiReference_CreateHITOperation.html",
37
- "aws_docs/ApiReference_CreateQualificationTypeOperation.html",
38
- "aws_docs/ApiReference_DataStructuresArticle.html",
39
- "aws_docs/ApiReference_DisableHITOperation.html",
40
- "aws_docs/ApiReference_DisposeHITOperation.html",
41
- "aws_docs/ApiReference_DisposeQualificationTypeOperation.html",
42
- "aws_docs/ApiReference_ExtendHITOperation.html",
43
- "aws_docs/ApiReference_ExternalQuestionArticle.html",
44
- "aws_docs/ApiReference_ForceExpireHITOperation.html",
45
- "aws_docs/ApiReference_FormattedContentXHTMLArticle.html",
46
- "aws_docs/ApiReference_GetAccountBalanceOperation.html",
47
- "aws_docs/ApiReference_GetAssignmentsForHITOperation.html",
48
- "aws_docs/ApiReference_GetBonusPaymentsOperation.html",
49
- "aws_docs/ApiReference_GetFileUploadURLOperation.html",
50
- "aws_docs/ApiReference_GetHITOperation.html",
51
- "aws_docs/ApiReference_GetHITsForQualificationTypeOperation.html",
52
- "aws_docs/ApiReference_GetQualificationRequestsOperation.html",
53
- "aws_docs/ApiReference_GetQualificationScoreOperation.html",
54
- "aws_docs/ApiReference_GetQualificationTypeOperation.html",
55
- "aws_docs/ApiReference_GetQualificationsForQualificationTypeOperation.html",
56
- "aws_docs/ApiReference_GetRequesterStatisticOperation.html",
57
- "aws_docs/ApiReference_GetReviewableHITsOperation.html",
58
- "aws_docs/ApiReference_GrantBonusOperation.html",
59
- "aws_docs/ApiReference_GrantQualificationOperation.html",
60
- "aws_docs/ApiReference_HITDataStructureArticle.html",
61
- "aws_docs/ApiReference_HelpOperation.html",
62
- "aws_docs/ApiReference_LocaleDataStructureArticle.html",
63
- "aws_docs/ApiReference_NotificationAPI_BuildingANotificationReceptor.html",
64
- "aws_docs/ApiReference_NotificationAPI_ElementsOfANotification.html",
65
- "aws_docs/ApiReference_NotificationDataStructureArticle.html",
66
- "aws_docs/ApiReference_NotificationReceptorAPIArticle.html",
67
- "aws_docs/ApiReference_NotificationReceptorAPI_RESTTransportArticle.html",
68
- "aws_docs/ApiReference_NotificationReceptorAPI_SOAPTransportArticle.html",
69
- "aws_docs/ApiReference_NotifyWorkersOperation.html",
70
- "aws_docs/ApiReference_OperationsArticle.html",
71
- "aws_docs/ApiReference_PriceDataStructureArticle.html",
72
- "aws_docs/ApiReference_QualificationDataStructureArticle.html",
73
- "aws_docs/ApiReference_QualificationRequestDataStructureArticle.html",
74
- "aws_docs/ApiReference_QualificationRequirementDataStructureArticle.html",
75
- "aws_docs/ApiReference_QualificationTypeDataStructureArticle.html",
76
- "aws_docs/ApiReference_QuestionAnswerDataArticle.html",
77
- "aws_docs/ApiReference_QuestionFormAnswersDataStructureArticle.html",
78
- "aws_docs/ApiReference_QuestionFormDataStructureArticle.html",
79
- "aws_docs/ApiReference_RegisterHITTypeOperation.html",
80
- "aws_docs/ApiReference_RejectAssignmentOperation.html",
81
- "aws_docs/ApiReference_RejectQualificationRequestOperation.html",
82
- "aws_docs/ApiReference_RevokeQualificationOperation.html",
83
- "aws_docs/ApiReference_SearchHITsOperation.html",
84
- "aws_docs/ApiReference_SearchQualificationTypesOperation.html",
85
- "aws_docs/ApiReference_SendTestEventNotificationOperation.html",
86
- "aws_docs/ApiReference_SetHITAsReviewingOperation.html",
87
- "aws_docs/ApiReference_SetHITTypeNotificationOperation.html",
88
- "aws_docs/ApiReference_UnblockWorkerOperation.html",
89
- "aws_docs/ApiReference_UpdateQualificationScoreOperation.html",
90
- "aws_docs/ApiReference_UpdateQualificationTypeOperation.html",
91
- "aws_docs/ApiReference_WsdlLocationArticle.html",
92
- "aws_docs/ApiReference_XMLParameterValuesArticle.html",
93
- "aws_docs/Welcome.html",
94
- "aws_docs/WhatsNew.html",
95
- "aws_docs/_title.html",
96
- "aws_docs/_toc.html",
97
- "aws_docs/aws-docs-IE.css",
98
- "aws_docs/aws-docs.css",
99
- "aws_docs/copyrightinfo.html",
100
- "aws_docs/frameset.js",
101
- "aws_docs/images/Feedback_link.gif",
102
- "aws_docs/images/caution.png",
103
- "aws_docs/images/home.gif",
104
- "aws_docs/images/important.png",
105
- "aws_docs/images/next.gif",
106
- "aws_docs/images/note.png",
107
- "aws_docs/images/prev.gif",
108
- "aws_docs/images/tip.png",
109
- "aws_docs/images/title-swoosh-logo.gif",
110
- "aws_docs/images/toc_bullet.gif",
111
- "aws_docs/images/toc_plus.gif",
112
- "aws_docs/index.html",
113
- "aws_docs/toc.js",
114
- "examples/blank_slate.rb",
115
- "examples/create_hit.rb",
116
- "examples/mturk.sample.yml",
117
- "examples/newtweet.html",
118
- "examples/review_answer.rb",
119
- "init.rb",
120
- "lib/rturk.rb",
121
- "lib/rturk/adapter.rb",
122
- "lib/rturk/adapters/assignment.rb",
123
- "lib/rturk/adapters/hit.rb",
124
- "lib/rturk/adapters/worker.rb",
125
- "lib/rturk/builders/notification_builder.rb",
126
- "lib/rturk/builders/qualification_builder.rb",
127
- "lib/rturk/builders/qualifications_builder.rb",
128
- "lib/rturk/builders/question_builder.rb",
129
- "lib/rturk/errors.rb",
130
- "lib/rturk/logger.rb",
131
- "lib/rturk/macros.rb",
132
- "lib/rturk/operation.rb",
133
- "lib/rturk/operations/approve_assignment.rb",
134
- "lib/rturk/operations/assign_qualification.rb",
135
- "lib/rturk/operations/block_worker.rb",
136
- "lib/rturk/operations/create_hit.rb",
137
- "lib/rturk/operations/create_qualification_type.rb",
138
- "lib/rturk/operations/disable_hit.rb",
139
- "lib/rturk/operations/dispose_hit.rb",
140
- "lib/rturk/operations/dispose_qualification_type.rb",
141
- "lib/rturk/operations/extend_hit.rb",
142
- "lib/rturk/operations/force_expire_hit.rb",
143
- "lib/rturk/operations/get_account_balance.rb",
144
- "lib/rturk/operations/get_assignments_for_hit.rb",
145
- "lib/rturk/operations/get_bonus_payments.rb",
146
- "lib/rturk/operations/get_hit.rb",
147
- "lib/rturk/operations/get_qualification_type.rb",
148
- "lib/rturk/operations/get_qualifications_for_qualification_type.rb",
149
- "lib/rturk/operations/get_reviewable_hits.rb",
150
- "lib/rturk/operations/grant_bonus.rb",
151
- "lib/rturk/operations/notify_workers.rb",
152
- "lib/rturk/operations/register_hit_type.rb",
153
- "lib/rturk/operations/reject_assignment.rb",
154
- "lib/rturk/operations/revoke_qualification.rb",
155
- "lib/rturk/operations/search_hits.rb",
156
- "lib/rturk/operations/send_test_event_notification.rb",
157
- "lib/rturk/operations/set_hit_type_notification.rb",
158
- "lib/rturk/operations/unblock_worker.rb",
159
- "lib/rturk/operations/update_qualification_type.rb",
160
- "lib/rturk/parser.rb",
161
- "lib/rturk/parsers/answer_parser.rb",
162
- "lib/rturk/parsers/assignment_parser.rb",
163
- "lib/rturk/parsers/bonus_payment_parser.rb",
164
- "lib/rturk/parsers/hit_parser.rb",
165
- "lib/rturk/parsers/qualification_parser.rb",
166
- "lib/rturk/parsers/response.rb",
167
- "lib/rturk/parsers/responses/create_hit_response.rb",
168
- "lib/rturk/parsers/responses/get_account_balance_response.rb",
169
- "lib/rturk/parsers/responses/get_assignments_for_hit_response.rb",
170
- "lib/rturk/parsers/responses/get_bonus_payments_response.rb",
171
- "lib/rturk/parsers/responses/get_hit_response.rb",
172
- "lib/rturk/parsers/responses/get_qualification_type_response.rb",
173
- "lib/rturk/parsers/responses/get_qualifications_for_qualification_type_response.rb",
174
- "lib/rturk/parsers/responses/get_reviewable_hits_response.rb",
175
- "lib/rturk/parsers/responses/register_hit_type_response.rb",
176
- "lib/rturk/parsers/responses/search_hits_response.rb",
177
- "lib/rturk/requester.rb",
178
- "lib/rturk/utilities.rb",
179
- "lib/rturk/xml_utilities.rb",
180
- "rturk.gemspec",
181
- "spec/adapters/assignment_spec.rb",
182
- "spec/adapters/hit_spec.rb",
183
- "spec/builders/notification_builder_spec.rb",
184
- "spec/builders/qualification_spec.rb",
185
- "spec/builders/qualifications_spec.rb",
186
- "spec/builders/question_spec.rb",
187
- "spec/fake_responses/approve_assignment.xml",
188
- "spec/fake_responses/assign_qualification.xml",
189
- "spec/fake_responses/block_worker.xml",
190
- "spec/fake_responses/create_hit.xml",
191
- "spec/fake_responses/create_qualification_type.xml",
192
- "spec/fake_responses/disable_hit.xml",
193
- "spec/fake_responses/dispose_hit.xml",
194
- "spec/fake_responses/dispose_qualification_type.xml",
195
- "spec/fake_responses/extend_hit.xml",
196
- "spec/fake_responses/force_expire_hit.xml",
197
- "spec/fake_responses/get_account_balance.xml",
198
- "spec/fake_responses/get_assignments.xml",
199
- "spec/fake_responses/get_assignments_multiple.xml",
200
- "spec/fake_responses/get_bonus_payments.xml",
201
- "spec/fake_responses/get_hit.xml",
202
- "spec/fake_responses/get_qualification_type.xml",
203
- "spec/fake_responses/get_qualifications_for_qualification_type.xml",
204
- "spec/fake_responses/get_reviewable_hits.xml",
205
- "spec/fake_responses/grant_bonus.xml",
206
- "spec/fake_responses/invalid_credentials.xml",
207
- "spec/fake_responses/notify_workers.xml",
208
- "spec/fake_responses/register_hit_type.xml",
209
- "spec/fake_responses/reject_assignment.xml",
210
- "spec/fake_responses/revoke_qualification.xml",
211
- "spec/fake_responses/search_hits.xml",
212
- "spec/fake_responses/unblock_worker.xml",
213
- "spec/fake_responses/update_qualification_type.xml",
214
- "spec/mturk.sample.yml",
215
- "spec/operations/approve_assignment_spec.rb",
216
- "spec/operations/assign_qualification_spec.rb",
217
- "spec/operations/block_worker_spec.rb",
218
- "spec/operations/create_hit_spec.rb",
219
- "spec/operations/create_qualification_type_spec.rb",
220
- "spec/operations/disable_hit_spec.rb",
221
- "spec/operations/dispose_hit_spec.rb",
222
- "spec/operations/dispose_qualification_type_spec.rb",
223
- "spec/operations/extend_hit_spec.rb",
224
- "spec/operations/force_expire_hit_spec.rb",
225
- "spec/operations/get_account_balance_spec.rb",
226
- "spec/operations/get_assignments_spec.rb",
227
- "spec/operations/get_bonus_payments_spec.rb",
228
- "spec/operations/get_hit_spec.rb",
229
- "spec/operations/get_qualification_type_spec.rb",
230
- "spec/operations/get_qualifications_for_qualification_type_spec.rb",
231
- "spec/operations/get_reviewable_hits_spec.rb",
232
- "spec/operations/grant_bonus_spec.rb",
233
- "spec/operations/notify_workers_spec.rb",
234
- "spec/operations/register_hit_type_spec.rb",
235
- "spec/operations/reject_assignment_spec.rb",
236
- "spec/operations/revoke_qualification_spec.rb",
237
- "spec/operations/send_test_event_notification_spec.rb",
238
- "spec/operations/set_hit_type_notification_spec.rb",
239
- "spec/operations/unblock_worker_spec.rb",
240
- "spec/operations/update_qualification_type_spec.rb",
241
- "spec/parsers/answer_parser_spec.rb",
242
- "spec/parsers/hit_parser_spec.rb",
243
- "spec/requester_spec.rb",
244
- "spec/response_spec.rb",
245
- "spec/rturk_spec.rb",
246
- "spec/spec_helper.rb",
247
- "spec/tmp",
248
- "spec/xml_parse_spec.rb"
19
+ ".gitmodules",
20
+ ".yardoc",
21
+ "CHANGELOG.markdown",
22
+ "Gemfile",
23
+ "LICENSE",
24
+ "README.markdown",
25
+ "Rakefile",
26
+ "TODO.markdown",
27
+ "VERSION",
28
+ "aws_docs/ApiReference_AnswerKeyDataStructureArticle.html",
29
+ "aws_docs/ApiReference_ApproveAssignmentOperation.html",
30
+ "aws_docs/ApiReference_AssignQualificationOperation.html",
31
+ "aws_docs/ApiReference_AssignmentDataStructureArticle.html",
32
+ "aws_docs/ApiReference_BlockWorkerOperation.html",
33
+ "aws_docs/ApiReference_ChangeHITTypeOfHITOperation.html",
34
+ "aws_docs/ApiReference_CommonParametersArticle.html",
35
+ "aws_docs/ApiReference_CreateHITOperation.html",
36
+ "aws_docs/ApiReference_CreateQualificationTypeOperation.html",
37
+ "aws_docs/ApiReference_DataStructuresArticle.html",
38
+ "aws_docs/ApiReference_DisableHITOperation.html",
39
+ "aws_docs/ApiReference_DisposeHITOperation.html",
40
+ "aws_docs/ApiReference_DisposeQualificationTypeOperation.html",
41
+ "aws_docs/ApiReference_ExtendHITOperation.html",
42
+ "aws_docs/ApiReference_ExternalQuestionArticle.html",
43
+ "aws_docs/ApiReference_ForceExpireHITOperation.html",
44
+ "aws_docs/ApiReference_FormattedContentXHTMLArticle.html",
45
+ "aws_docs/ApiReference_GetAccountBalanceOperation.html",
46
+ "aws_docs/ApiReference_GetAssignmentsForHITOperation.html",
47
+ "aws_docs/ApiReference_GetBonusPaymentsOperation.html",
48
+ "aws_docs/ApiReference_GetFileUploadURLOperation.html",
49
+ "aws_docs/ApiReference_GetHITOperation.html",
50
+ "aws_docs/ApiReference_GetHITsForQualificationTypeOperation.html",
51
+ "aws_docs/ApiReference_GetQualificationRequestsOperation.html",
52
+ "aws_docs/ApiReference_GetQualificationScoreOperation.html",
53
+ "aws_docs/ApiReference_GetQualificationTypeOperation.html",
54
+ "aws_docs/ApiReference_GetQualificationsForQualificationTypeOperation.html",
55
+ "aws_docs/ApiReference_GetRequesterStatisticOperation.html",
56
+ "aws_docs/ApiReference_GetReviewableHITsOperation.html",
57
+ "aws_docs/ApiReference_GrantBonusOperation.html",
58
+ "aws_docs/ApiReference_GrantQualificationOperation.html",
59
+ "aws_docs/ApiReference_HITDataStructureArticle.html",
60
+ "aws_docs/ApiReference_HelpOperation.html",
61
+ "aws_docs/ApiReference_LocaleDataStructureArticle.html",
62
+ "aws_docs/ApiReference_NotificationAPI_BuildingANotificationReceptor.html",
63
+ "aws_docs/ApiReference_NotificationAPI_ElementsOfANotification.html",
64
+ "aws_docs/ApiReference_NotificationDataStructureArticle.html",
65
+ "aws_docs/ApiReference_NotificationReceptorAPIArticle.html",
66
+ "aws_docs/ApiReference_NotificationReceptorAPI_RESTTransportArticle.html",
67
+ "aws_docs/ApiReference_NotificationReceptorAPI_SOAPTransportArticle.html",
68
+ "aws_docs/ApiReference_NotifyWorkersOperation.html",
69
+ "aws_docs/ApiReference_OperationsArticle.html",
70
+ "aws_docs/ApiReference_PriceDataStructureArticle.html",
71
+ "aws_docs/ApiReference_QualificationDataStructureArticle.html",
72
+ "aws_docs/ApiReference_QualificationRequestDataStructureArticle.html",
73
+ "aws_docs/ApiReference_QualificationRequirementDataStructureArticle.html",
74
+ "aws_docs/ApiReference_QualificationTypeDataStructureArticle.html",
75
+ "aws_docs/ApiReference_QuestionAnswerDataArticle.html",
76
+ "aws_docs/ApiReference_QuestionFormAnswersDataStructureArticle.html",
77
+ "aws_docs/ApiReference_QuestionFormDataStructureArticle.html",
78
+ "aws_docs/ApiReference_RegisterHITTypeOperation.html",
79
+ "aws_docs/ApiReference_RejectAssignmentOperation.html",
80
+ "aws_docs/ApiReference_RejectQualificationRequestOperation.html",
81
+ "aws_docs/ApiReference_RevokeQualificationOperation.html",
82
+ "aws_docs/ApiReference_SearchHITsOperation.html",
83
+ "aws_docs/ApiReference_SearchQualificationTypesOperation.html",
84
+ "aws_docs/ApiReference_SendTestEventNotificationOperation.html",
85
+ "aws_docs/ApiReference_SetHITAsReviewingOperation.html",
86
+ "aws_docs/ApiReference_SetHITTypeNotificationOperation.html",
87
+ "aws_docs/ApiReference_UnblockWorkerOperation.html",
88
+ "aws_docs/ApiReference_UpdateQualificationScoreOperation.html",
89
+ "aws_docs/ApiReference_UpdateQualificationTypeOperation.html",
90
+ "aws_docs/ApiReference_WsdlLocationArticle.html",
91
+ "aws_docs/ApiReference_XMLParameterValuesArticle.html",
92
+ "aws_docs/Welcome.html",
93
+ "aws_docs/WhatsNew.html",
94
+ "aws_docs/_title.html",
95
+ "aws_docs/_toc.html",
96
+ "aws_docs/aws-docs-IE.css",
97
+ "aws_docs/aws-docs.css",
98
+ "aws_docs/copyrightinfo.html",
99
+ "aws_docs/frameset.js",
100
+ "aws_docs/images/Feedback_link.gif",
101
+ "aws_docs/images/caution.png",
102
+ "aws_docs/images/home.gif",
103
+ "aws_docs/images/important.png",
104
+ "aws_docs/images/next.gif",
105
+ "aws_docs/images/note.png",
106
+ "aws_docs/images/prev.gif",
107
+ "aws_docs/images/tip.png",
108
+ "aws_docs/images/title-swoosh-logo.gif",
109
+ "aws_docs/images/toc_bullet.gif",
110
+ "aws_docs/images/toc_plus.gif",
111
+ "aws_docs/index.html",
112
+ "aws_docs/toc.js",
113
+ "examples/blank_slate.rb",
114
+ "examples/create_hit.rb",
115
+ "examples/mturk.sample.yml",
116
+ "examples/newtweet.html",
117
+ "examples/review_answer.rb",
118
+ "init.rb",
119
+ "lib/rturk.rb",
120
+ "lib/rturk/adapter.rb",
121
+ "lib/rturk/adapters/assignment.rb",
122
+ "lib/rturk/adapters/hit.rb",
123
+ "lib/rturk/adapters/worker.rb",
124
+ "lib/rturk/builders/notification_builder.rb",
125
+ "lib/rturk/builders/qualification_builder.rb",
126
+ "lib/rturk/builders/qualifications_builder.rb",
127
+ "lib/rturk/builders/question_builder.rb",
128
+ "lib/rturk/errors.rb",
129
+ "lib/rturk/logger.rb",
130
+ "lib/rturk/macros.rb",
131
+ "lib/rturk/operation.rb",
132
+ "lib/rturk/operations/approve_assignment.rb",
133
+ "lib/rturk/operations/assign_qualification.rb",
134
+ "lib/rturk/operations/block_worker.rb",
135
+ "lib/rturk/operations/create_hit.rb",
136
+ "lib/rturk/operations/create_qualification_type.rb",
137
+ "lib/rturk/operations/disable_hit.rb",
138
+ "lib/rturk/operations/dispose_hit.rb",
139
+ "lib/rturk/operations/dispose_qualification_type.rb",
140
+ "lib/rturk/operations/extend_hit.rb",
141
+ "lib/rturk/operations/force_expire_hit.rb",
142
+ "lib/rturk/operations/get_account_balance.rb",
143
+ "lib/rturk/operations/get_assignments_for_hit.rb",
144
+ "lib/rturk/operations/get_bonus_payments.rb",
145
+ "lib/rturk/operations/get_hit.rb",
146
+ "lib/rturk/operations/get_qualification_requests.rb",
147
+ "lib/rturk/operations/get_qualification_type.rb",
148
+ "lib/rturk/operations/get_qualifications_for_qualification_type.rb",
149
+ "lib/rturk/operations/get_reviewable_hits.rb",
150
+ "lib/rturk/operations/grant_bonus.rb",
151
+ "lib/rturk/operations/notify_workers.rb",
152
+ "lib/rturk/operations/register_hit_type.rb",
153
+ "lib/rturk/operations/reject_assignment.rb",
154
+ "lib/rturk/operations/revoke_qualification.rb",
155
+ "lib/rturk/operations/search_hits.rb",
156
+ "lib/rturk/operations/send_test_event_notification.rb",
157
+ "lib/rturk/operations/set_hit_type_notification.rb",
158
+ "lib/rturk/operations/unblock_worker.rb",
159
+ "lib/rturk/operations/update_qualification_type.rb",
160
+ "lib/rturk/parser.rb",
161
+ "lib/rturk/parsers/answer_parser.rb",
162
+ "lib/rturk/parsers/assignment_parser.rb",
163
+ "lib/rturk/parsers/bonus_payment_parser.rb",
164
+ "lib/rturk/parsers/hit_parser.rb",
165
+ "lib/rturk/parsers/qualification_parser.rb",
166
+ "lib/rturk/parsers/qualification_request_parser.rb",
167
+ "lib/rturk/parsers/response.rb",
168
+ "lib/rturk/parsers/responses/create_hit_response.rb",
169
+ "lib/rturk/parsers/responses/get_account_balance_response.rb",
170
+ "lib/rturk/parsers/responses/get_assignments_for_hit_response.rb",
171
+ "lib/rturk/parsers/responses/get_bonus_payments_response.rb",
172
+ "lib/rturk/parsers/responses/get_hit_response.rb",
173
+ "lib/rturk/parsers/responses/get_qualification_requests_response.rb",
174
+ "lib/rturk/parsers/responses/get_qualification_type_response.rb",
175
+ "lib/rturk/parsers/responses/get_qualifications_for_qualification_type_response.rb",
176
+ "lib/rturk/parsers/responses/get_reviewable_hits_response.rb",
177
+ "lib/rturk/parsers/responses/register_hit_type_response.rb",
178
+ "lib/rturk/parsers/responses/search_hits_response.rb",
179
+ "lib/rturk/requester.rb",
180
+ "lib/rturk/utilities.rb",
181
+ "lib/rturk/xml_utilities.rb",
182
+ "rturk.gemspec",
183
+ "spec/adapters/assignment_spec.rb",
184
+ "spec/adapters/hit_spec.rb",
185
+ "spec/builders/notification_builder_spec.rb",
186
+ "spec/builders/qualification_spec.rb",
187
+ "spec/builders/qualifications_spec.rb",
188
+ "spec/builders/question_spec.rb",
189
+ "spec/fake_responses/approve_assignment.xml",
190
+ "spec/fake_responses/assign_qualification.xml",
191
+ "spec/fake_responses/block_worker.xml",
192
+ "spec/fake_responses/create_hit.xml",
193
+ "spec/fake_responses/create_qualification_type.xml",
194
+ "spec/fake_responses/disable_hit.xml",
195
+ "spec/fake_responses/dispose_hit.xml",
196
+ "spec/fake_responses/dispose_qualification_type.xml",
197
+ "spec/fake_responses/extend_hit.xml",
198
+ "spec/fake_responses/force_expire_hit.xml",
199
+ "spec/fake_responses/get_account_balance.xml",
200
+ "spec/fake_responses/get_assignments.xml",
201
+ "spec/fake_responses/get_assignments_multiple.xml",
202
+ "spec/fake_responses/get_bonus_payments.xml",
203
+ "spec/fake_responses/get_hit.xml",
204
+ "spec/fake_responses/get_qualification_requests.xml",
205
+ "spec/fake_responses/get_qualification_type.xml",
206
+ "spec/fake_responses/get_qualifications_for_qualification_type.xml",
207
+ "spec/fake_responses/get_reviewable_hits.xml",
208
+ "spec/fake_responses/grant_bonus.xml",
209
+ "spec/fake_responses/invalid_credentials.xml",
210
+ "spec/fake_responses/notify_workers.xml",
211
+ "spec/fake_responses/register_hit_type.xml",
212
+ "spec/fake_responses/reject_assignment.xml",
213
+ "spec/fake_responses/revoke_qualification.xml",
214
+ "spec/fake_responses/search_hits.xml",
215
+ "spec/fake_responses/unblock_worker.xml",
216
+ "spec/fake_responses/update_qualification_type.xml",
217
+ "spec/mturk.sample.yml",
218
+ "spec/operations/approve_assignment_spec.rb",
219
+ "spec/operations/assign_qualification_spec.rb",
220
+ "spec/operations/block_worker_spec.rb",
221
+ "spec/operations/create_hit_spec.rb",
222
+ "spec/operations/create_qualification_type_spec.rb",
223
+ "spec/operations/disable_hit_spec.rb",
224
+ "spec/operations/dispose_hit_spec.rb",
225
+ "spec/operations/dispose_qualification_type_spec.rb",
226
+ "spec/operations/extend_hit_spec.rb",
227
+ "spec/operations/force_expire_hit_spec.rb",
228
+ "spec/operations/get_account_balance_spec.rb",
229
+ "spec/operations/get_assignments_spec.rb",
230
+ "spec/operations/get_bonus_payments_spec.rb",
231
+ "spec/operations/get_hit_spec.rb",
232
+ "spec/operations/get_qualification_requests_spec.rb",
233
+ "spec/operations/get_qualification_type_spec.rb",
234
+ "spec/operations/get_qualifications_for_qualification_type_spec.rb",
235
+ "spec/operations/get_reviewable_hits_spec.rb",
236
+ "spec/operations/grant_bonus_spec.rb",
237
+ "spec/operations/notify_workers_spec.rb",
238
+ "spec/operations/register_hit_type_spec.rb",
239
+ "spec/operations/reject_assignment_spec.rb",
240
+ "spec/operations/revoke_qualification_spec.rb",
241
+ "spec/operations/send_test_event_notification_spec.rb",
242
+ "spec/operations/set_hit_type_notification_spec.rb",
243
+ "spec/operations/unblock_worker_spec.rb",
244
+ "spec/operations/update_qualification_type_spec.rb",
245
+ "spec/parsers/answer_parser_spec.rb",
246
+ "spec/parsers/hit_parser_spec.rb",
247
+ "spec/requester_spec.rb",
248
+ "spec/response_spec.rb",
249
+ "spec/rturk_spec.rb",
250
+ "spec/spec_helper.rb",
251
+ "spec/tmp",
252
+ "spec/xml_parse_spec.rb"
249
253
  ]
250
- s.homepage = %q{http://github.com/markpercival/rturk}
251
- s.rdoc_options = ["--charset=UTF-8"]
254
+ s.homepage = %q{http://github.com/mdp/rturk}
252
255
  s.require_paths = ["lib"]
253
256
  s.rubygems_version = %q{1.3.7}
254
257
  s.summary = %q{Mechanical Turk API Wrapper}
255
258
  s.test_files = [
259
+ "examples/blank_slate.rb",
260
+ "examples/create_hit.rb",
261
+ "examples/review_answer.rb",
256
262
  "spec/adapters/assignment_spec.rb",
257
- "spec/adapters/hit_spec.rb",
258
- "spec/builders/notification_builder_spec.rb",
259
- "spec/builders/qualification_spec.rb",
260
- "spec/builders/qualifications_spec.rb",
261
- "spec/builders/question_spec.rb",
262
- "spec/operations/approve_assignment_spec.rb",
263
- "spec/operations/assign_qualification_spec.rb",
264
- "spec/operations/block_worker_spec.rb",
265
- "spec/operations/create_hit_spec.rb",
266
- "spec/operations/create_qualification_type_spec.rb",
267
- "spec/operations/disable_hit_spec.rb",
268
- "spec/operations/dispose_hit_spec.rb",
269
- "spec/operations/dispose_qualification_type_spec.rb",
270
- "spec/operations/extend_hit_spec.rb",
271
- "spec/operations/force_expire_hit_spec.rb",
272
- "spec/operations/get_account_balance_spec.rb",
273
- "spec/operations/get_assignments_spec.rb",
274
- "spec/operations/get_bonus_payments_spec.rb",
275
- "spec/operations/get_hit_spec.rb",
276
- "spec/operations/get_qualification_type_spec.rb",
277
- "spec/operations/get_qualifications_for_qualification_type_spec.rb",
278
- "spec/operations/get_reviewable_hits_spec.rb",
279
- "spec/operations/grant_bonus_spec.rb",
280
- "spec/operations/notify_workers_spec.rb",
281
- "spec/operations/register_hit_type_spec.rb",
282
- "spec/operations/reject_assignment_spec.rb",
283
- "spec/operations/revoke_qualification_spec.rb",
284
- "spec/operations/send_test_event_notification_spec.rb",
285
- "spec/operations/set_hit_type_notification_spec.rb",
286
- "spec/operations/unblock_worker_spec.rb",
287
- "spec/operations/update_qualification_type_spec.rb",
288
- "spec/parsers/answer_parser_spec.rb",
289
- "spec/parsers/hit_parser_spec.rb",
290
- "spec/requester_spec.rb",
291
- "spec/response_spec.rb",
292
- "spec/rturk_spec.rb",
293
- "spec/spec_helper.rb",
294
- "spec/xml_parse_spec.rb",
295
- "examples/blank_slate.rb",
296
- "examples/create_hit.rb",
297
- "examples/review_answer.rb"
263
+ "spec/adapters/hit_spec.rb",
264
+ "spec/builders/notification_builder_spec.rb",
265
+ "spec/builders/qualification_spec.rb",
266
+ "spec/builders/qualifications_spec.rb",
267
+ "spec/builders/question_spec.rb",
268
+ "spec/operations/approve_assignment_spec.rb",
269
+ "spec/operations/assign_qualification_spec.rb",
270
+ "spec/operations/block_worker_spec.rb",
271
+ "spec/operations/create_hit_spec.rb",
272
+ "spec/operations/create_qualification_type_spec.rb",
273
+ "spec/operations/disable_hit_spec.rb",
274
+ "spec/operations/dispose_hit_spec.rb",
275
+ "spec/operations/dispose_qualification_type_spec.rb",
276
+ "spec/operations/extend_hit_spec.rb",
277
+ "spec/operations/force_expire_hit_spec.rb",
278
+ "spec/operations/get_account_balance_spec.rb",
279
+ "spec/operations/get_assignments_spec.rb",
280
+ "spec/operations/get_bonus_payments_spec.rb",
281
+ "spec/operations/get_hit_spec.rb",
282
+ "spec/operations/get_qualification_requests_spec.rb",
283
+ "spec/operations/get_qualification_type_spec.rb",
284
+ "spec/operations/get_qualifications_for_qualification_type_spec.rb",
285
+ "spec/operations/get_reviewable_hits_spec.rb",
286
+ "spec/operations/grant_bonus_spec.rb",
287
+ "spec/operations/notify_workers_spec.rb",
288
+ "spec/operations/register_hit_type_spec.rb",
289
+ "spec/operations/reject_assignment_spec.rb",
290
+ "spec/operations/revoke_qualification_spec.rb",
291
+ "spec/operations/send_test_event_notification_spec.rb",
292
+ "spec/operations/set_hit_type_notification_spec.rb",
293
+ "spec/operations/unblock_worker_spec.rb",
294
+ "spec/operations/update_qualification_type_spec.rb",
295
+ "spec/parsers/answer_parser_spec.rb",
296
+ "spec/parsers/hit_parser_spec.rb",
297
+ "spec/requester_spec.rb",
298
+ "spec/response_spec.rb",
299
+ "spec/rturk_spec.rb",
300
+ "spec/spec_helper.rb",
301
+ "spec/xml_parse_spec.rb"
298
302
  ]
299
303
 
300
304
  if s.respond_to? :specification_version then
@@ -302,13 +306,25 @@ Gem::Specification.new do |s|
302
306
  s.specification_version = 3
303
307
 
304
308
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
309
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
310
+ s.add_runtime_dependency(%q<fakeweb>, [">= 0"])
311
+ s.add_runtime_dependency(%q<rest-client>, [">= 0"])
312
+ s.add_runtime_dependency(%q<rspec>, [">= 0"])
305
313
  s.add_runtime_dependency(%q<rest-client>, [">= 1.4.0"])
306
314
  s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.1"])
307
315
  else
316
+ s.add_dependency(%q<nokogiri>, [">= 0"])
317
+ s.add_dependency(%q<fakeweb>, [">= 0"])
318
+ s.add_dependency(%q<rest-client>, [">= 0"])
319
+ s.add_dependency(%q<rspec>, [">= 0"])
308
320
  s.add_dependency(%q<rest-client>, [">= 1.4.0"])
309
321
  s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
310
322
  end
311
323
  else
324
+ s.add_dependency(%q<nokogiri>, [">= 0"])
325
+ s.add_dependency(%q<fakeweb>, [">= 0"])
326
+ s.add_dependency(%q<rest-client>, [">= 0"])
327
+ s.add_dependency(%q<rspec>, [">= 0"])
312
328
  s.add_dependency(%q<rest-client>, [">= 1.4.0"])
313
329
  s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
314
330
  end
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0"?>
2
+ <GetQualificationRequestsResponse>
3
+ <OperationRequest>
4
+ <RequestId>49341251-fcbd-45c3-ab98-8fbe2e4d8060</RequestId>
5
+ </OperationRequest>
6
+ <GetQualificationRequestsResult>
7
+ <Request>
8
+ <IsValid>True</IsValid>
9
+ </Request>
10
+ <NumResults>1</NumResults>
11
+ <TotalNumResults>1</TotalNumResults>
12
+ <PageNumber>1</PageNumber>
13
+ <QualificationRequest>
14
+ <QualificationRequestId>789RVWYBAZW00EXAMPLE951RVWYBAZW00EXAMPLE</QualificationRequestId>
15
+ <QualificationTypeId>789RVWYBAZW00EXAMPLE</QualificationTypeId>
16
+ <SubjectId>AZ3456EXAMPLE</SubjectId>
17
+ <Test>
18
+ &lt;QuestionForm&gt;
19
+ [XML-encoded question data]
20
+ &lt;/QuestionForm&gt;
21
+ </Test>
22
+ <Answer>
23
+ &lt;QuestionFormAnswers&gt;
24
+ [XML-encoded answer data]
25
+ &lt;/QuestionFormAnswers&gt;
26
+ </Answer>
27
+ <SubmitTime>2005-12-01T23:59:59Z</SubmitTime>
28
+ </QualificationRequest>
29
+ </GetQualificationRequestsResult>
30
+ </GetQualificationRequestsResponse>
@@ -0,0 +1,27 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
2
+
3
+ describe RTurk::GetQualificationRequests do
4
+ before(:all) do
5
+ aws = YAML.load(File.open(File.join(SPEC_ROOT, 'mturk.yml')))
6
+ RTurk.setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true)
7
+ faker('get_qualification_requests', :operation => 'GetQualificationRequests')
8
+ end
9
+
10
+ it "should ensure required params" do
11
+ lambda{RTurk::GetQualificationRequests()}.should raise_error RTurk::MissingParameters
12
+ end
13
+
14
+ it "should successfully request the operation" do
15
+ RTurk::Requester.should_receive(:request).once.with(
16
+ hash_including('Operation' => 'GetQualificationRequests'))
17
+ RTurk::GetQualificationRequests(:qualification_type_id => '789RVWYBAZW00EXAMPLE') rescue RTurk::InvalidRequest
18
+ end
19
+
20
+ it "should parse and return the result" do
21
+ response = RTurk::GetQualificationRequests(:qualification_type_id => '789RVWYBAZW00EXAMPLE')
22
+ response.num_results.should == 1
23
+ response.qualification_requests.length.should == 1
24
+ response.qualification_requests[0].qualification_request_id.should == '789RVWYBAZW00EXAMPLE951RVWYBAZW00EXAMPLE'
25
+ response.qualification_requests[0].subject_id.should == 'AZ3456EXAMPLE'
26
+ end
27
+ end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe RTurk::Requester do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
 
4
4
  describe RTurk::Response do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe RTurk do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
 
4
4
  describe RTurk::XMLUtilities do
metadata CHANGED
@@ -1,27 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rturk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 3
9
- - 4
10
- version: 2.3.4
9
+ - 5
10
+ version: 2.3.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mark Percival
14
+ - Zach Hale
15
+ - David Balatero
16
+ - Rob Hanlon
14
17
  autorequire:
15
18
  bindir: bin
16
19
  cert_chain: []
17
20
 
18
- date: 2010-11-18 00:00:00 -08:00
21
+ date: 2011-03-29 00:00:00 -07:00
19
22
  default_executable:
20
23
  dependencies:
21
24
  - !ruby/object:Gem::Dependency
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: &id001 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ hash: 3
33
+ segments:
34
+ - 0
35
+ version: "0"
36
+ name: nokogiri
37
+ requirement: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 3
47
+ segments:
48
+ - 0
49
+ version: "0"
50
+ name: fakeweb
51
+ requirement: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
22
64
  name: rest-client
65
+ requirement: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ type: :runtime
23
68
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
69
+ version_requirements: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ name: rspec
79
+ requirement: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ type: :runtime
82
+ prerelease: false
83
+ version_requirements: &id005 !ruby/object:Gem::Requirement
25
84
  none: false
26
85
  requirements:
27
86
  - - ">="
@@ -32,12 +91,12 @@ dependencies:
32
91
  - 4
33
92
  - 0
34
93
  version: 1.4.0
35
- type: :runtime
36
- version_requirements: *id001
94
+ name: rest-client
95
+ requirement: *id005
37
96
  - !ruby/object:Gem::Dependency
38
- name: nokogiri
97
+ type: :runtime
39
98
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
99
+ version_requirements: &id006 !ruby/object:Gem::Requirement
41
100
  none: false
42
101
  requirements:
43
102
  - - ">="
@@ -48,8 +107,8 @@ dependencies:
48
107
  - 4
49
108
  - 1
50
109
  version: 1.4.1
51
- type: :runtime
52
- version_requirements: *id002
110
+ name: nokogiri
111
+ requirement: *id006
53
112
  description:
54
113
  email: mark@mpercival.com
55
114
  executables: []
@@ -60,7 +119,6 @@ extra_rdoc_files:
60
119
  - LICENSE
61
120
  - README.markdown
62
121
  files:
63
- - .gitignore
64
122
  - .gitmodules
65
123
  - .yardoc
66
124
  - CHANGELOG.markdown
@@ -188,6 +246,7 @@ files:
188
246
  - lib/rturk/operations/get_assignments_for_hit.rb
189
247
  - lib/rturk/operations/get_bonus_payments.rb
190
248
  - lib/rturk/operations/get_hit.rb
249
+ - lib/rturk/operations/get_qualification_requests.rb
191
250
  - lib/rturk/operations/get_qualification_type.rb
192
251
  - lib/rturk/operations/get_qualifications_for_qualification_type.rb
193
252
  - lib/rturk/operations/get_reviewable_hits.rb
@@ -207,12 +266,14 @@ files:
207
266
  - lib/rturk/parsers/bonus_payment_parser.rb
208
267
  - lib/rturk/parsers/hit_parser.rb
209
268
  - lib/rturk/parsers/qualification_parser.rb
269
+ - lib/rturk/parsers/qualification_request_parser.rb
210
270
  - lib/rturk/parsers/response.rb
211
271
  - lib/rturk/parsers/responses/create_hit_response.rb
212
272
  - lib/rturk/parsers/responses/get_account_balance_response.rb
213
273
  - lib/rturk/parsers/responses/get_assignments_for_hit_response.rb
214
274
  - lib/rturk/parsers/responses/get_bonus_payments_response.rb
215
275
  - lib/rturk/parsers/responses/get_hit_response.rb
276
+ - lib/rturk/parsers/responses/get_qualification_requests_response.rb
216
277
  - lib/rturk/parsers/responses/get_qualification_type_response.rb
217
278
  - lib/rturk/parsers/responses/get_qualifications_for_qualification_type_response.rb
218
279
  - lib/rturk/parsers/responses/get_reviewable_hits_response.rb
@@ -243,6 +304,7 @@ files:
243
304
  - spec/fake_responses/get_assignments_multiple.xml
244
305
  - spec/fake_responses/get_bonus_payments.xml
245
306
  - spec/fake_responses/get_hit.xml
307
+ - spec/fake_responses/get_qualification_requests.xml
246
308
  - spec/fake_responses/get_qualification_type.xml
247
309
  - spec/fake_responses/get_qualifications_for_qualification_type.xml
248
310
  - spec/fake_responses/get_reviewable_hits.xml
@@ -270,6 +332,7 @@ files:
270
332
  - spec/operations/get_assignments_spec.rb
271
333
  - spec/operations/get_bonus_payments_spec.rb
272
334
  - spec/operations/get_hit_spec.rb
335
+ - spec/operations/get_qualification_requests_spec.rb
273
336
  - spec/operations/get_qualification_type_spec.rb
274
337
  - spec/operations/get_qualifications_for_qualification_type_spec.rb
275
338
  - spec/operations/get_reviewable_hits_spec.rb
@@ -291,12 +354,12 @@ files:
291
354
  - spec/tmp
292
355
  - spec/xml_parse_spec.rb
293
356
  has_rdoc: true
294
- homepage: http://github.com/markpercival/rturk
357
+ homepage: http://github.com/mdp/rturk
295
358
  licenses: []
296
359
 
297
360
  post_install_message:
298
- rdoc_options:
299
- - --charset=UTF-8
361
+ rdoc_options: []
362
+
300
363
  require_paths:
301
364
  - lib
302
365
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -325,6 +388,9 @@ signing_key:
325
388
  specification_version: 3
326
389
  summary: Mechanical Turk API Wrapper
327
390
  test_files:
391
+ - examples/blank_slate.rb
392
+ - examples/create_hit.rb
393
+ - examples/review_answer.rb
328
394
  - spec/adapters/assignment_spec.rb
329
395
  - spec/adapters/hit_spec.rb
330
396
  - spec/builders/notification_builder_spec.rb
@@ -345,6 +411,7 @@ test_files:
345
411
  - spec/operations/get_assignments_spec.rb
346
412
  - spec/operations/get_bonus_payments_spec.rb
347
413
  - spec/operations/get_hit_spec.rb
414
+ - spec/operations/get_qualification_requests_spec.rb
348
415
  - spec/operations/get_qualification_type_spec.rb
349
416
  - spec/operations/get_qualifications_for_qualification_type_spec.rb
350
417
  - spec/operations/get_reviewable_hits_spec.rb
@@ -364,6 +431,3 @@ test_files:
364
431
  - spec/rturk_spec.rb
365
432
  - spec/spec_helper.rb
366
433
  - spec/xml_parse_spec.rb
367
- - examples/blank_slate.rb
368
- - examples/create_hit.rb
369
- - examples/review_answer.rb
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- mturk.yml
2
- *.gem
3
- examples/last_hit
4
- pkg
5
- *.sw?
6
- .rvmrc