spreadsheet 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -5
- data/History.md +6 -0
- data/README.md +5 -4
- data/lib/spreadsheet/format.rb +2 -2
- data/lib/spreadsheet/version.rb +1 -1
- data/lib/spreadsheet/workbook.rb +1 -1
- data/test/format.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 678c848135bbc8a1ce20b295738ad0195f17cbf8
|
4
|
+
data.tar.gz: 2f4b3f53b49efc59ac16540501eb079ad2844805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf4e0af2f5d7e8c97a9950dbca57e1def7adf6d63abe343aeda88157be88b508b166da1d11cea8d1f5663855188f9b9ed21aae106dfa094362e9f63f3375aa9
|
7
|
+
data.tar.gz: 6576acf99808473b84aa29ba8c10132cb996d5da8290201ed83256edd4aac237d8ab7722ff6e9684cb421ce4a7e79454b98e00d2047e02b521786cc197171e4c
|
data/.travis.yml
CHANGED
@@ -9,11 +9,11 @@ bundler_args: --binstubs
|
|
9
9
|
script: "bundle exec ruby test/suite.rb"
|
10
10
|
rvm:
|
11
11
|
- ruby-head
|
12
|
-
- 2.6.
|
13
|
-
- 2.5.
|
12
|
+
- 2.6.3
|
13
|
+
- 2.5.5
|
14
14
|
- 2.4.5
|
15
15
|
- 2.3.8
|
16
|
-
- 2.2.
|
16
|
+
- 2.2.10
|
17
17
|
- 2.1.10
|
18
18
|
- 2.0.0
|
19
19
|
- 1.9.3
|
@@ -29,9 +29,9 @@ matrix:
|
|
29
29
|
include:
|
30
30
|
- rvm: 2.4.5
|
31
31
|
env: RUBYOPT='--enable-frozen-string-literal --debug-frozen-string-literal' USE_LATEST_RUBY_OLE=yes
|
32
|
-
- rvm: 2.5.
|
32
|
+
- rvm: 2.5.5
|
33
33
|
env: RUBYOPT='--enable-frozen-string-literal --debug-frozen-string-literal' USE_LATEST_RUBY_OLE=yes
|
34
|
-
- rvm: 2.6.
|
34
|
+
- rvm: 2.6.3
|
35
35
|
env: RUBYOPT='--enable-frozen-string-literal --debug-frozen-string-literal' USE_LATEST_RUBY_OLE=yes
|
36
36
|
allow_failures:
|
37
37
|
- rvm: ruby-head
|
data/History.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 1.2.5 23.10.2019
|
2
|
+
Author: Jesús Manuel García Muñoz <jesus@bebanjo.com>
|
3
|
+
Date: Wed Oct 23 20:26:01 2019 +0200
|
4
|
+
|
5
|
+
* Fixes unrecognized date format
|
6
|
+
|
1
7
|
### 1.2.4 24.05.2019
|
2
8
|
Author: Cyril Champier <cyril.champier@doctolib.com>
|
3
9
|
Date: Fri May 24 12:56:52 2019 +0200
|
data/README.md
CHANGED
@@ -29,9 +29,10 @@ Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.
|
|
29
29
|
|
30
30
|
## Notes from Users
|
31
31
|
|
32
|
-
Alfred:
|
33
|
-
|
34
|
-
|
32
|
+
* [Alfred](mailto:a@boxbot.org): The library doesn't recognize cell formats in Excel
|
33
|
+
created documents, which results in Floats returned for any number.
|
34
|
+
* [Tom](https://github.com/tom-lord): This library *only* supports XLS format;
|
35
|
+
it does **not** support XLSX format.
|
35
36
|
|
36
37
|
## What's new?
|
37
38
|
|
@@ -50,7 +51,7 @@ Floats returned for any number.
|
|
50
51
|
* Write-Support: BIFF5
|
51
52
|
* Remove backward compatibility code
|
52
53
|
|
53
|
-
Note: Spreadsheet
|
54
|
+
Note: Spreadsheet is tested against all minor ruby versions through: 1.8.7 - 2.6.3
|
54
55
|
|
55
56
|
You will get a deprecated warning about iconv when using spreadsheet with Ruby
|
56
57
|
1.9.3. So replacing iconv is on the Roadmap as well ;).
|
data/lib/spreadsheet/format.rb
CHANGED
@@ -101,12 +101,12 @@ module Spreadsheet
|
|
101
101
|
@pattern_fg_color = :border
|
102
102
|
@pattern_bg_color = :pattern_bg
|
103
103
|
@regexes = {
|
104
|
-
:date => Regexp.new(client("[YMD]", 'UTF-8')),
|
104
|
+
:date => Regexp.new(client("[YMD]|d{2}|m{3}|y{2}", 'UTF-8')),
|
105
105
|
:date_or_time => Regexp.new(client("[hmsYMD]", 'UTF-8')),
|
106
106
|
:datetime => Regexp.new(client("([YMD].*[HS])|([HS].*[YMD])", 'UTF-8')),
|
107
107
|
:time => Regexp.new(client("[hms]", 'UTF-8')),
|
108
108
|
:number => Regexp.new(client("([\#]|0+)", 'UTF-8')),
|
109
|
-
:locale => Regexp.new(client(/\A\[\$\-\
|
109
|
+
:locale => Regexp.new(client(/\A\[\$\-\S+\]/.to_s, 'UTF-8')),
|
110
110
|
}
|
111
111
|
|
112
112
|
# Temp code to prevent merged formats in non-merged cells.
|
data/lib/spreadsheet/version.rb
CHANGED
data/lib/spreadsheet/workbook.rb
CHANGED
data/test/format.rb
CHANGED
@@ -25,6 +25,8 @@ module Spreadsheet
|
|
25
25
|
assert_equal false, @format.date?
|
26
26
|
@format.number_format = "0.00;[RED]\\-0.00"
|
27
27
|
assert_equal false, @format.date?
|
28
|
+
@format.number_format = "[$-C0A]dd\\-mmm\\-yy"
|
29
|
+
assert_equal true, @format.date?
|
28
30
|
end
|
29
31
|
def test_date_or_time?
|
30
32
|
assert_equal false, @format.date_or_time?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreadsheet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannes F. Wyss, Masaomi Hatakeyama, Zeno R.R. Davatz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-ole
|