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 ADDED
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ script: "bundle exec rspec spec/"
3
+ rvm:
4
+ - 1.9.3
5
+ - 1.8.7
6
+ gemfile:
7
+ - Gemfile
8
+ notifications:
9
+ email:
10
+ recipients:
11
+ - jfriesen@nd.edu
12
+ branches:
13
+ only:
14
+ - master
data/Gemfile CHANGED
@@ -1,6 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ndlib-on-rspec.gemspec
4
- gemspec
5
-
6
- gem 'debugger'
4
+ gemspec
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Ndlib::On::Rspec
2
2
 
3
+ [![Build Status](https://secure.travis-ci.org/ndlib/ndlib-on-rspec.png)](http://travis-ci.org/ndlib/ndlib-on-rspec)
4
+
3
5
  Some Rspec matchers to share across projects.
4
6
 
5
7
  ## Installation
@@ -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{^(?<prefix>\.|\#)(?<normalized_method_name>.*)} =~ method_name.to_s
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 == '.'
@@ -1,3 +1,3 @@
1
1
  module NdlibOnRspec
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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
- version: 0.0.2
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
- date: 2012-09-11 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- files:
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
- require_paths:
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
- version: '0'
65
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
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