tolq-parsers-csv 0.1.0 → 0.1.1

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: 487d00987a3d21027fadde4505900e305d836717
4
- data.tar.gz: d179434db67dc69043dfe825b8aa8d49521690b5
3
+ metadata.gz: 398f33db78392da4efe8d163a03fafd6d1f00acb
4
+ data.tar.gz: 20d7c6a9fe73f1e763f69f602976fb28cacf01b2
5
5
  SHA512:
6
- metadata.gz: 129c598577b6d9191c762cb0d46579d2e09741e40fa4fd516e6276800ccbb4279fadb48e8b5a6c872ae27010ce7177fa3e35ebb8c166853a8049f9ad6328bbc3
7
- data.tar.gz: 14985a6a1376a6f509b7ddd62f93f9002c75647c7163e6a9d54ece49aa618d319e174e8cc3918291af198091566ec99f2abc03ee58e83ab70f1891ad69b52830
6
+ metadata.gz: 20689cfe169db3d5df8c3f6aa14c836baa5555c5ef502f5424b9417a814ddfab63c12348d60bbb370eafffa5cadc34e284ffd5fe3d66b7be5c8a609ca5d6d749
7
+ data.tar.gz: 805009613d66eaea3569656d6f29c13fd789d55c4ebe5c0bba3696307744c47e115c1ce0b20581235401e7eb3b736c1d7e09ad9bdb87263aa631e1328b04a981
data/lib/csv/parser.rb CHANGED
@@ -37,7 +37,7 @@ module Tolq::Parsers::CSV
37
37
  rdata = {}
38
38
  CSV.new(csv_text, parse_opts).each.with_index do |row, rowidx|
39
39
  row.each.with_index do |col, colidx|
40
- rdata["#{rowidx}:#{colidx}"] = { "text" => col }
40
+ rdata["#{rowidx}:#{colidx}"] = { "text" => col } if col && col.length > 0
41
41
  end
42
42
  end
43
43
 
data/lib/csv/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Tolq
2
2
  module Parsers
3
3
  module CSV
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tolq-parsers-csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timon Vonk