princess 0.0.2 → 0.0.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.
- data/lib/princess/excel_reader.rb +1 -1
- data/lib/princess/excelx_reader.rb +2 -2
- metadata +9 -7
@@ -22,7 +22,7 @@ module Princess
|
|
22
22
|
# return the specified row
|
23
23
|
def row(num)
|
24
24
|
raise 'invalid argument' if !num.is_a?(Integer)
|
25
|
-
Row.new(@sheet.row(num - 1).inject([]){|vals, cell|vals<<cell})
|
25
|
+
Row.new(@sheet.row(num - 1).inject([]) {|vals, cell| vals << cell})
|
26
26
|
end
|
27
27
|
|
28
28
|
# return the specified cell content
|
@@ -34,7 +34,7 @@ module Princess
|
|
34
34
|
def each
|
35
35
|
@rows.each do |noko_row|
|
36
36
|
if noko_row.nil?
|
37
|
-
yield
|
37
|
+
yield Row.new([])
|
38
38
|
else
|
39
39
|
yield Row.new(extract_row_values(noko_row))
|
40
40
|
end
|
@@ -44,7 +44,7 @@ module Princess
|
|
44
44
|
# return the specified row
|
45
45
|
def row(num)
|
46
46
|
raise 'invalid argument' if !num.is_a?(Integer)
|
47
|
-
return
|
47
|
+
return Row.new([]) if @rows[num - 1].nil?
|
48
48
|
Row.new(extract_row_values(@rows[num - 1]))
|
49
49
|
end
|
50
50
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: princess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- R. Scott Reis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-06 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -96,10 +96,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements:
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
hash:
|
99
|
+
hash: 49
|
100
100
|
segments:
|
101
|
-
-
|
102
|
-
|
101
|
+
- 1
|
102
|
+
- 9
|
103
|
+
- 1
|
104
|
+
version: 1.9.1
|
103
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
106
|
none: false
|
105
107
|
requirements:
|