xsv 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6433d19ba65e00b98adecde398a3bfbfe9583ac811290d8f8ffa5ada16ea9b70
4
- data.tar.gz: 903c61f9485f1380a064cc8ccfdfa378a46df1383259e6c82ca21501dcc485a5
3
+ metadata.gz: 284b7b6ce94f03f8dfd74d77275a4ad2838f44bf9370a4ed2f5f6dba23ad513b
4
+ data.tar.gz: cc18f35656e7596c49c1f14e134071f12575204bb8237284cfbb49d2c924728f
5
5
  SHA512:
6
- metadata.gz: e79c5866cd7dd20f0c36ea46a341234bcbc8cdbed40492c8bab31543fe96fcd4bd242a6c63368841e7ad481e4f72187eca5682effdb445388256e83969e1a969
7
- data.tar.gz: 474da420765253453a3a1e9a25e8a2582052600bfdaee3e0f246db9d6b415a2a2ae46bd9c2edbb5364efb99708061125f189fd608cab5122bfc2090dd183004d
6
+ metadata.gz: 81ef3af200fb019556e1d5093bfc6f01457f0557c5314f088e707ba25274e74e0c90f914d3133de66a0fb27a398c5b1f8ad3e30d9c55f85772ad029160bfcd05
7
+ data.tar.gz: a4631f63c346ddfa449181d1e4de685eac9720f87ec296f0cd335e7487ad5ad8e9e973d1caf8893c37038b78f1665bdaeb853ada501f7b813dc8bda36e85c7b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Xsv Changelog
2
2
 
3
+ ## 1.0.3 2021-05-06
4
+
5
+ - Handle nil number formats correctly (regression in Xsv 1.0.2, #29)
6
+
3
7
  ## 1.0.2 2021-05-01
4
8
 
5
9
  - Ignore phonetic shared string data (thanks @sinoue-1003)
data/lib/xsv/helpers.rb CHANGED
@@ -105,6 +105,8 @@ module Xsv
105
105
  def parse_number_format(number, format)
106
106
  number = parse_number(number) # number is always a string since it comes out of the Sax Parser
107
107
 
108
+ return number if format.nil?
109
+
108
110
  is_date_format = format.scan(/[dmy]+/).length > 1
109
111
  is_time_format = format.scan(/[hms]+/).length > 1
110
112
 
data/lib/xsv/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xsv
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
data/xsv.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Martijn Storck"]
9
9
  spec.email = ["martijn@storck.io"]
10
10
 
11
- spec.summary = "A fast and lightweiggt xlsx parser that provides nothing a CSV parser wouldn't"
11
+ spec.summary = "A fast and lightweight xlsx parser that provides nothing a CSV parser wouldn't"
12
12
  spec.description = <<-EOF
13
13
  Xsv is a fast, lightweight parser for Office Open XML spreadsheet files
14
14
  (commonly known as Excel or .xlsx files). It strives to be minimal in the
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: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martijn Storck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-01 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -127,8 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubygems_version: 3.2.3
130
+ rubygems_version: 3.2.15
131
131
  signing_key:
132
132
  specification_version: 4
133
- summary: A fast and lightweiggt xlsx parser that provides nothing a CSV parser wouldn't
133
+ summary: A fast and lightweight xlsx parser that provides nothing a CSV parser wouldn't
134
134
  test_files: []