princess 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 nil
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 nil if @rows[num - 1].nil?
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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-05 00:00:00 -05:00
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: 3
99
+ hash: 49
100
100
  segments:
101
- - 0
102
- version: "0"
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: