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
@@ -103,7 +103,7 @@ class TestProjectRemote < Typingpool::Test
|
|
103
103
|
def standard_put_remove_tests(remote)
|
104
104
|
basenames = ['amazon-question-html.html', 'amazon-question-url.txt']
|
105
105
|
local_files = basenames.map{|basename| File.join(fixtures_dir, basename) }
|
106
|
-
local_files.each{|path| assert(File.
|
106
|
+
local_files.each{|path| assert(File.exist? path) }
|
107
107
|
strings = local_files.map{|path| File.read(path) }
|
108
108
|
strings.each{|string| refute_empty(string) }
|
109
109
|
|
data/test/test_unit_test.rb
CHANGED
@@ -34,7 +34,7 @@ class TestTest < Typingpool::Test::Script
|
|
34
34
|
def assert_is_proper_tp_dir(dir)
|
35
35
|
assert(project = transcripts_dir_project(dir))
|
36
36
|
assert(project.local)
|
37
|
-
assert(File.
|
37
|
+
assert(File.exist? project.local)
|
38
38
|
assert(File.directory? project.local)
|
39
39
|
assert_equal(3, project.local.subdir('audio', 'originals').files.count)
|
40
40
|
assert_equal(6, project.local.subdir('audio', 'chunks').files.count)
|
@@ -42,7 +42,7 @@ class TestTest < Typingpool::Test::Script
|
|
42
42
|
|
43
43
|
def assert_has_proper_assignment_csv(dir)
|
44
44
|
assert(project = transcripts_dir_project(dir))
|
45
|
-
assert(File.
|
45
|
+
assert(File.exist? project.local.file('data', 'assignment.csv').path)
|
46
46
|
assert(assignments = project.local.file('data', 'assignment.csv').as(:csv).read)
|
47
47
|
assert_equal(project.local.subdir('audio', 'chunks').files.count, assignments.count)
|
48
48
|
assert_equal(assignments.count, assignments.select{|a| a['audio_url']}.count)
|
data/typingpool.gemspec
CHANGED
@@ -13,17 +13,18 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.authors = ['Ryan Tate']
|
14
14
|
s.email = 'ryantate@ryantate.com'
|
15
15
|
s.homepage = 'http://github.com/ryantate/typingpool'
|
16
|
-
s.required_ruby_version = '>=
|
16
|
+
s.required_ruby_version = '>= 2.0'
|
17
17
|
s.requirements = ['ffmpeg', 'mp3splt', 'mp3wrap']
|
18
18
|
s.add_runtime_dependency('rturk', '~> 2.11.0')
|
19
19
|
s.add_runtime_dependency('highline', '>= 1.6')
|
20
20
|
s.add_runtime_dependency('nokogiri', '>= 1.5')
|
21
21
|
s.add_runtime_dependency('aws-sdk', '~> 1.8.0')
|
22
22
|
s.add_runtime_dependency('net-sftp', '>= 2.0.5')
|
23
|
-
s.add_development_dependency('minitest'
|
23
|
+
s.add_development_dependency('minitest')
|
24
24
|
s.add_development_dependency('timecop')
|
25
25
|
s.add_development_dependency('vcr')
|
26
26
|
s.add_development_dependency('webmock', '>= 1.13.0')
|
27
|
+
s.add_development_dependency('rake', '>= 10.1.0')
|
27
28
|
s.require_path = 'lib'
|
28
29
|
s.test_files = `git ls-files -- test/test*`.split("\n")
|
29
30
|
s.bindir = 'bin'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typingpool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rturk
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: timecop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.13.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 10.1.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 10.1.0
|
139
153
|
description: An app for transcribing audio using Mechanical Turk
|
140
154
|
email: ryantate@ryantate.com
|
141
155
|
executables:
|
@@ -148,6 +162,7 @@ executables:
|
|
148
162
|
extensions: []
|
149
163
|
extra_rdoc_files: []
|
150
164
|
files:
|
165
|
+
- ".gitignore"
|
151
166
|
- LICENSE
|
152
167
|
- README.markdown
|
153
168
|
- Rakefile
|
@@ -280,6 +295,7 @@ files:
|
|
280
295
|
- lib/typingpool/test/fixtures/vcr/tp_finish_5.yml
|
281
296
|
- lib/typingpool/test/fixtures/vcr/tp_finish_6.yml
|
282
297
|
- lib/typingpool/test/fixtures/vcr/tp_finish_7.yml
|
298
|
+
- lib/typingpool/test/fixtures/vcr/tp_finish_8.yml
|
283
299
|
- lib/typingpool/test/fixtures/vcr/tp_make_1.yml
|
284
300
|
- lib/typingpool/test/fixtures/vcr/tp_make_2.yml
|
285
301
|
- lib/typingpool/test/script.rb
|
@@ -324,7 +340,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
324
340
|
requirements:
|
325
341
|
- - ">="
|
326
342
|
- !ruby/object:Gem::Version
|
327
|
-
version:
|
343
|
+
version: '2.0'
|
328
344
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
345
|
requirements:
|
330
346
|
- - ">="
|
@@ -335,7 +351,7 @@ requirements:
|
|
335
351
|
- mp3splt
|
336
352
|
- mp3wrap
|
337
353
|
rubyforge_project:
|
338
|
-
rubygems_version: 2.
|
354
|
+
rubygems_version: 2.5.2
|
339
355
|
signing_key:
|
340
356
|
specification_version: 4
|
341
357
|
summary: An app for transcribing audio using Mechanical Turk
|