xsv 0.3.14 → 0.3.15

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: a66b24ece17f7b9faa5135579c0af4d35304d621e853faca1e6d7d9690b89e6f
4
- data.tar.gz: a198c842580d809434a07eca88926f0e3a427aa2c61f94c1cc6b8280f71a69a2
3
+ metadata.gz: 84691bdf67411e4a1e2d28c23a04e6656285247820d65c3124382261b0aba27e
4
+ data.tar.gz: 2ae8332a7e5e857039b729abee1478f063663e29b4eb8b9f45a4ae3ac2632916
5
5
  SHA512:
6
- metadata.gz: ccec619995f290348adb91cd5114b1829641e7623bf7715fea9a0de9787451d1393230cd69f225f340c463fcb53b595ca97dabf25cedcebfbc5f985d8bf60afa
7
- data.tar.gz: f02eb4ea27c7e87634e11b626f5f7f9b5ad1f4068240428e52864798d08054c795ff78865cb1352a2dedc49d0f0933f51f6f3ac4dd598d72c2e510086d673ddd
6
+ metadata.gz: 666a4b190de6a64d676fc5dd66d5d836255b7c5b8114f21f53ce57b9d09deaa1cfd4f644c31018a48619449d5962dd86b6bdd41355861462275601fc7486c386
7
+ data.tar.gz: 3c6c957f46e31dac95f7c77f533ab43c52db1733f1d309b7a6e6bdc7e503da72963a3fe4f80a8269d46db436977bbc37c0b425203c2d75c8a6ef1be889714eb3
@@ -1,5 +1,9 @@
1
1
  # Xsv Changelog
2
2
 
3
+ ## 0.3.15 2020-06-02
4
+
5
+ - Fix issue with workbooks that don't contain shared strings (#15)
6
+
3
7
  ## 0.3.14 2020-05-22
4
8
 
5
9
  - Allow opening workbooks from Tempfile and anything that responds to #read
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Xsv
3
- VERSION = "0.3.14"
3
+ VERSION = "0.3.15"
4
4
  end
@@ -75,7 +75,10 @@ module Xsv
75
75
  private
76
76
 
77
77
  def fetch_shared_strings
78
- stream = @zip.glob("xl/sharedStrings.xml").first.get_input_stream
78
+ handle = @zip.glob("xl/sharedStrings.xml").first
79
+ return if handle.nil?
80
+
81
+ stream = handle.get_input_stream
79
82
  @shared_strings = SharedStringsParser.parse(stream)
80
83
 
81
84
  stream.close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martijn Storck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip