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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xsv/helpers.rb +2 -0
- data/lib/xsv/version.rb +1 -1
- data/xsv.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 284b7b6ce94f03f8dfd74d77275a4ad2838f44bf9370a4ed2f5f6dba23ad513b
|
4
|
+
data.tar.gz: cc18f35656e7596c49c1f14e134071f12575204bb8237284cfbb49d2c924728f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81ef3af200fb019556e1d5093bfc6f01457f0557c5314f088e707ba25274e74e0c90f914d3133de66a0fb27a398c5b1f8ad3e30d9c55f85772ad029160bfcd05
|
7
|
+
data.tar.gz: a4631f63c346ddfa449181d1e4de685eac9720f87ec296f0cd335e7487ad5ad8e9e973d1caf8893c37038b78f1665bdaeb853ada501f7b813dc8bda36e85c7b6
|
data/CHANGELOG.md
CHANGED
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
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
|
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.
|
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-
|
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.
|
130
|
+
rubygems_version: 3.2.15
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
|
-
summary: A fast and
|
133
|
+
summary: A fast and lightweight xlsx parser that provides nothing a CSV parser wouldn't
|
134
134
|
test_files: []
|