spreadbase 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spreadbase/codecs/open_document_12_modules/decoding.rb +3 -3
- data/lib/spreadbase/version.rb +1 -1
- data/spec/elements/document_spec.rb +10 -10
- data/spec/fixtures/test.ods +0 -0
- data/spreadbase.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d899f8ffe05c782dc672c110852da92362b7fc11edea36a8ac799f7705f12c3e
|
4
|
+
data.tar.gz: 2391cee88e8d42e05114060697fc4fffa1ecf5e6f3f8007f3ffdf737550b6078
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241baf6fd8d2a897af736069b8d08adfd7a5d0124c8bd60c3922fe62f3a89954373095af27bf447b174320a56403d8eaa701f75f39814208bbc14e7b03f84663
|
7
|
+
data.tar.gz: 5efc6f8bfcc354cb61ec78becb06c62fc32f59bfb08b360d719474297bcf730872625c3d462c122a00aba7f53aeb7091992e8d73449feaf98cae9f013da7c24f
|
@@ -124,9 +124,9 @@ module SpreadBase # :nodoc:
|
|
124
124
|
|
125
125
|
case value_type
|
126
126
|
when 'string'
|
127
|
-
|
128
|
-
|
129
|
-
|
127
|
+
cell_node
|
128
|
+
.elements.collect('text:p', &:text)
|
129
|
+
.join("\n")
|
130
130
|
when 'date'
|
131
131
|
date_string = cell_node.attributes['office:date-value']
|
132
132
|
|
data/lib/spreadbase/version.rb
CHANGED
@@ -115,20 +115,20 @@ abc:
|
|
115
115
|
|
116
116
|
expect(document.tables[0].name).to eq('Sheet1')
|
117
117
|
expect(document.tables[0].data).to match([
|
118
|
-
match(['hoge'
|
119
|
-
match([nil , 'fuga'
|
120
|
-
match([nil , nil , 'piyo'
|
121
|
-
match([nil , nil , nil , 'hogera'
|
122
|
-
match([nil , nil , nil , nil ,
|
118
|
+
match(['hoge' ]),
|
119
|
+
match([nil , 'fuga' ]),
|
120
|
+
match([nil , nil , 'piyo' ]),
|
121
|
+
match([nil , nil , nil , 'hogera' ]),
|
122
|
+
match([nil , nil , nil , nil , "hoge\nhoge"])
|
123
123
|
])
|
124
124
|
|
125
125
|
expect(document.tables[1].name).to eq('Sheet2')
|
126
126
|
expect(document.tables[1].data).to match([
|
127
|
-
match([nil
|
128
|
-
match([nil
|
129
|
-
match([nil
|
130
|
-
match([nil
|
131
|
-
match([
|
127
|
+
match([nil , nil , nil , nil , 'foo']),
|
128
|
+
match([nil , nil , nil , 'bar' ]),
|
129
|
+
match([nil , nil , 'baz' ]),
|
130
|
+
match([nil , 'qux' ]),
|
131
|
+
match(["foo\nbar" ])
|
132
132
|
])
|
133
133
|
end
|
134
134
|
|
data/spec/fixtures/test.ods
CHANGED
Binary file
|
data/spreadbase.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.required_ruby_version = '>= 3.0.0'
|
12
12
|
s.authors = ["Saverio Miroddi"]
|
13
|
-
s.date = '2024-01-
|
13
|
+
s.date = '2024-01-23'
|
14
14
|
s.email = ["saverio.pub2@gmail.com"]
|
15
15
|
s.homepage = "https://github.com/saveriomiroddi/spreadbase"
|
16
16
|
s.summary = %q{Library for reading/writing OpenOffice Calc documents.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreadbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saverio Miroddi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|