ndlib-on-rspec 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +14 -0
- data/Gemfile +1 -3
- data/README.md +2 -0
- data/lib/ndlib-on-rspec/have_method_matcher.rb +3 -1
- data/lib/ndlib-on-rspec/version.rb +1 -1
- metadata +51 -32
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,9 @@ RSpec::Matchers.define :have_method do |method_name|
|
|
2
2
|
match do |object|
|
3
3
|
@method_name = method_name
|
4
4
|
@arity ||= '0'.to_i
|
5
|
-
if %r{^(
|
5
|
+
if %r{^(\.|\#)(.*)} =~ method_name.to_s
|
6
|
+
prefix = $1
|
7
|
+
normalized_method_name = $2
|
6
8
|
@normalized_method_name = normalized_method_name
|
7
9
|
@klass = object.is_a?(Class) ? object : object.class
|
8
10
|
if prefix == '.'
|
metadata
CHANGED
@@ -1,41 +1,51 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndlib-on-rspec
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Jeremy Friesen
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-11-07 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rspec
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 2.6.1
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 21
|
29
|
+
segments:
|
30
|
+
- 2
|
31
|
+
- 6
|
32
|
+
- 1
|
29
33
|
version: 2.6.1
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
30
36
|
description: A handful of helpful Rspec matchers intended for reuse
|
31
|
-
email:
|
37
|
+
email:
|
32
38
|
- jeremy.n.friesen@gmail.com
|
33
39
|
executables: []
|
40
|
+
|
34
41
|
extensions: []
|
42
|
+
|
35
43
|
extra_rdoc_files: []
|
36
|
-
|
44
|
+
|
45
|
+
files:
|
37
46
|
- .gitignore
|
38
47
|
- .rspec
|
48
|
+
- .travis.yml
|
39
49
|
- Gemfile
|
40
50
|
- LICENSE
|
41
51
|
- README.md
|
@@ -52,29 +62,38 @@ files:
|
|
52
62
|
- spec/spec_helper.rb
|
53
63
|
homepage: http://github.com/ndlib/ndlib-on-rspec
|
54
64
|
licenses: []
|
65
|
+
|
55
66
|
post_install_message:
|
56
67
|
rdoc_options: []
|
57
|
-
|
68
|
+
|
69
|
+
require_paths:
|
58
70
|
- lib
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
72
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
81
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
71
89
|
requirements: []
|
90
|
+
|
72
91
|
rubyforge_project:
|
73
92
|
rubygems_version: 1.8.24
|
74
93
|
signing_key:
|
75
94
|
specification_version: 3
|
76
95
|
summary: A handful of helpful Rspec matchers intended for reuse
|
77
|
-
test_files:
|
96
|
+
test_files:
|
78
97
|
- spec/ndlib-on-rspec/alias_from_matcher_spec.rb
|
79
98
|
- spec/ndlib-on-rspec/delegate_matcher_spec.rb
|
80
99
|
- spec/ndlib-on-rspec/have_method_matcher_spec.rb
|