turbot-runner 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module TurbotRunner
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
data/lib/turbot_runner.rb CHANGED
@@ -86,7 +86,6 @@ module TurbotRunner
86
86
  handle_invalid_record(record, data_type, errors)
87
87
  end
88
88
  end
89
-
90
89
  if @interrupted
91
90
  @status = :interrupted
92
91
  handle_interrupted_run
@@ -137,7 +136,13 @@ module TurbotRunner
137
136
 
138
137
  if messages.empty?
139
138
  identifying_fields = identifying_fields_for_data_type(data_type)
140
- if record.slice(*identifying_fields).empty?
139
+
140
+ hash = Hash.new
141
+ identifying_fields.each do |k|
142
+ hash[k] = record[k] if record.has_key?(k)
143
+ end
144
+
145
+ if hash.empty?
141
146
  messages << "Missing attributes for identifying fields: #{identifying_fields.join(', ')}"
142
147
  end
143
148
  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.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: