rubyxls 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubyxls/version.rb +1 -1
- data/lib/rubyxls/workbook.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74916c956a8fc971279c119395acfffae0111737
|
4
|
+
data.tar.gz: 9476493c61794596c2b1f96ca7d89c0a7aa8c4c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf9cf1b1f9cc904bcb19b38710d87414407071f2d61a45bf1ce17e43fd58b4ab5cec5f7a1ac88448daf7c4618b00d4f540ac2fdaaaa0d0a44c658ddf45bd9f85
|
7
|
+
data.tar.gz: 2d37e34a2ee09cd255fc244faf8c3b71790f0350cfc79d272db901aa0ce52846cbbdd8806c868b437c0d6d63ea63c9a069e2d6adaa8eff2d4c61f922f9cc0128
|
data/lib/rubyxls/version.rb
CHANGED
data/lib/rubyxls/workbook.rb
CHANGED
@@ -54,17 +54,19 @@ module Rubyxls
|
|
54
54
|
rows.each do |row|
|
55
55
|
values = []
|
56
56
|
widths = []
|
57
|
+
types = []
|
57
58
|
styles = []
|
58
59
|
height = nil
|
59
60
|
row.each do |cell|
|
60
61
|
values << cell[:value]
|
61
62
|
widths << cell[:width]
|
63
|
+
types << cell[:type]
|
62
64
|
styles << retrieve_style_code(cell[:style])
|
63
65
|
height = cell[:height] if cell[:height]
|
64
66
|
merge_cell(cell) if cell[:merge]
|
65
67
|
@data_validations["#{cell[:column]}#{cell[:row]}"] = cell[:data_validation] if cell[:data_validation]
|
66
68
|
end
|
67
|
-
@sheet.add_row(values, { style: styles, widths: widths, height: height })
|
69
|
+
@sheet.add_row(values, { types: types, style: styles, widths: widths, height: height })
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyxls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Frankel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.6.13
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: A simple DSL for generating XLS files in plain-old ruby.
|