rubyexcel 0.3.2 → 0.3.3

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: f035e4c22e84db021bc6552a241b2d21ccffb85f
4
- data.tar.gz: 65b7f9a3afc852a6de257dae02a1a441b8118177
3
+ metadata.gz: fc15333e40633038ed0ed4d6c57fd67a978b3bb6
4
+ data.tar.gz: c4ae59d243e7fb209247bf41f73d21e6ccad2c32
5
5
  SHA512:
6
- metadata.gz: 4b39e0df6ab2591a899252e8c1782dd6142241eabe7d199d2705c42bc3e02682fbcb7a72576666c09cffeda1c58ee6da1a005739219eed19a33d3586ed9f0c21
7
- data.tar.gz: 3cbd1db9522e89b233b4b6856fd78a0a5b7d150a52c8f8396e6797c323a30293f799cded9869b40a48c8cee0dd32e6cdc580d18b4a34ea3fc4288971754994e7
6
+ metadata.gz: 4fcc164c88a1c3e8b17d8ce62434d891980b60ccd90fed2d4f040935d24c7d9e741364485d76a4efd272ebed93593691f58a264c724d53ea4d94f480c1bdb793
7
+ data.tar.gz: 82ea96341ab519b5d6cc060502b5b142ffad6cc3cb222a08d80eb06267a514700c8429923b666f11706cea9143e4315c61893b7d3ff0d8652d6c5df8193b9b33
@@ -149,7 +149,7 @@ module RubyExcel
149
149
  #
150
150
 
151
151
  def row_id( address )
152
- address[/\d+/].to_i
152
+ Integer( address[/\d+/] )
153
153
  end
154
154
 
155
155
  #
@@ -35,8 +35,8 @@ module RubyExcel
35
35
  @sheet = sheet
36
36
  @data = sheet.data
37
37
  @address = addr
38
- @column = column_id( addr )
39
- @row = row_id( addr )
38
+ @column = ( addr =~ /[a-z]/i ? column_id( addr ) : 'A' )
39
+ @row = ( addr =~ /\d/ ? row_id( addr ) : 1 )
40
40
  end
41
41
 
42
42
  #
@@ -226,7 +226,7 @@ module RubyExcel
226
226
  #
227
227
 
228
228
  def initialize( sheet, idx )
229
- @idx = idx.to_i
229
+ @idx = Integer( idx )
230
230
  super( sheet )
231
231
  end
232
232
 
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyexcel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Pearson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-23 00:00:00.000000000 Z
11
+ date: 2013-09-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A tabular data structure in Ruby, with header-based helper methods for
14
14
  analysis and editing, and some of Excel's API style. Can output as 2D Array, HTML,
15
- CSV, TSV, or to an Excel WIN32OLE Object
15
+ CSV, TSV, or an Excel WIN32OLE Object
16
16
  email: VirtuosoJoel@gmail.com
17
17
  executables: []
18
18
  extensions: []