tallty_import_export 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01a93e8f64b1aac7a0795ef697fe6fe27f084edc4570805e0bc8000750f3c611
4
- data.tar.gz: 7ee6334bd719ec319f25f64a07c38d88a9073926de5c379cf75483655195aa8a
3
+ metadata.gz: 20ec051b84c0c965ad0ca1277f1e3b485e9cf026fd261a5638a98f43089e89bb
4
+ data.tar.gz: d79f1efedffeff6d933411c761547597d3c6fa2dc3f685c58e6a6fb311db5ab9
5
5
  SHA512:
6
- metadata.gz: b70babba1dcec1b39c0ec311f44b51bf5a41268fc301f365099b960d292e4b6812cf6917acee757c24744db671e66494ced0f2eea457c5f8e8d7e934deff0b60
7
- data.tar.gz: 6ecac3c336068b4331e9fb3525c902f38f70bd0f0a1bfd73209ced1b357a1ad076a660349cdacf51492e5be07e909df77996a2e78435afec0751cee82ad8068c
6
+ metadata.gz: 16bac50a5b23ca990021797d567086213b822d639940d9061cf31d1c14fa2023357642ec901b30813a3da83544f0f5c3f0e467ccc2845a3b8a20091b29f74bb7
7
+ data.tar.gz: 0c9640845a79b9bc44a3566ade9710b56bb633de42550528c0c36c0b4dc0c7b630e1d0624471c24fd64830f94519e8136ec3fc66aba0248da45883494a7956c2
@@ -52,9 +52,9 @@ module TalltyImportExport
52
52
  def process_options options
53
53
  options = options.with_indifferent_access
54
54
  self.headers = options.delete(:headers) || []
55
- @primary_keys = options.delete(:primary_keys) || headers.map { |header| header[:primary_key] ? header[:key].to_sym : nil }.compact
55
+ @primary_keys = options.delete(:primary_keys) || @headers.map { |header| header[:primary_key] ? header[:key].to_sym : nil }.compact
56
56
 
57
- @excel_hash = headers.reduce({}) do |h, header|
57
+ @excel_hash = @headers.reduce({}) do |h, header|
58
58
  h[header[:key].to_sym] = header[:name]
59
59
  h
60
60
  end
@@ -75,7 +75,7 @@ module TalltyImportExport
75
75
 
76
76
  def convert_data line_info
77
77
  line_info.with_indifferent_access.reduce({}) do |h, (k, v)|
78
- header = headers.find do |_header|
78
+ header = @headers.find do |_header|
79
79
  _header[:key].to_sym == k.to_sym
80
80
  end
81
81
  # header[:convert] = handle_xxx
@@ -1,3 +1,3 @@
1
1
  module TalltyImportExport
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tallty_import_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - liyijie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-25 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zip-zip
@@ -150,6 +150,7 @@ files:
150
150
  - lib/tallty_import_export/importable.rb
151
151
  - lib/tallty_import_export/version.rb
152
152
  - tallty_import_export-1.0.3.gem
153
+ - tallty_import_export-1.0.5.gem
153
154
  - tallty_import_export.gemspec
154
155
  homepage: https://git.tallty.com/open-source/tallty_import_export
155
156
  licenses: