sherlock 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,7 @@ module Sherlock
38
38
  end
39
39
  alias old_collect collect
40
40
  alias collect collect_lines_matching
41
+ alias lines collect_lines_matching
41
42
 
42
43
  # Returns a FileCollection with all files containing the
43
44
  # given content / matching the given pattern.
@@ -11,7 +11,7 @@ module Sherlock
11
11
  module VERSION #:nodoc:
12
12
  MAJOR = 0
13
13
  MINOR = 1
14
- BUILD = 0
14
+ BUILD = 1
15
15
 
16
16
  STRING = [MAJOR, MINOR, BUILD].join('.').freeze
17
17
  end
@@ -17,14 +17,14 @@ describe Sherlock::Collection::Files do
17
17
  end
18
18
  end
19
19
 
20
- describe "#collect" do
20
+ describe "#lines" do
21
21
  it "collects all lines beginning with a number and a dot." do
22
- lines = text_files(:only => /lines/).collect(/^\d+\./)
22
+ lines = text_files(:only => /lines/).lines(/^\d+\./)
23
23
  lines.should_not be_empty
24
24
  end
25
25
 
26
26
  it "tries to collect all lines beginning with a number and a dot." do
27
- lines = text_files(:except => /lines/).collect(/^\d+\./)
27
+ lines = text_files(:except => /lines/).lines(/^\d+\./)
28
28
  lines.should be_empty
29
29
  end
30
30
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sherlock
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
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Ren\xC3\xA9 F\xC3\xB6hring"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-10 00:00:00 +01:00
18
+ date: 2011-02-11 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -60,7 +60,7 @@ files:
60
60
  - spec/fixtures/simple/lorem.txt
61
61
  - spec/spec_helper.rb
62
62
  has_rdoc: true
63
- homepage: http://bamaru.com
63
+ homepage: http://github.com/rrrene/sherlock
64
64
  licenses: []
65
65
 
66
66
  post_install_message: