data_list_converter 0.4.1 → 0.4.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ae357714514bf8851c5d2a0976364842a2a63ef3aa1a0b42a0b0a46d5072aab5
|
4
|
+
data.tar.gz: 016ef3170b9b6919e6d8dbc6a1584157b95d130c4278265dcc5d337bddf3ed65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0f2ef770d00647dfd43595b814eecf5026c2f7d33a1ac3784bbfe14419e233e1e4d866b59c44228a5c60e2e452de5e1aced21993fd207ad23ed2a3807bdfd5c
|
7
|
+
data.tar.gz: 60e7578914900c8f2fda9eccee66293b4087d83db181231bc51381d478a2bf6951c88ce5dba8d5dd3fac456768416122366a9ad26220ad77805adf2cb992362e
|
data/changelog.md
CHANGED
@@ -19,6 +19,7 @@ class DataListConverter
|
|
19
19
|
sheet = book.create_worksheet(name: (options[:sheet] || "Sheet1"))
|
20
20
|
i = 0
|
21
21
|
proc.call do |row|
|
22
|
+
row = row.map(&:to_s)
|
22
23
|
sheet.row(i).push *row
|
23
24
|
i += 1
|
24
25
|
end
|
@@ -33,6 +34,7 @@ class DataListConverter
|
|
33
34
|
sheet = book.create_worksheet(name: name.to_s)
|
34
35
|
i = 0
|
35
36
|
table_iterator.call do |row|
|
37
|
+
row = row.map(&:to_s)
|
36
38
|
sheet.row(i).concat(row)
|
37
39
|
i += 1
|
38
40
|
end
|
@@ -23,7 +23,7 @@ class DataListConverter
|
|
23
23
|
i = 0
|
24
24
|
proc.call do |row|
|
25
25
|
row.each_with_index do |v, j|
|
26
|
-
sheet.add_cell(i, j, v)
|
26
|
+
sheet.add_cell(i, j, v.to_s)
|
27
27
|
end
|
28
28
|
i += 1
|
29
29
|
end
|
@@ -42,14 +42,14 @@ class DataListConverter
|
|
42
42
|
row.each_with_index do |v, j|
|
43
43
|
if v.kind_of?(Hash)
|
44
44
|
# custom cell format
|
45
|
-
cell = sheet.add_cell(i, j, v[:text])
|
45
|
+
cell = sheet.add_cell(i, j, v[:text].to_s)
|
46
46
|
v.each do |k, v|
|
47
47
|
next if k == :text
|
48
48
|
cell.send(k, v)
|
49
49
|
end
|
50
50
|
cell.change_fill(v[:fill_color]) if v[:fill_color]
|
51
51
|
else
|
52
|
-
cell = sheet.add_cell(i, j, v)
|
52
|
+
cell = sheet.add_cell(i, j, v.to_s)
|
53
53
|
end
|
54
54
|
|
55
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_list_converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- linjunhalida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -161,13 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
164
|
+
rubygems_version: 2.7.3
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: convert data between different formats
|
168
|
-
test_files:
|
169
|
-
- test/base_test.rb
|
170
|
-
- test/filters_test.rb
|
171
|
-
- test/helper_test.rb
|
172
|
-
- test/testdata.rb
|
173
|
-
- test/types_test.rb
|
168
|
+
test_files: []
|