turbot-runner 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/turbot_runner/base_handler.rb +0 -1
- data/lib/turbot_runner/exceptions.rb +3 -0
- data/lib/turbot_runner/processor.rb +5 -2
- data/lib/turbot_runner/version.rb +1 -1
- data/lib/turbot_runner.rb +1 -0
- data/spec/lib/runner_spec.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDY4Njc3YjMyMzJlOGMxYzc0YTdkOTI3MDU0MTdmMGQyOGY2NTkzMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDc3NzFkMGZmOTU1MjUyYmU4MWExZTI3ZWI5MTExNmJmMDQ4MjYxZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTMwY2ExOTNjZTRlNmU2NTExNDY1MjlhYzQ3YjYyZThkYWY2ODNlODQ5OGYw
|
10
|
+
NWQ0NTI0NDcxNGQwMjFhM2MyMDlkYmE0NzRmODhjMTIzZjZkZDVhOGI3ZmE5
|
11
|
+
NmFmNjRhYjQ4MmFjMTY5MWIwZDdhZjFlYjEwYTJlZGUyNmEzYmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmZkYzkxMGRlN2NhZTQ4YWE4ZDFiODZjNTliNzRiMGQ0NDUwYzc5ZTRlNTNm
|
14
|
+
MzVlYjE1MjEyOTQ3YTY3ODJmNmJjOTk0OWEzNzU1MzYwM2Q5OTdkN2RhZjA4
|
15
|
+
NjJjMTAxOTFlZjgyMTdjZTRlMWMzYmM3NDYwNzU3MWJlZDFiM2I=
|
@@ -15,8 +15,11 @@ module TurbotRunner
|
|
15
15
|
errors = validate(record)
|
16
16
|
|
17
17
|
if errors.empty?
|
18
|
-
|
19
|
-
|
18
|
+
begin
|
19
|
+
@record_handler.handle_valid_record(record, @data_type)
|
20
|
+
rescue InterruptRun
|
21
|
+
@runner.interrupt
|
22
|
+
end
|
20
23
|
else
|
21
24
|
@record_handler.handle_invalid_record(record, @data_type, errors)
|
22
25
|
@runner.interrupt_and_mark_as_failed
|
data/lib/turbot_runner.rb
CHANGED
data/spec/lib/runner_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbot-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenCorporates
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- bin/rspec
|
34
34
|
- lib/turbot_runner.rb
|
35
35
|
- lib/turbot_runner/base_handler.rb
|
36
|
+
- lib/turbot_runner/exceptions.rb
|
36
37
|
- lib/turbot_runner/prerun.rb
|
37
38
|
- lib/turbot_runner/processor.rb
|
38
39
|
- lib/turbot_runner/runner.rb
|