fakes 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fakes/arg_matching/matches.rb +7 -7
- data/lib/fakes/version.rb +1 -1
- metadata +4 -4
@@ -2,28 +2,28 @@ module Fakes
|
|
2
2
|
class Matches
|
3
3
|
class << self
|
4
4
|
def not_nil
|
5
|
-
condition{|item| item != nil}
|
5
|
+
condition { |item| item != nil }
|
6
6
|
end
|
7
7
|
|
8
8
|
def nil
|
9
|
-
condition{|item| item == nil}
|
9
|
+
condition { |item| item == nil }
|
10
10
|
end
|
11
11
|
|
12
12
|
def any
|
13
|
-
condition{|ignored| true}
|
13
|
+
condition { |ignored| true }
|
14
14
|
end
|
15
15
|
|
16
16
|
def greater_than(value)
|
17
|
-
condition{|number| number > value}
|
17
|
+
condition { |number| number > value }
|
18
18
|
end
|
19
19
|
|
20
20
|
|
21
21
|
def in_range(range)
|
22
|
-
condition{|item| range === item}
|
22
|
+
condition { |item| range === item }
|
23
23
|
end
|
24
24
|
|
25
|
-
def regex(
|
26
|
-
condition{|
|
25
|
+
def regex(pattern)
|
26
|
+
condition { |string_value| pattern =~ string_value }
|
27
27
|
end
|
28
28
|
|
29
29
|
def condition(&conditional_block)
|
data/lib/fakes/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fakes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
segments:
|
136
136
|
- 0
|
137
|
-
hash:
|
137
|
+
hash: -1032549203024046301
|
138
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
140
140
|
requirements:
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
segments:
|
145
145
|
- 0
|
146
|
-
hash:
|
146
|
+
hash: -1032549203024046301
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project: fakes
|
149
149
|
rubygems_version: 1.8.25
|