tolq-parsers-csv 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/csv/unparser.rb +5 -1
- data/lib/csv/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: adf800e42e5f26bdf2f163aa5748c2d442946c83
|
4
|
+
data.tar.gz: 413aba3f970760c04a4bba9da409f3cd5b051ccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dafd5a12af86b79eee2c4d3217c79d79c88804512064b3d8b3b5630c4e6a308af95607302adf50bb3b3044cad909e3b96872f20e96e478aa4689f121c6f84635
|
7
|
+
data.tar.gz: 84dce900f344234131a12cf03c2e2b7292b00311694dc01ba32d46cc6802f6530be01d0d22cbee808fbd7d34f02f8deefe18999c14aa0384890e675c0069164f
|
data/lib/csv/unparser.rb
CHANGED
@@ -25,7 +25,11 @@ module Tolq::Parsers::CSV
|
|
25
25
|
def generate_csv(translations)
|
26
26
|
CSV.generate(force_quotes: true) do |csv|
|
27
27
|
build_translation_matrix(translations).each do |row|
|
28
|
-
|
28
|
+
if row.nil? # skipped empty rows
|
29
|
+
csv << [].fill(nil, 0..@maxcol)
|
30
|
+
else
|
31
|
+
csv << row.fill(nil, row.length..@maxcol)
|
32
|
+
end
|
29
33
|
end
|
30
34
|
end
|
31
35
|
end
|
data/lib/csv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tolq-parsers-csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timon Vonk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|