spreadsheet 1.0.5 → 1.0.6

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: 4e25242aa5a57f88a676dfac1d03eb87ff3e34e0
4
- data.tar.gz: d899a6a7aed3653c0788c450fc4cbd5b3d4fe3e3
3
+ metadata.gz: f946dbf91667dd6ef906878767b19300c7716c2d
4
+ data.tar.gz: 816f5a100e56b94e9b37066cd51561787311a7cc
5
5
  SHA512:
6
- metadata.gz: 9d93307f9c91d0625654733d24d95e5de6133dd6bf9adbf61f1685a4d6e82343e8898f68f9c0185abf2549997cc4d1a54dfe9c7365b8d0cf0cae7ecdc40b21d1
7
- data.tar.gz: 9474b80232062b6e1d960a2f88b2a0567bd8ca6748c0b5048c91a4cd95e2fa420cbfad092784f030bccd91239e044cf9339b75e29a9938ac13f2438eb1607119
6
+ metadata.gz: dd5ce2add182a2c545cf01d140a5044a17c11d44ef213758339c7b10e23bb9117a4cfea9c3d5dbdfac7f56fc1b7b709db973cb5fb4023d171ae2a2a688f3d032
7
+ data.tar.gz: 4a4d7a2545074532e2d956acc93345dfdb1f84f1c35509260a4a5da57556aa4365fa15d1b48fc593eedb0d250f46cbedb11c2ea333a5b96909694ccccfc07a8e
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 1.0.6 / 14.09.2015
2
+
3
+ Author: Yann Plancqueel <yplancqueel@gmail.com>
4
+ Date: Sat Sep 12 15:32:49 2015 +0200
5
+
6
+ * bugfix opening a spreadsheet with missing format
7
+
1
8
  ### 1.0.5 / 01.09.2015
2
9
 
3
10
  Author: kunashir <kunashir@list.ru>
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Spreadsheet
2
-
3
2
  ## Getting Started
3
+ [![Join the chat at https://gitter.im/zdavatz/spreadsheet](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/zdavatz/spreadsheet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
4
  [![Build Status](https://secure.travis-ci.org/zdavatz/spreadsheet.png)](http://travis-ci.org/zdavatz/spreadsheet)
5
5
 
6
6
  The Mailing List can be found here:
data/lib/spreadsheet.rb CHANGED
@@ -45,7 +45,7 @@ module Spreadsheet
45
45
 
46
46
  ##
47
47
  # The version of Spreadsheet you are using.
48
- VERSION = '1.0.5'
48
+ VERSION = '1.0.6'
49
49
 
50
50
  ##
51
51
  # Default client Encoding. Change this value if your application uses a
@@ -89,7 +89,7 @@ module Spreadsheet
89
89
  def format idx
90
90
  case idx
91
91
  when Integer
92
- @formats[idx] || @default_format
92
+ @formats[idx] || @default_format || Format.new
93
93
  when String
94
94
  @formats.find do |fmt| fmt.name == idx end
95
95
  end
data/test/integration.rb CHANGED
@@ -67,6 +67,12 @@ module Spreadsheet
67
67
  assert_equal 0, sheet.column_count
68
68
  assert_nothing_raised do sheet.inspect end
69
69
  end
70
+ def test_missing_format
71
+ path = File.join @data, 'test_missing_format.xls'
72
+ assert_nothing_thrown do
73
+ workbook = Spreadsheet.open(path, "rb")
74
+ end
75
+ end
70
76
  def test_version_excel97__excel2010__utf16
71
77
  Spreadsheet.client_encoding = 'UTF-16LE'
72
78
  assert_equal 'UTF-16LE', Spreadsheet.client_encoding
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.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-ole
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project: spreadsheet
183
- rubygems_version: 2.4.5
183
+ rubygems_version: 2.2.0
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: The Spreadsheet Library is designed to read and write Spreadsheet Documents