go_import 3.0.14 → 3.0.15

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.
@@ -87,7 +87,7 @@ def convert_source
87
87
  end
88
88
 
89
89
  process_rows PROJECT_DOCUMENT_FILE do |row|
90
- rootmodel.add_file(to_deal_document(row, includes, rootmodel))
90
+ rootmodel.add_file(to_deal_document(row, rootmodel))
91
91
  end
92
92
  end
93
93
 
@@ -188,7 +188,7 @@ def to_organization_document(row, rootmodel)
188
188
  return file
189
189
  end
190
190
 
191
- def to_deal_document(row, includes, rootmodel)
191
+ def to_deal_document(row, rootmodel)
192
192
  file = GoImport::File.new()
193
193
 
194
194
  file.integration_id = "d-#{row['idDocument']}"
@@ -200,8 +200,7 @@ def to_deal_document(row, includes, rootmodel)
200
200
  file.created_by = rootmodel.import_coworker
201
201
  end
202
202
 
203
- deal_id = includes[row['idProject']]
204
- deal = rootmodel.find_deal_by_integration_id(deal_id)
203
+ deal = rootmodel.find_deal_by_integration_id(row['idProject'])
205
204
  if deal.nil?
206
205
  return nil
207
206
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_import
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.14
4
+ version: 3.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-10-20 00:00:00.000000000 Z
15
+ date: 2014-10-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: iso_country_codes