saxlsx 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bc6b0c27db86c92575ab6d76e938718f987062b
4
- data.tar.gz: d64e2b1bf4fad6173b4e6a6fdcc9f52af0b67be7
3
+ metadata.gz: 54925b1ff0a1cf772d1b5c26c1eee0c6f2d777ba
4
+ data.tar.gz: 1bbb66a26a5f095b0d11338d91da3024a93258d0
5
5
  SHA512:
6
- metadata.gz: d06a5f4ea511da6bc470d3ab7129dd63d0876de0f1470a8f0ef9ced9c4611dd9f0d0d6c2d6b8ff07e20ecb4d7e918bd2849ce4ccff3c854e001748cbcf51f691
7
- data.tar.gz: c2e9c81ddc0ce05477f60d720eba7bf5b23f9afb37c9b75f69e779d9e4f1f185ac46b2da579fe3cb29d879eb3f6d8b9060d0539357238cbd2873dbad4f63a737
6
+ metadata.gz: 27af434e8a16a6a779ed938a68c1b0e0deea8a1c80a272f99b96c17cf3923fb15567c378fef3e3eeb3826726ae2cb21f22d19b08e00d2007713654bb955f8cef
7
+ data.tar.gz: fe50048d93f025e557f5aba24dc107865f8438a8d840197e8a55cdc83e52211db6e5f6e29eeb9cc11de3b01ce11af5941d3e63b863d23ce9a4dd90f94703678e
@@ -16,7 +16,7 @@ module Saxlsx
16
16
  end
17
17
 
18
18
  def start_element(name)
19
- @current_string = '' if name == :si
19
+ @current_string = String.new if name == :si
20
20
  end
21
21
 
22
22
  def end_element(name)
@@ -27,7 +27,7 @@ module Saxlsx
27
27
  end
28
28
 
29
29
  def text(value)
30
- @current_string = CGI.unescapeHTML(value) if @current_string
30
+ @current_string << CGI.unescapeHTML(value) if @current_string
31
31
  end
32
32
 
33
33
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Saxlsx
3
- VERSION = '1.7.0'
3
+ VERSION = '1.7.1'
4
4
  end
Binary file
@@ -47,8 +47,8 @@ describe Workbook do
47
47
  it 'Shared strings' do
48
48
  Workbook.open filename do |w|
49
49
  w.should have(56).shared_strings
50
- w.shared_strings[0].should eq 'LevenshteinDistance'
51
- w.shared_strings[55].should eq 'TST_ModMan_Insulto_SU_Normal'
50
+ w.shared_strings.should include 'LevenshteinDistance'
51
+ w.shared_strings.should include 'TST_ModMan_Insulto_SU_Normal'
52
52
  end
53
53
  end
54
54
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saxlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edgars Beigarts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-21 00:00:00.000000000 Z
11
+ date: 2017-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip