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 +4 -4
- data/lib/tallty_import_export/import.rb +3 -3
- data/lib/tallty_import_export/version.rb +1 -1
- data/tallty_import_export-1.0.5.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20ec051b84c0c965ad0ca1277f1e3b485e9cf026fd261a5638a98f43089e89bb
|
4
|
+
data.tar.gz: d79f1efedffeff6d933411c761547597d3c6fa2dc3f685c58e6a6fb311db5ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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:
|