turbot-runner 0.0.13 → 0.0.14
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.
- data/lib/turbot_runner/version.rb +1 -1
- data/lib/turbot_runner.rb +7 -2
- metadata +1 -1
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
|
-
|
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
|