csv_reader 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ module CsvReader
12
12
  @parser.data_rows.each do |row|
13
13
  return row if row[index] == @value_to_find
14
14
  end
15
+ nil
15
16
  end
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module CsvReader
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -16,4 +16,8 @@ describe CsvReader::Finder do
16
16
  it "should find correct rows" do
17
17
  CsvReader::Finder.new(@parser, "login", "dipu").find.should eq @dipu_row
18
18
  end
19
+
20
+ it "should return nil if row not found" do
21
+ CsvReader::Finder.new(@parser, "login", "hobbit").find.should be_nil
22
+ end
19
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: