honey_format 0.21.1 → 0.22.0
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/CHANGELOG.md +4 -0
- data/lib/honey_format/matrix/matrix.rb +8 -1
- data/lib/honey_format/version.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad367da18e5936281cd7b07a99de44bbc93313855a9385a0bda46db97bda97dc
|
|
4
|
+
data.tar.gz: 04f157b49ff97adc9368766e14694a9fbda96eca0b06950857c0e00c09c59f3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53ecde3518fade3c5c4610fe1d5b0d806d96a07408fe5eb73eba7ecec37d8c5ce31c86c0f1ded38b6d7bee05b2027073f167fc0cc29abb7a8b71132734320cd5
|
|
7
|
+
data.tar.gz: 57debe9b620dc990220926a4944172e939dcf7f40dc087016e5c401e967ed7094f818d607fd72e33a592464456358fd519565bdd01ff62f2a3aaedec9f9f3534
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# HEAD
|
|
2
2
|
|
|
3
|
+
## v0.22.0
|
|
4
|
+
|
|
5
|
+
* Add `Matrix#type_map` and ignore non-existing column in the type map. [PR#64](https://github.com/buren/honey_format/pull/64). Thank you [@prem-prakash](https://github.com/prem-prakash).
|
|
6
|
+
|
|
3
7
|
## v0.21.1
|
|
4
8
|
|
|
5
9
|
* Closes [issue #58](https://github.com/buren/honey_format/issues/58). [PR #62](https://github.com/buren/honey_format/pull/62)
|
|
@@ -51,7 +51,8 @@ module HoneyFormat
|
|
|
51
51
|
converter: header_converter,
|
|
52
52
|
deduplicator: header_deduplicator
|
|
53
53
|
)
|
|
54
|
-
@
|
|
54
|
+
@type_map = type_map.select { |key, _v| @header.columns.include?(key) }.to_h
|
|
55
|
+
@rows = Rows.new(matrix, columns, builder: row_builder, type_map: @type_map)
|
|
55
56
|
end
|
|
56
57
|
|
|
57
58
|
# Original matrix header
|
|
@@ -66,6 +67,12 @@ module HoneyFormat
|
|
|
66
67
|
@header.to_a
|
|
67
68
|
end
|
|
68
69
|
|
|
70
|
+
# Matrix type map used
|
|
71
|
+
# @return [Hash<Symbol, Symbol>] the type map used.
|
|
72
|
+
def type_map
|
|
73
|
+
@type_map
|
|
74
|
+
end
|
|
75
|
+
|
|
69
76
|
# Return rows
|
|
70
77
|
# @return [Rows] rows.
|
|
71
78
|
def rows
|
data/lib/honey_format/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: honey_format
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jacob Burenstam
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: benchmark-ips
|
|
@@ -153,7 +153,7 @@ homepage: https://github.com/buren/honey_format
|
|
|
153
153
|
licenses:
|
|
154
154
|
- MIT
|
|
155
155
|
metadata: {}
|
|
156
|
-
post_install_message:
|
|
156
|
+
post_install_message:
|
|
157
157
|
rdoc_options: []
|
|
158
158
|
require_paths:
|
|
159
159
|
- lib
|
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
169
|
version: '0'
|
|
170
170
|
requirements: []
|
|
171
171
|
rubygems_version: 3.0.3
|
|
172
|
-
signing_key:
|
|
172
|
+
signing_key:
|
|
173
173
|
specification_version: 4
|
|
174
174
|
summary: Makes working with CSVs as smooth as honey.
|
|
175
175
|
test_files: []
|