csv_row_model 0.3.7 → 0.3.8
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.
- checksums.yaml +4 -4
- data/lib/csv_row_model/import/dynamic_columns.rb +5 -1
- data/lib/csv_row_model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 717ba76ef7739dd61cd99c8ca6435aff9ac25590
|
|
4
|
+
data.tar.gz: b61b13397dd392f44fb6d0d947363ca6585e9824
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48f90affe4e98fa779fb9b642d28e3000f4c0930904f51c6f6d00bf2c481336703d8539430983f30f651deda3880cb9c32388f77cb906d029b6ceb136db94f7c
|
|
7
|
+
data.tar.gz: 12a31e34c42832dc5a61c3e39c2b2c97412695dec848b08eceeb0fd32935837ad0b923c1e7adb7a6187d74494ba3da7a3414a6f98a0014a02230c98b31199459
|
|
@@ -9,7 +9,7 @@ module CsvRowModel
|
|
|
9
9
|
|
|
10
10
|
# @return [Array] dynamic_column headers
|
|
11
11
|
def dynamic_source_headers
|
|
12
|
-
|
|
12
|
+
self.class.dynamic_source_headers source_header
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
# @return [Array] dynamic_column row data
|
|
@@ -51,6 +51,10 @@ module CsvRowModel
|
|
|
51
51
|
def format_dynamic_column_cells(cells, column_name)
|
|
52
52
|
cells
|
|
53
53
|
end
|
|
54
|
+
# @return [Array] dynamic_column headers
|
|
55
|
+
def dynamic_source_headers(source_header)
|
|
56
|
+
source_header[columns.size..-1]
|
|
57
|
+
end
|
|
54
58
|
|
|
55
59
|
protected
|
|
56
60
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: csv_row_model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steve Chung
|
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
115
|
version: '0'
|
|
116
116
|
requirements: []
|
|
117
117
|
rubyforge_project:
|
|
118
|
-
rubygems_version: 2.4.
|
|
118
|
+
rubygems_version: 2.4.5
|
|
119
119
|
signing_key:
|
|
120
120
|
specification_version: 4
|
|
121
121
|
summary: Import and export your custom CSVs with a intuitive shared Ruby interface.
|