typingpool 0.8.8 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,352 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://mechanicalturk.sandbox.amazonaws.com/
6
+ body:
7
+ encoding: UTF-8
8
+ base64_string: |
9
+ UGFnZVNpemU9MTAwJlBhZ2VOdW1iZXI9MSZPcGVyYXRpb249U2VhcmNoSElU
10
+ cyZTZXJ2aWNlPUFXU01lY2hhbmljYWxUdXJrUmVxdWVzdGVyJkFXU0FjY2Vz
11
+ c0tleUlkPTxBV1NfS0VZPiZUaW1lc3RhbXA9MjAxMy0xMS0yNlQxOSUzQTMz
12
+ JTNBMDZaJlZlcnNpb249MjAxMi0wMy0yNSZTaWduYXR1cmU9NlZoYWdxUlBH
13
+ dmM3WFIlMkY3TGZaekhQcUVBU3clM0Q=
14
+ headers:
15
+ Accept:
16
+ - "*/*; q=0.5, application/xml"
17
+ Accept-Encoding:
18
+ - gzip, deflate
19
+ Content-Length:
20
+ - '214'
21
+ User-Agent:
22
+ - Ruby
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: OK
27
+ headers:
28
+ Content-Type:
29
+ - text/xml
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Date:
33
+ - Tue, 26 Nov 2013 19:33:06 GMT
34
+ Server:
35
+ - MTurk
36
+ body:
37
+ encoding: UTF-8
38
+ base64_string: |
39
+ PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxTZWFyY2hISVRzUmVzcG9uc2U+PE9w
40
+ ZXJhdGlvblJlcXVlc3Q+PFJlcXVlc3RJZD43Y2JlYzI1MS1kNzZjLTRmMTgt
41
+ ODJkZi05NzYwZjIwMzg0OGU8L1JlcXVlc3RJZD48L09wZXJhdGlvblJlcXVl
42
+ c3Q+PFNlYXJjaEhJVHNSZXN1bHQ+PFJlcXVlc3Q+PElzVmFsaWQ+VHJ1ZTwv
43
+ SXNWYWxpZD48L1JlcXVlc3Q+PE51bVJlc3VsdH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C9FeHBpcmF0aW9uPjxBc3NpZ25t
206
+ ZW50RHVyYXRpb25JblNlY29uZHM+MTgwMDA8L0Fzc2lnbm1lbnREdXJhdGlv
207
+ bkluU2Vjb25kcz48UmVxdWVzdGVyQW5ub3RhdGlvbj50eXBpbmdwb29sX3Vy
208
+ bD1odHRwcyUzQSUyRiUyRnR5cGluZ3Bvb2wtdG9reW8tdGVzdC1mZmE2MC16
209
+ enouczMuYW1hem9uYXdzLmNvbSUyRlR5cGluZ3Bvb2wlMjdzJTI1MjBUZXN0
210
+ JTI1MjAlMjYlMjUyMEludGVydmlldy4wMS41MC4wYzRlOGVjYmY1NGJkZDY4
211
+ MDQ2NTM0OTllN2RmNDVmNS5WRU1XRUwubXAzJmFtcDthbXA7dHlwaW5ncG9v
212
+ bF9wcm9qZWN0X2lkPTBjNGU4ZWNiZjU0YmRkNjgwNDY1MzQ5OWU3ZGY0NWY1
213
+ PC9SZXF1ZXN0ZXJBbm5vdGF0aW9uPjxISVRSZXZpZXdTdGF0dXM+Tm90UmV2
214
+ aWV3ZWQ8L0hJVFJldmlld1N0YXR1cz48TnVtYmVyT2ZBc3NpZ25tZW50c1Bl
215
+ bmRpbmc+MDwvTnVtYmVyT2ZBc3NpZ25tZW50c1BlbmRpbmc+PE51bWJlck9m
216
+ QXNzaWdubWVudHNBdmFpbGFibGU+MTwvTnVtYmVyT2ZBc3NpZ25tZW50c0F2
217
+ YWlsYWJsZT48TnVtYmVyT2ZBc3NpZ25tZW50c0NvbXBsZXRlZD4wPC9OdW1i
218
+ ZXJPZkFzc2lnbm1lbnRzQ29tcGxldGVkPjwvSElUPjwvU2VhcmNoSElUc1Jl
219
+ c3VsdD48L1NlYXJjaEhJVHNSZXNwb25zZT4=
220
+ http_version:
221
+ recorded_at: Tue, 26 Nov 2013 19:33:06 GMT
222
+ - request:
223
+ method: post
224
+ uri: https://mechanicalturk.sandbox.amazonaws.com/
225
+ body:
226
+ encoding: UTF-8
227
+ base64_string: |
228
+ UGFnZVNpemU9MTAwJlBhZ2VOdW1iZXI9MiZPcGVyYXRpb249U2VhcmNoSElU
229
+ cyZTZXJ2aWNlPUFXU01lY2hhbmljYWxUdXJrUmVxdWVzdGVyJkFXU0FjY2Vz
230
+ c0tleUlkPTxBV1NfS0VZPiZUaW1lc3RhbXA9MjAxMy0xMS0yNlQxOSUzQTMz
231
+ JTNBMDZaJlZlcnNpb249MjAxMi0wMy0yNSZTaWduYXR1cmU9NlZoYWdxUlBH
232
+ dmM3WFIlMkY3TGZaekhQcUVBU3clM0Q=
233
+ headers:
234
+ Accept:
235
+ - "*/*; q=0.5, application/xml"
236
+ Accept-Encoding:
237
+ - gzip, deflate
238
+ Content-Length:
239
+ - '214'
240
+ User-Agent:
241
+ - Ruby
242
+ response:
243
+ status:
244
+ code: 200
245
+ message: OK
246
+ headers:
247
+ Content-Type:
248
+ - text/xml
249
+ Transfer-Encoding:
250
+ - chunked
251
+ Date:
252
+ - Tue, 26 Nov 2013 19:33:07 GMT
253
+ Server:
254
+ - MTurk
255
+ body:
256
+ encoding: UTF-8
257
+ base64_string: |
258
+ PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxTZWFyY2hISVRzUmVzcG9uc2U+PE9w
259
+ ZXJhdGlvblJlcXVlc3Q+PFJlcXVlc3RJZD4xZmUxMGNkYy03MWQ1LTQwMGQt
260
+ YjRkYS0xNDRhNzJiMGEwM2Q8L1JlcXVlc3RJZD48L09wZXJhdGlvblJlcXVl
261
+ c3Q+PFNlYXJjaEhJVHNSZXN1bHQ+PFJlcXVlc3Q+PElzVmFsaWQ+VHJ1ZTwv
262
+ SXNWYWxpZD48L1JlcXVlc3Q+PE51bVJlc3VsdHM+MDwvTnVtUmVzdWx0cz48
263
+ VG90YWxOdW1SZXN1bHRzPjY8L1RvdGFsTnVtUmVzdWx0cz48UGFnZU51bWJl
264
+ cj4yPC9QYWdlTnVtYmVyPjwvU2VhcmNoSElUc1Jlc3VsdD48L1NlYXJjaEhJ
265
+ VHNSZXNwb25zZT4=
266
+ http_version:
267
+ recorded_at: Tue, 26 Nov 2013 19:33:07 GMT
268
+ - request:
269
+ method: post
270
+ uri: https://mechanicalturk.sandbox.amazonaws.com/
271
+ body:
272
+ encoding: UTF-8
273
+ base64_string: |
274
+ SElUSWQ9MjQxOTJOSktNMDVCMDJBNlRBTjJKVFA5M1dXRkE0JlJlc3BvbnNl
275
+ R3JvdXAuMD1ISVREZXRhaWwmUmVzcG9uc2VHcm91cC4xPUhJVFF1ZXN0aW9u
276
+ JlJlc3BvbnNlR3JvdXAuMj1NaW5pbWFsJlJlc3BvbnNlR3JvdXAuMz1ISVRB
277
+ c3NpZ25tZW50U3VtbWFyeSZPcGVyYXRpb249R2V0SElUJlNlcnZpY2U9QVdT
278
+ TWVjaGFuaWNhbFR1cmtSZXF1ZXN0ZXImQVdTQWNjZXNzS2V5SWQ9PEFXU19L
279
+ RVk+JlRpbWVzdGFtcD0yMDEzLTExLTI2VDE5JTNBMzMlM0EwN1omVmVyc2lv
280
+ bj0yMDEyLTAzLTI1JlNpZ25hdHVyZT1MOXdvNVlhNGFqT1dCZmV2ZnZLY2pJ
281
+ cVAwZE0lM0Q=
282
+ headers:
283
+ Accept:
284
+ - "*/*; q=0.5, application/xml"
285
+ Accept-Encoding:
286
+ - gzip, deflate
287
+ Content-Length:
288
+ - '334'
289
+ User-Agent:
290
+ - Ruby
291
+ response:
292
+ status:
293
+ code: 200
294
+ message: OK
295
+ headers:
296
+ Content-Type:
297
+ - text/xml
298
+ Transfer-Encoding:
299
+ - chunked
300
+ Date:
301
+ - Tue, 26 Nov 2013 19:33:07 GMT
302
+ Server:
303
+ - MTurk
304
+ body:
305
+ encoding: UTF-8
306
+ base64_string: |
307
+ PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxHZXRISVRSZXNwb25zZT48T3BlcmF0
308
+ aW9uUmVxdWVzdD48UmVxdWVzdElkPjlkZmQ2ODZhLWRhMGMtNGFkOC1hMzQz
309
+ LWY2YjliNGU3Mjg2YTwvU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WNiZjU0YmRkNjgwNDY1MzQ5OWU3ZGY0NWY1LkNNTlhI
342
+ Ri5tcDMmYW1wO2FtcDt0eXBpbmdwb29sX3Byb2plY3RfaWQ9MGM0ZThlY2Jm
343
+ NTRiZGQ2ODA0NjUzNDk5ZTdkZjQ1ZjU8L1JlcXVlc3RlckFubm90YXRpb24+
344
+ PEhJVFJldmlld1N0YXR1cz5Ob3RSZXZpZXdlZDwvSElUUmV2aWV3U3RhdHVz
345
+ PjxOdW1iZXJPZkFzc2lnbm1lbnRzUGVuZGluZz4wPC9OdW1iZXJPZkFzc2ln
346
+ bm1lbnRzUGVuZGluZz48TnVtYmVyT2ZBc3NpZ25tZW50c0F2YWlsYWJsZT4x
347
+ PC9OdW1iZXJPZkFzc2lnbm1lbnRzQXZhaWxhYmxlPjxOdW1iZXJPZkFzc2ln
348
+ bm1lbnRzQ29tcGxldGVkPjA8L051bWJlck9mQXNzaWdubWVudHNDb21wbGV0
349
+ ZWQ+PC9ISVQ+PC9HZXRISVRSZXNwb25zZT4=
350
+ http_version:
351
+ recorded_at: Tue, 26 Nov 2013 19:33:07 GMT
352
+ recorded_with: VCR 2.7.0
@@ -110,7 +110,17 @@ module Typingpool
110
110
  end
111
111
 
112
112
  def call_script(script_name, *args)
113
- Utility.system_quietly(path_to_script(script_name), *args)
113
+ out, err, status = Open3.capture3(path_to_script(script_name), *args)
114
+ if status.success?
115
+ return [out.to_s.chomp, err.to_s.chomp]
116
+ else
117
+ if err
118
+ raise Error::Shell, err.chomp
119
+ else
120
+ raise Error::Shell
121
+ end
122
+ end
123
+ #Utility.system_quietly(path_to_script(script_name), *args)
114
124
  end
115
125
 
116
126
  def path_to_script(script_name)
@@ -125,12 +125,18 @@ module Typingpool
125
125
  end # begin
126
126
  end
127
127
 
128
- #Returns Typingpool's lib/ root, usually for purposes of
129
- #locating templates or test fixtures.
128
+ #Returns Typingpool's lib/typingpool/ root, usually for purposes
129
+ #of locating templates or test fixtures.
130
130
  def lib_dir
131
131
  File.dirname(__FILE__)
132
132
  end
133
133
 
134
+ #Returns Typingpool's root dir, that is, the root dir of the gem
135
+ #from which this library is being loaded.
136
+ def app_dir
137
+ File.dirname(File.dirname(lib_dir))
138
+ end
139
+
134
140
  #Returns true if this Ruby was built on Mac OS X
135
141
  def os_x?
136
142
  RUBY_PLATFORM.match(/\bdarwin/i)
@@ -1,3 +1,3 @@
1
1
  module Typingpool
2
- VERSION = '0.8.8'
2
+ VERSION = '0.8.9'
3
3
  end #Typingpool
@@ -35,8 +35,9 @@ def test_abort_with_invalid_path
35
35
  end
36
36
 
37
37
  def test_usage_message
38
- assert(output = tp_config('--help'))
39
- assert_match(/\bUSAGE:/, output)
38
+ out, err = tp_config('--help')
39
+ assert(out)
40
+ assert_match(/\bUSAGE:/, out)
40
41
  end
41
42
 
42
43
  def test_new_config_creation
@@ -162,4 +162,32 @@ class TestTpAssign < Typingpool::Test::Script
162
162
  end #with_temp_readymade_project do...
163
163
  end
164
164
 
165
+ def test_displays_and_uses_correct_reward_default
166
+ with_temp_readymade_project do |dir|
167
+ project = transcripts_dir_project(dir)
168
+ config = Typingpool::Config.file(config_path(dir))
169
+ config.assign.reward = '0.06'
170
+ write_config(config, File.dirname(config_path(dir)), File.basename(config_path(dir)))
171
+ vcr_names = ['tp_assign_6', 'tp_assign_7']
172
+ copy_tp_assign_fixtures(dir, vcr_names[0])
173
+ config = Typingpool::Config.file(config_path(dir))
174
+ assert_equal('0.06', config.assign.reward.to_s)
175
+ Typingpool::Amazon.setup(:sandbox => true, :config => config)
176
+ with_vcr(vcr_names[1], config, {
177
+ :preserve_exact_body_bytes => true,
178
+ :match_requests_on => [:method, Typingpool::App.vcr_core_host_matcher]
179
+ }) do
180
+ begin
181
+ out, err = tp_assign_with_vcr(dir, vcr_names[0])
182
+ assert_match(/would cost \$((0\.40)||(0\.47))\./, err)
183
+ refute_empty(results = Typingpool::Amazon::HIT.all_for_project(project.local.id))
184
+ assert_equal('0.06', results.first.at_amazon.reward_amount.to_s)
185
+ ensure
186
+ tp_finish(dir) if (Typingpool::Test.record || Typingpool::Test.live)
187
+ end #begin
188
+ end #with_temp_readymade_project do...
189
+ end #with_vcr...
190
+ end
191
+
192
+
165
193
  end #TestTpAssign
data/typingpool.gemspec CHANGED
@@ -25,20 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency('vcr')
26
26
  s.add_development_dependency('webmock', '>= 1.13.0')
27
27
  s.require_path = 'lib'
28
- s.executables = ['tp-config',
29
- 'tp-make',
30
- 'tp-assign',
31
- 'tp-review',
32
- 'tp-collect',
33
- 'tp-finish']
34
- s.test_files = ['test/test_unit_amazon.rb',
35
- 'test/test_unit_config.rb',
36
- 'test/test_unit_filer.rb',
37
- 'test/test_unit_project.rb',
38
- 'test/test_unit_project_local.rb',
39
- 'test/test_unit_project_remote.rb',
40
- 'test/test_unit_template.rb',
41
- 'test/test_unit_transcript.rb']
28
+ s.test_files = `git ls-files -- test/test*`.split("\n")
42
29
  s.bindir = 'bin'
43
30
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
44
31
  s.files = `git ls-files`.split("\n")