turbot-runner 0.0.18 → 0.0.19
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 +8 -8
- data/lib/turbot_runner.rb +18 -18
- data/lib/turbot_runner/version.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTQzNzljYmVkY2U2YWYwNzRhMzZkNzc5OWU5NTVkMTRhMmZhYTFhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NThiODU4Nzc1MWNiOWM1Nzg4MjhjMDljOWM0NGMwZmRiOWU4Yjk4Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Mzk0ZDAxNDc1NGMyZTRiMTdmYzNjMTljNTliOWZjMWJlMDI0MTlkNTg3OGIw
|
10
|
+
MmE0M2FjMTEwODUyZWZhNjdiYTVmN2M4ZDQ0ZTdlM2YyZGExMDI5NTMzZjNh
|
11
|
+
MDA0ODU2YWEyMjMxZmRjNjQ0ZTdkNzI0NDNkYjQ1NjNiYTBkYjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTlkMzVjZDYyNmE1ODFjNGViNzg2Y2U0YTcwMGZkMTVkZjYzNWMyMDg3ZjMx
|
14
|
+
YjNlYzIxM2JjYWIyYTkwMjMzZjQ4ODA5MmUxNzRiOTIyZTgyN2MxMGMwNGNi
|
15
|
+
Y2RjYzEzYWY2ZDExZjNkNDNhOWFjNTk3ZDE5Yzc3YjUwMTcyY2Y=
|
data/lib/turbot_runner.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require 'active_support/core_ext/hash/slice'
|
2
|
-
require 'active_support/core_ext/object/to_query'
|
1
|
+
#require 'active_support/core_ext/hash/slice'
|
2
|
+
#require 'active_support/core_ext/object/to_query'
|
3
3
|
require 'json'
|
4
4
|
require 'open3'
|
5
5
|
require 'set'
|
@@ -28,7 +28,7 @@ module TurbotRunner
|
|
28
28
|
@status = :initialized
|
29
29
|
@interrupted = false
|
30
30
|
@schemas = {}
|
31
|
-
@seen_uids = Set.new
|
31
|
+
# @seen_uids = Set.new
|
32
32
|
end
|
33
33
|
|
34
34
|
def run(opts={})
|
@@ -141,21 +141,21 @@ module TurbotRunner
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
|
-
if messages.empty?
|
145
|
-
identifying_fields = identifying_fields_for_data_type(data_type)
|
146
|
-
identifying_hash = record.slice(*identifying_fields)
|
147
|
-
|
148
|
-
if identifying_hash.empty?
|
149
|
-
messages << "Missing attributes for identifying fields: #{identifying_fields.join(', ')}"
|
150
|
-
else
|
151
|
-
record_uid = Digest::SHA1.hexdigest(identifying_hash.to_query)
|
152
|
-
if @seen_uids.include?(record_uid)
|
153
|
-
messages << "Values for identifying fields must be unique. There has already been a record with: #{identifying_hash.to_json}"
|
154
|
-
else
|
155
|
-
@seen_uids << record_uid
|
156
|
-
end
|
157
|
-
end
|
158
|
-
end
|
144
|
+
# if messages.empty?
|
145
|
+
# identifying_fields = identifying_fields_for_data_type(data_type)
|
146
|
+
# identifying_hash = record.slice(*identifying_fields)
|
147
|
+
#
|
148
|
+
# if identifying_hash.empty?
|
149
|
+
# messages << "Missing attributes for identifying fields: #{identifying_fields.join(', ')}"
|
150
|
+
# else
|
151
|
+
# record_uid = Digest::SHA1.hexdigest(identifying_hash.to_query)
|
152
|
+
# if @seen_uids.include?(record_uid)
|
153
|
+
# messages << "Values for identifying fields must be unique. There has already been a record with: #{identifying_hash.to_json}"
|
154
|
+
# else
|
155
|
+
# @seen_uids << record_uid
|
156
|
+
# end
|
157
|
+
# end
|
158
|
+
# end
|
159
159
|
|
160
160
|
messages
|
161
161
|
end
|
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.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenCorporates
|
@@ -10,20 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 4.1.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 4.1.0
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: json-schema
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|