turbot-runner 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +6 -3
- data/lib/turbot_runner/runner.rb +2 -0
- data/lib/turbot_runner/version.rb +1 -1
- data/spec/lib/runner_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbb3526ea7ac8f3c271e856db5f43dc43fcb74b5
|
4
|
+
data.tar.gz: f71bec0454597ed7623392d82221f7dae5540087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fbac87bc3aa0b646d8044f329810a80cbda6e939823fc107d106fcb640310cc4006becf0f9cec5938878f6e56adbbdec3f8f9898a07baab8146ef309b20d270
|
7
|
+
data.tar.gz: 1d1fa48240594c9c273ab3e83fc844b0953ac519d55a3251afe2573cf551548c4245144e844350d39d895e9f2a224227711ce6f8c3d67f664eaca3f3800dd810
|
data/.travis.yml
CHANGED
data/lib/turbot_runner/runner.rb
CHANGED
@@ -116,6 +116,8 @@ module TurbotRunner
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def process_script_output(script_config, opts)
|
119
|
+
return if opts[:skip_data_types] && opts[:skip_data_types].include?(script_config[:data_type])
|
120
|
+
|
119
121
|
# The first argument to the Processor constructor is a nil
|
120
122
|
# Runner. This is because no running behaviour
|
121
123
|
# (e.g. interruptions etc) is required; we just want to do
|
data/spec/lib/runner_spec.rb
CHANGED
@@ -348,6 +348,20 @@ describe TurbotRunner::Runner do
|
|
348
348
|
|
349
349
|
runner.process_output
|
350
350
|
end
|
351
|
+
|
352
|
+
context 'when skip_data_types is set' do
|
353
|
+
it 'skips the data type' do
|
354
|
+
test_runner('bot-with-transformer').run
|
355
|
+
|
356
|
+
runner = test_runner('bot-with-transformer',
|
357
|
+
:record_handler => @handler
|
358
|
+
)
|
359
|
+
|
360
|
+
runner.process_output(skip_data_types: ['primary data'])
|
361
|
+
expect(@handler.records_seen['primary data']).to eq(0)
|
362
|
+
expect(@handler.records_seen['simple-licence']).to eq(10)
|
363
|
+
end
|
364
|
+
end
|
351
365
|
end
|
352
366
|
|
353
367
|
describe '#set_up_output_directory' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenCorporates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|