schema-model 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/schema/csv_parser.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e5bb83843c2fd8c09fc7773719e9c6c91a7008f5ff5ad69b935bee1616c4026
4
- data.tar.gz: 7abce97c2b8ba2dbd5b1f955025a85bf64bfc4589e079531db823b150268c777
3
+ metadata.gz: 46f7554a43ea84d40fc6befa498bfa66bd3362c7673da1c5e9719926c6fecb6b
4
+ data.tar.gz: dbaa36dea474d468145a91996c1b817e3ce7fd23132cf4feeadb0ab80500566d
5
5
  SHA512:
6
- metadata.gz: 8e7ea9b0a73e35c8d1b69a7429d7a923959db7b3a38eb8c78326f5a96415326c4bea926c3c24f0d958bbe56cb7ee8b35b08d37fdc67a9ea563f02ebf308f457b
7
- data.tar.gz: 2e0a2a6217c2594f152a1544d36d0eeb63d13fb9b1d6ee23589d63c70f4fccec5178869dd81bd2f3f0dc42dfb1f02cef0a022c75f2190a1765cf3c85da873f0f
6
+ metadata.gz: bd488a8d9a99d9f33c20c5f1662a85b1a2eb869a9b2703125065fc7b84b9c92911b4d6b604534255c485a19926aab42aa4da3153a03de97c4b3aeceed655e922
7
+ data.tar.gz: 5cb585cae9631cae66e3f390b4e1d34e41e405c6d8481c814f032d53203b9437048bdc78946c7164ac55531e06d4231e7d638ca814642471e2d18096f9138fc2
@@ -8,7 +8,7 @@ module Schema
8
8
  def initialize(csv, schema_class, headers = nil)
9
9
  @csv = csv
10
10
  @schema_class = schema_class
11
- @headers = headers || csv.shift
11
+ @headers = (headers || csv.shift).map(&:strip)
12
12
  @mapped_headers = schema_class.map_headers_to_attributes(@headers)
13
13
  end
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch