spreadsheetx 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/spreadsheetx/worksheet.rb +2 -1
- data/spreadsheetx.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -129,7 +129,8 @@ module SpreadsheetX
|
|
129
129
|
|
130
130
|
# turns a cell address into its excel name, 1,1 = A1 2,3 = C2 etc.
|
131
131
|
def self.cell_id(col_number, row_number)
|
132
|
-
raise 'There is no row 0, start at 1 instead' if row_number < 1
|
132
|
+
raise 'There is no row 0 in an excel sheet, start at 1 instead' if row_number < 1
|
133
|
+
raise 'There is no column 0 in an excel sheet, start at 1 instead' if col_number < 1
|
133
134
|
letter = 'A'
|
134
135
|
# some day, speed this up
|
135
136
|
(col_number.to_i-1).times{letter = letter.succ}
|
data/spreadsheetx.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: spreadsheetx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Craig Ulliott
|
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements:
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
hash:
|
122
|
+
hash: -3885931642125735789
|
123
123
|
segments:
|
124
124
|
- 0
|
125
125
|
version: "0"
|