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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c25a3b806d510bde0b396fc5dcb9443f2a909493a8b3bd850078a63539fc189
4
- data.tar.gz: 76b76fe5242a2626c170f3b032c5ba6b26d500ec00cd72ceba813aa418c0335d
3
+ metadata.gz: d899f8ffe05c782dc672c110852da92362b7fc11edea36a8ac799f7705f12c3e
4
+ data.tar.gz: 2391cee88e8d42e05114060697fc4fffa1ecf5e6f3f8007f3ffdf737550b6078
5
5
  SHA512:
6
- metadata.gz: 37098ecaa48b14abb507edab85965d9383a1caf292e279eb970cf000c9edc3b68f30b6d4f1c75378b3497a48b00de9999bff60da2c45873db3ce0e20339c4c90
7
- data.tar.gz: e9829cad4842d6219199a0ee2f0f3798997bc37f67fb4021c0d415e2f0e89579dd7ab81f6459fa690a096818c889c483ce8a4f250e93e78bb9f1d37ca23517b8
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
- value_node = cell_node.elements['text:p']
128
-
129
- value_node.text
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
 
@@ -1,3 +1,3 @@
1
1
  module SpreadBase
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -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 , 'hogehoge'])
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 , nil , nil , nil , 'foo']),
128
- match([nil , nil , nil , 'bar' ]),
129
- match([nil , nil , 'baz' ]),
130
- match([nil , 'foobar' ]),
131
- match(['qux' ])
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
 
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-03'
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.5.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-03 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip