see_as_vee 0.5.1 → 0.5.2

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
  SHA1:
3
- metadata.gz: 5103ec586ff4c0a7416764d563dfaecea3d52c22
4
- data.tar.gz: 9313bbd50e3cf2aacf3949be68af21624eebcc3c
3
+ metadata.gz: a421428ed4edbdcadc970f3819e9af6d20fe52a5
4
+ data.tar.gz: 81db3b74f2f4401c2728c14e9a956140d1e393a3
5
5
  SHA512:
6
- metadata.gz: 58e8894f237cb6b25e08a8c7e2a51f1ad11a423bfa36d939edc180b819126f86c449b646e1370fefeecf047c4773c5e162a8361683199efa89bcf3388aacb954
7
- data.tar.gz: 573e25fc183ad9d3e48e553f2d769c584c986bf6dda632cfa3ac79fe08dd9b93222d754dfe6094ccfba1ff86b2e2601974a1f6595b0c0b01fd420ec71a97a9af
6
+ metadata.gz: c1cff8def1abdb631c05da9058fcf54f446767cb1c3e3caae693e00a98787152974e4c3a18f6cfc5cdc743e3ed0a5d4f328a3da0f0d2c9026ab8416c0d999499
7
+ data.tar.gz: 5fbbe4cff3b8578fbf850015d97a3b419b003b446df651f1037e8280d41eb2327c6ec240688c4dcd07dd6f8f3a197f3e2e60cbb4a2d062201dd39bf6ce539ae3
data/README.md CHANGED
@@ -126,6 +126,8 @@ From the version `0.4.5` we support expanding the column produced by `GROUP_CONC
126
126
 
127
127
  ## Changelog
128
128
 
129
+ ### `0.5.2` accept empty headers
130
+
129
131
  ### `0.5.1` _`skip_blank_rows`_
130
132
 
131
133
  ### `0.5.0` supporting all versions of `dry-validation`
@@ -31,7 +31,7 @@ module SeeAsVee
31
31
  end
32
32
 
33
33
  def headers symbolic = false
34
- symbolic ? @rows.first.map { |s| str_to_sym s } : @rows.first
34
+ symbolic ? @rows.first.map.with_index { |s, ind| str_to_sym(s || "col #{ind}") } : @rows.first
35
35
  end
36
36
 
37
37
  def [] index, key = nil
@@ -1,3 +1,3 @@
1
1
  module SeeAsVee
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: see_as_vee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksei Matiushkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-29 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_xlsx_reader