simple_xlsx_reader 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.9.3
2
+
3
+ * Support 1.8.7 (tests pass). Ongoing support will depend on ease.
4
+
1
5
  ### 0.9.2
2
6
 
3
7
  * Support reading files written by ex. simple_xlsx_writer that don't
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require "bundler/gem_tasks"
3
3
  require 'rake/testtask'
4
4
  Rake::TestTask.new do |t|
5
5
  t.pattern = "test/**/*_test.rb"
6
+ t.libs << 'test'
6
7
  end
7
8
 
8
9
  task :default => [:test]
@@ -135,7 +135,7 @@ module SimpleXlsxReader
135
135
  style_types[xcell.attributes['s'].value.to_i]
136
136
 
137
137
  cells << begin
138
- self.class.cast(xcell.text.strip, type, shared_strings: shared_strings)
138
+ self.class.cast(xcell.text.strip, type, :shared_strings => shared_strings)
139
139
  rescue => e
140
140
  if !SimpleXlsxReader.configuration.catch_cell_load_errors
141
141
  error = CellLoadError.new(
@@ -1,3 +1,3 @@
1
1
  module SimpleXlsxReader
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
@@ -15,6 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.add_dependency 'nokogiri'
16
16
  gem.add_dependency 'rubyzip'
17
17
 
18
+ gem.add_development_dependency 'minitest'
18
19
  gem.add_development_dependency 'pry'
19
20
 
20
21
  gem.files = `git ls-files`.split($/)
@@ -1,4 +1,4 @@
1
- require_relative 'test_helper'
1
+ require 'test_helper'
2
2
  require 'time'
3
3
 
4
4
  describe SimpleXlsxReader do
@@ -27,7 +27,7 @@ describe SimpleXlsxReader do
27
27
 
28
28
  describe '::cast' do
29
29
  it 'reads type s as a shared string' do
30
- described_class.cast('1', 's', shared_strings: ['a', 'b', 'c']).
30
+ described_class.cast('1', 's', :shared_strings => ['a', 'b', 'c']).
31
31
  must_equal 'b'
32
32
  end
33
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_xlsx_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: minitest
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: pry
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -108,4 +124,3 @@ test_files:
108
124
  - test/shared_strings.xml
109
125
  - test/simple_xlsx_reader_test.rb
110
126
  - test/test_helper.rb
111
- has_rdoc: