sherlock 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/collection/files.rb +1 -0
- data/lib/sherlock.rb +1 -1
- data/spec/collection/files_spec.rb +3 -3
- metadata +5 -5
data/lib/collection/files.rb
CHANGED
data/lib/sherlock.rb
CHANGED
@@ -17,14 +17,14 @@ describe Sherlock::Collection::Files do
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
describe "#
|
20
|
+
describe "#lines" do
|
21
21
|
it "collects all lines beginning with a number and a dot." do
|
22
|
-
lines = text_files(:only => /lines/).
|
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/).
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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-
|
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://
|
63
|
+
homepage: http://github.com/rrrene/sherlock
|
64
64
|
licenses: []
|
65
65
|
|
66
66
|
post_install_message:
|