turbot-runner 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGMxNGNmYmMwNGQ4ZDQ2MDkzOGQ4NmQ3NTI5NzFjY2U4ZWQ4Y2ZlNQ==
4
+ YTQzNzljYmVkY2U2YWYwNzRhMzZkNzc5OWU5NTVkMTRhMmZhYTFhMQ==
5
5
  data.tar.gz: !binary |-
6
- MjJkOTI5NmU3MjViYWFhZjlhZjJlMmZmNzIzZGI2Mzc5YTA2NWZmNw==
6
+ NThiODU4Nzc1MWNiOWM1Nzg4MjhjMDljOWM0NGMwZmRiOWU4Yjk4Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDNmZDcwMGVmMDk4ZjM2ZDM0OWQ5ODgxYzJlNjRkMTIxNTk5NDZlMDc4ZGFh
10
- OGUwNGIwOWMwOGY3ODNjYmE4ODE2NGYzMjJlM2M0NmU4MDE1YmEyZTE5NDU2
11
- MWM1M2FkN2Y0MmRiODgyNzMwYzBkMjczYzEwYjJmOWIxMjIyNDU=
9
+ Mzk0ZDAxNDc1NGMyZTRiMTdmYzNjMTljNTliOWZjMWJlMDI0MTlkNTg3OGIw
10
+ MmE0M2FjMTEwODUyZWZhNjdiYTVmN2M4ZDQ0ZTdlM2YyZGExMDI5NTMzZjNh
11
+ MDA0ODU2YWEyMjMxZmRjNjQ0ZTdkNzI0NDNkYjQ1NjNiYTBkYjQ=
12
12
  data.tar.gz: !binary |-
13
- NmQzMDIwNTI3YWU2M2NhMjJiN2NlYThiMWVlNTkyM2E1MWE0MGM3MTlmZDVk
14
- ZDFjNDcwZTI3ZDllOTJjYWRmNjc0OTg2OWFkZmZjM2RjYjhhM2Y0ZDMzYzMw
15
- M2U2MmU4Yzg1YzgwMWRmN2QxZjgyNjZmNWE4MmFmMTNlMDBhYWQ=
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
@@ -1,3 +1,3 @@
1
1
  module TurbotRunner
2
- VERSION = '0.0.18'
2
+ VERSION = '0.0.19'
3
3
  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.18
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