spreadsheet 1.2.4 → 1.2.5

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: 6e24a126670c29d4c9f3b8bcf8adb5d8d84a2acf
4
- data.tar.gz: 21a56ac71b43a87259aee264c047b298814bd8d2
3
+ metadata.gz: 678c848135bbc8a1ce20b295738ad0195f17cbf8
4
+ data.tar.gz: 2f4b3f53b49efc59ac16540501eb079ad2844805
5
5
  SHA512:
6
- metadata.gz: 83d667da3484477693bb3dc44ff85d8c7332142dc5413e0f5497bb825e690e04731751e86103cb9cb4e5cbb2b3d39a433a90448520fac72f498d405b744433d8
7
- data.tar.gz: bc6d0f1778204ad90908e0b243449581482b67bfa446298e14e429fa7478dc5fafe3054656813e54a4c69231abc7f3bf11121f7f3c49bb330ce51bb9352aa1f3
6
+ metadata.gz: daf4e0af2f5d7e8c97a9950dbca57e1def7adf6d63abe343aeda88157be88b508b166da1d11cea8d1f5663855188f9b9ed21aae106dfa094362e9f63f3375aa9
7
+ data.tar.gz: 6576acf99808473b84aa29ba8c10132cb996d5da8290201ed83256edd4aac237d8ab7722ff6e9684cb421ce4a7e79454b98e00d2047e02b521786cc197171e4c
@@ -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.1
13
- - 2.5.3
12
+ - 2.6.3
13
+ - 2.5.5
14
14
  - 2.4.5
15
15
  - 2.3.8
16
- - 2.2.6
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.3
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.1
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: a@boxbot.org: I think it should be noted in the README file that the library doesn't
33
- recognize cell formats in Excel created documents, which results in
34
- Floats returned for any number.
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 supports Ruby 1.8.6, 1.8.7, 1.9.2, 1.9.3, 2.0.0, 2.1.1, 2.2.2
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 ;).
@@ -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\[\$\-\d+\]/.to_s, 'UTF-8')),
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.
@@ -3,5 +3,5 @@
3
3
  module Spreadsheet
4
4
  ##
5
5
  # The version of Spreadsheet you are using.
6
- VERSION = '1.2.4'
6
+ VERSION = '1.2.5'
7
7
  end
@@ -76,7 +76,7 @@ module Spreadsheet
76
76
  # Returns the count of total worksheets present.
77
77
  # Takes no arguments. Just returns the length of @worksheets array.
78
78
  def sheet_count
79
- @worksheets.length
79
+ @worksheets.length
80
80
  end
81
81
  ##
82
82
  # The Font at _idx_
@@ -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
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-05-24 00:00:00.000000000 Z
11
+ date: 2019-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-ole