typingpool 0.8.10 → 0.8.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/bin/tp-assign +9 -5
- data/bin/tp-config +6 -6
- data/bin/tp-finish +1 -1
- data/bin/tp-make +9 -3
- data/lib/typingpool/amazon/hit/full/fromsearchhits.rb +2 -1
- data/lib/typingpool/amazon/hit/full.rb +3 -2
- data/lib/typingpool/amazon/hit.rb +19 -1
- data/lib/typingpool/amazon.rb +1 -2
- data/lib/typingpool/app/cli.rb +3 -3
- data/lib/typingpool/app/friendlyexceptions.rb +1 -1
- data/lib/typingpool/app.rb +24 -6
- data/lib/typingpool/config/root.rb +1 -0
- data/lib/typingpool/config.rb +6 -5
- data/lib/typingpool/filer/audio.rb +2 -2
- data/lib/typingpool/filer/dir.rb +1 -1
- data/lib/typingpool/filer.rb +1 -1
- data/lib/typingpool/project/local.rb +3 -3
- data/lib/typingpool/project/remote.rb +4 -3
- data/lib/typingpool/project.rb +2 -1
- data/lib/typingpool/template.rb +2 -2
- data/lib/typingpool/test/fixtures/amazon-question-url.txt +1 -1
- data/lib/typingpool/test/fixtures/config-2 +1 -1
- data/lib/typingpool/test/fixtures/test_amazon_hit_full_time.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_1_assignment.csv +6 -6
- data/lib/typingpool/test/fixtures/tp_assign_1_id.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_1_time.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_3_assignment.csv +6 -6
- data/lib/typingpool/test/fixtures/tp_assign_3_id.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_3_time.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_4_assignment.csv +6 -6
- data/lib/typingpool/test/fixtures/tp_assign_4_id.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_4_time.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_6_assignment.csv +6 -6
- data/lib/typingpool/test/fixtures/tp_assign_6_id.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_assign_6_time.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_finish_3_assignment.csv +6 -6
- data/lib/typingpool/test/fixtures/tp_finish_3_id.txt +1 -1
- data/lib/typingpool/test/fixtures/tp_finish_3_time.txt +1 -1
- data/lib/typingpool/test/fixtures/vcr/test_amazon_hit_base.yml +35 -29
- data/lib/typingpool/test/fixtures/vcr/test_amazon_hit_create.yml +52 -44
- data/lib/typingpool/test/fixtures/vcr/test_amazon_hit_full.yml +36 -30
- data/lib/typingpool/test/fixtures/vcr/test_amazon_hit_full_fromsearchhits.yml +69 -57
- data/lib/typingpool/test/fixtures/vcr/test_amazon_hit_retrievers.yml +94 -76
- data/lib/typingpool/test/fixtures/vcr/test_handles_hits_with_broken_external_question.yml +51 -53
- data/lib/typingpool/test/fixtures/vcr/tp_assign_1.yml +628 -628
- data/lib/typingpool/test/fixtures/vcr/tp_assign_2.yml +265 -3044
- data/lib/typingpool/test/fixtures/vcr/tp_assign_3.yml +629 -629
- data/lib/typingpool/test/fixtures/vcr/tp_assign_4.yml +65 -62
- data/lib/typingpool/test/fixtures/vcr/tp_assign_5.yml +623 -623
- data/lib/typingpool/test/fixtures/vcr/tp_assign_6.yml +592 -588
- data/lib/typingpool/test/fixtures/vcr/tp_assign_7.yml +195 -195
- data/lib/typingpool/test/fixtures/vcr/tp_finish_1.yml +91 -91
- data/lib/typingpool/test/fixtures/vcr/tp_finish_2.yml +76 -3989
- data/lib/typingpool/test/fixtures/vcr/tp_finish_3.yml +713 -695
- data/lib/typingpool/test/fixtures/vcr/tp_finish_4.yml +527 -3276
- data/lib/typingpool/test/fixtures/vcr/tp_finish_5.yml +338 -5602
- data/lib/typingpool/test/fixtures/vcr/tp_finish_6.yml +91 -91
- data/lib/typingpool/test/fixtures/vcr/tp_finish_7.yml +86 -3999
- data/lib/typingpool/test/fixtures/vcr/tp_finish_8.yml +51 -0
- data/lib/typingpool/test/script.rb +4 -6
- data/lib/typingpool/test.rb +3 -2
- data/lib/typingpool/utility.rb +6 -5
- data/lib/typingpool/version.rb +1 -1
- data/test/test_integration_script_1_tp_config.rb +12 -12
- data/test/test_integration_script_2_tp_make.rb +24 -8
- data/test/test_integration_script_3_tp_assign.rb +34 -19
- data/test/test_integration_script_4_tp_review.rb +1 -1
- data/test/test_integration_script_6_tp_finish.rb +5 -5
- data/test/test_unit_amazon.rb +12 -4
- data/test/test_unit_config.rb +2 -2
- data/test/test_unit_filer.rb +14 -14
- data/test/test_unit_project.rb +3 -3
- data/test/test_unit_project_local.rb +4 -4
- data/test/test_unit_project_remote.rb +1 -1
- data/test/test_unit_test.rb +2 -2
- data/typingpool.gemspec +3 -2
- metadata +24 -8
@@ -5,16 +5,18 @@ http_interactions:
|
|
5
5
|
uri: https://mechanicalturk.sandbox.amazonaws.com/
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: Title=Transcribe+MP3+of+1-minute+phone+calll&Description=I+split+up+a+telephone+conversation+into+1-minute+parts%2C+you+transcribe+the+audio+for+one+1-minute+part.&AssignmentDurationInSeconds=
|
8
|
+
string: Title=Transcribe+MP3+of+1-minute+phone+calll&Description=I+split+up+a+telephone+conversation+into+1-minute+parts%2C+you+transcribe+the+audio+for+one+1-minute+part.&AssignmentDurationInSeconds=600&Reward.Amount=0.01&Reward.CurrencyCode=USD&Keywords=transcription%2C+audio%2C+mp3&AutoApprovalDelayInSeconds=86400&QualificationRequirement.1.QualificationTypeId=000000000000000000L0&QualificationRequirement.1.Comparator=GreaterThanOrEqualTo&QualificationRequirement.1.IntegerValue=95&QualificationRequirement.1.RequiredToPreview=true&QualificationRequirement.2.QualificationTypeId=00000000000000000040&QualificationRequirement.2.Comparator=GreaterThanOrEqualTo&QualificationRequirement.2.IntegerValue=100&QualificationRequirement.2.RequiredToPreview=true&MaxAssignments=1&Question=%3CExternalQuestion+xmlns%3D%22http%3A%2F%2Fmechanicalturk.amazonaws.com%2FAWSMechanicalTurkDataSchemas%2F2006-07-14%2FExternalQuestion.xsd%22%3E%0A++%3CExternalURL%3Ehttps%3A%2F%2Fwebmasher.com%2Fmturk%2Fdummy-missing-file-21n0ryx0pcn4izsi%3C%2FExternalURL%3E%0A++%3CFrameHeight%3E400%3C%2FFrameHeight%3E%0A%3C%2FExternalQuestion%3E%0A&LifetimeInSeconds=1200&RequesterAnnotation=typingpool_url%3Dhttp%253A%252F%252Fwebmasher.com%252Fmturk%252FTestTpInterview.00.00.77421e0a6302f4c8c34e24004a4ad828.YSOQJU.mp3%26amp%3Btypingpool_project_id%3D77421e0a6302f4c8c34e24004a4ad828&Operation=CreateHIT&Service=AWSMechanicalTurkRequester&AWSAccessKeyId=<AWS_KEY>&Timestamp=2016-12-31T02%3A09%3A29Z&Version=2012-03-25&Signature=XXZJEfI1WW1LyPXeM4hOuWiiwrE%3D
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
- '
|
11
|
+
- '*/*'
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
-
Content-Length:
|
15
|
-
- '1540'
|
16
14
|
User-Agent:
|
17
|
-
-
|
15
|
+
- rest-client/2.0.0 (darwin15.6.0 x86_64) ruby/2.0.0p353
|
16
|
+
Content-Length:
|
17
|
+
- '1538'
|
18
|
+
Host:
|
19
|
+
- mechanicalturk.sandbox.amazonaws.com
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
@@ -25,31 +27,33 @@ http_interactions:
|
|
25
27
|
Transfer-Encoding:
|
26
28
|
- chunked
|
27
29
|
Date:
|
28
|
-
-
|
30
|
+
- Sat, 31 Dec 2016 02:09:28 GMT
|
29
31
|
Server:
|
30
32
|
- MTurk
|
31
33
|
body:
|
32
34
|
encoding: UTF-8
|
33
35
|
string: |-
|
34
36
|
<?xml version="1.0"?>
|
35
|
-
<CreateHITResponse><OperationRequest><RequestId>
|
37
|
+
<CreateHITResponse><OperationRequest><RequestId>fa34dc4b-1e1f-40ad-bbd8-0019490c9de6</RequestId></OperationRequest><HIT><Request><IsValid>True</IsValid></Request><HITId>3Z56AA6EK4G7MZ6Z1XZ95V6TYGMM6A</HITId><HITTypeId>3FJMTJX97O5QAQ6TYMEKGK4K51PA6J</HITTypeId></HIT></CreateHITResponse>
|
36
38
|
http_version:
|
37
|
-
recorded_at:
|
39
|
+
recorded_at: Sat, 31 Dec 2016 02:09:29 GMT
|
38
40
|
- request:
|
39
41
|
method: post
|
40
42
|
uri: https://mechanicalturk.sandbox.amazonaws.com/
|
41
43
|
body:
|
42
44
|
encoding: UTF-8
|
43
|
-
string: HITId=
|
45
|
+
string: HITId=3Z56AA6EK4G7MZ6Z1XZ95V6TYGMM6A&ResponseGroup.0=HITDetail&ResponseGroup.1=HITQuestion&ResponseGroup.2=Minimal&ResponseGroup.3=HITAssignmentSummary&Operation=GetHIT&Service=AWSMechanicalTurkRequester&AWSAccessKeyId=<AWS_KEY>&Timestamp=2016-12-31T02%3A09%3A29Z&Version=2012-03-25&Signature=uL6nhkVQz8O3dDhLYnhFrwFDNAM%3D
|
44
46
|
headers:
|
45
47
|
Accept:
|
46
|
-
- '
|
48
|
+
- '*/*'
|
47
49
|
Accept-Encoding:
|
48
50
|
- gzip, deflate
|
49
|
-
Content-Length:
|
50
|
-
- '340'
|
51
51
|
User-Agent:
|
52
|
-
-
|
52
|
+
- rest-client/2.0.0 (darwin15.6.0 x86_64) ruby/2.0.0p353
|
53
|
+
Content-Length:
|
54
|
+
- '334'
|
55
|
+
Host:
|
56
|
+
- mechanicalturk.sandbox.amazonaws.com
|
53
57
|
response:
|
54
58
|
status:
|
55
59
|
code: 200
|
@@ -60,23 +64,23 @@ http_interactions:
|
|
60
64
|
Transfer-Encoding:
|
61
65
|
- chunked
|
62
66
|
Date:
|
63
|
-
-
|
67
|
+
- Sat, 31 Dec 2016 02:09:29 GMT
|
64
68
|
Server:
|
65
69
|
- MTurk
|
66
70
|
body:
|
67
71
|
encoding: UTF-8
|
68
|
-
string:
|
69
|
-
|
70
|
-
into 1-minute parts, you transcribe the audio for one 1-minute part.</Description><Question><ExternalQuestion
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
audio, mp3</Keywords><HITStatus>Assignable</HITStatus><MaxAssignments>1</MaxAssignments><Reward><Amount>0.01</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$0.01</FormattedPrice></Reward><AutoApprovalDelayInSeconds>86400</AutoApprovalDelayInSeconds><Expiration>
|
72
|
+
string: |-
|
73
|
+
<?xml version="1.0"?>
|
74
|
+
<GetHITResponse><OperationRequest><RequestId>0fd00c7f-fa13-4d87-af97-d790a7594b7d</RequestId></OperationRequest><HIT><Request><IsValid>True</IsValid></Request><HITId>3Z56AA6EK4G7MZ6Z1XZ95V6TYGMM6A</HITId><HITTypeId>3FJMTJX97O5QAQ6TYMEKGK4K51PA6J</HITTypeId><HITGroupId>346AHROM60PF93NK7E74UE17XHEHQ0</HITGroupId><CreationTime>2016-12-31T02:09:29Z</CreationTime><Title>Transcribe MP3 of 1-minute phone calll</Title><Description>I split up a telephone conversation into 1-minute parts, you transcribe the audio for one 1-minute part.</Description><Question><ExternalQuestion xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2006-07-14/ExternalQuestion.xsd">
|
75
|
+
<ExternalURL>https://webmasher.com/mturk/dummy-missing-file-21n0ryx0pcn4izsi</ExternalURL>
|
76
|
+
<FrameHeight>400</FrameHeight>
|
77
|
+
</ExternalQuestion>
|
78
|
+
</Question><Keywords>transcription, audio, mp3</Keywords><HITStatus>Assignable</HITStatus><MaxAssignments>1</MaxAssignments><Reward><Amount>0.01</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$0.01</FormattedPrice></Reward><AutoApprovalDelayInSeconds>86400</AutoApprovalDelayInSeconds><Expiration>2016-12-31T02:29:29Z</Expiration><AssignmentDurationInSeconds>600</AssignmentDurationInSeconds><RequesterAnnotation>typingpool_url=http%3A%2F%2Fwebmasher.com%2Fmturk%2FTestTpInterview.00.00.77421e0a6302f4c8c34e24004a4ad828.YSOQJU.mp3&amp;typingpool_project_id=77421e0a6302f4c8c34e24004a4ad828</RequesterAnnotation><QualificationRequirement><QualificationTypeId>000000000000000000L0</QualificationTypeId><Comparator>GreaterThanOrEqualTo</Comparator><IntegerValue>95</IntegerValue><RequiredToPreview>1</RequiredToPreview></QualificationRequirement><QualificationRequirement><QualificationTypeId>00000000000000000040</QualificationTypeId><Comparator>GreaterThanOrEqualTo</Comparator><IntegerValue>100</IntegerValue><RequiredToPreview>1</RequiredToPreview></QualificationRequirement><HITReviewStatus>NotReviewed</HITReviewStatus><NumberOfAssignmentsPending>0</NumberOfAssignmentsPending><NumberOfAssignmentsAvailable>1</NumberOfAssignmentsAvailable><NumberOfAssignmentsCompleted>0</NumberOfAssignmentsCompleted></HIT></GetHITResponse>
|
75
79
|
http_version:
|
76
|
-
recorded_at:
|
80
|
+
recorded_at: Sat, 31 Dec 2016 02:09:29 GMT
|
77
81
|
- request:
|
78
82
|
method: get
|
79
|
-
uri:
|
83
|
+
uri: https://webmasher.com/mturk/dummy-missing-file-21n0ryx0pcn4izsi
|
80
84
|
body:
|
81
85
|
encoding: US-ASCII
|
82
86
|
string: ''
|
@@ -93,15 +97,11 @@ http_interactions:
|
|
93
97
|
message: Not Found
|
94
98
|
headers:
|
95
99
|
Date:
|
96
|
-
-
|
100
|
+
- Sat, 31 Dec 2016 02:09:30 GMT
|
97
101
|
Server:
|
98
|
-
- Apache/2.
|
99
|
-
Vary:
|
100
|
-
- Accept-Encoding
|
102
|
+
- Apache/2.4.7 (Ubuntu)
|
101
103
|
Content-Length:
|
102
|
-
- '
|
103
|
-
Connection:
|
104
|
-
- close
|
104
|
+
- '318'
|
105
105
|
Content-Type:
|
106
106
|
- text/html; charset=iso-8859-1
|
107
107
|
body:
|
@@ -112,15 +112,15 @@ http_interactions:
|
|
112
112
|
<title>404 Not Found</title>
|
113
113
|
</head><body>
|
114
114
|
<h1>Not Found</h1>
|
115
|
-
<p>The requested URL /mturk/dummy-missing-file-
|
115
|
+
<p>The requested URL /mturk/dummy-missing-file-21n0ryx0pcn4izsi was not found on this server.</p>
|
116
116
|
<hr>
|
117
|
-
<address>Apache/2.
|
117
|
+
<address>Apache/2.4.7 (Ubuntu) Server at webmasher.com Port 443</address>
|
118
118
|
</body></html>
|
119
119
|
http_version:
|
120
|
-
recorded_at:
|
120
|
+
recorded_at: Sat, 31 Dec 2016 02:09:30 GMT
|
121
121
|
- request:
|
122
122
|
method: get
|
123
|
-
uri:
|
123
|
+
uri: https://webmasher.com/mturk/dummy-missing-file-21n0ryx0pcn4izsi
|
124
124
|
body:
|
125
125
|
encoding: US-ASCII
|
126
126
|
string: ''
|
@@ -137,15 +137,11 @@ http_interactions:
|
|
137
137
|
message: Not Found
|
138
138
|
headers:
|
139
139
|
Date:
|
140
|
-
-
|
140
|
+
- Sat, 31 Dec 2016 02:09:30 GMT
|
141
141
|
Server:
|
142
|
-
- Apache/2.
|
143
|
-
Vary:
|
144
|
-
- Accept-Encoding
|
142
|
+
- Apache/2.4.7 (Ubuntu)
|
145
143
|
Content-Length:
|
146
|
-
- '
|
147
|
-
Connection:
|
148
|
-
- close
|
144
|
+
- '318'
|
149
145
|
Content-Type:
|
150
146
|
- text/html; charset=iso-8859-1
|
151
147
|
body:
|
@@ -156,27 +152,29 @@ http_interactions:
|
|
156
152
|
<title>404 Not Found</title>
|
157
153
|
</head><body>
|
158
154
|
<h1>Not Found</h1>
|
159
|
-
<p>The requested URL /mturk/dummy-missing-file-
|
155
|
+
<p>The requested URL /mturk/dummy-missing-file-21n0ryx0pcn4izsi was not found on this server.</p>
|
160
156
|
<hr>
|
161
|
-
<address>Apache/2.
|
157
|
+
<address>Apache/2.4.7 (Ubuntu) Server at webmasher.com Port 443</address>
|
162
158
|
</body></html>
|
163
159
|
http_version:
|
164
|
-
recorded_at:
|
160
|
+
recorded_at: Sat, 31 Dec 2016 02:09:30 GMT
|
165
161
|
- request:
|
166
162
|
method: post
|
167
163
|
uri: https://mechanicalturk.sandbox.amazonaws.com/
|
168
164
|
body:
|
169
165
|
encoding: UTF-8
|
170
|
-
string: HITId=
|
166
|
+
string: HITId=3Z56AA6EK4G7MZ6Z1XZ95V6TYGMM6A&Operation=DisableHIT&Service=AWSMechanicalTurkRequester&AWSAccessKeyId=<AWS_KEY>&Timestamp=2016-12-31T02%3A09%3A30Z&Version=2012-03-25&Signature=f%2B%2B%2FkgKrmsG0xy9jLWpcjab%2Bqy4%3D
|
171
167
|
headers:
|
172
168
|
Accept:
|
173
|
-
- '
|
169
|
+
- '*/*'
|
174
170
|
Accept-Encoding:
|
175
171
|
- gzip, deflate
|
176
|
-
Content-Length:
|
177
|
-
- '223'
|
178
172
|
User-Agent:
|
179
|
-
-
|
173
|
+
- rest-client/2.0.0 (darwin15.6.0 x86_64) ruby/2.0.0p353
|
174
|
+
Content-Length:
|
175
|
+
- '231'
|
176
|
+
Host:
|
177
|
+
- mechanicalturk.sandbox.amazonaws.com
|
180
178
|
response:
|
181
179
|
status:
|
182
180
|
code: 200
|
@@ -187,14 +185,14 @@ http_interactions:
|
|
187
185
|
Transfer-Encoding:
|
188
186
|
- chunked
|
189
187
|
Date:
|
190
|
-
-
|
188
|
+
- Sat, 31 Dec 2016 02:09:30 GMT
|
191
189
|
Server:
|
192
190
|
- MTurk
|
193
191
|
body:
|
194
192
|
encoding: UTF-8
|
195
193
|
string: |-
|
196
194
|
<?xml version="1.0"?>
|
197
|
-
<DisableHITResponse><OperationRequest><RequestId>
|
195
|
+
<DisableHITResponse><OperationRequest><RequestId>c8dc0cbf-1010-46ac-be5b-80d25b0f5cb6</RequestId></OperationRequest><DisableHITResult><Request><IsValid>True</IsValid></Request></DisableHITResult></DisableHITResponse>
|
198
196
|
http_version:
|
199
|
-
recorded_at:
|
200
|
-
recorded_with: VCR
|
197
|
+
recorded_at: Sat, 31 Dec 2016 02:09:31 GMT
|
198
|
+
recorded_with: VCR 3.0.3
|