rspec-spies 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ appraise "rspec-2-8" do
2
+ gem "rspec", "~> 2.8.0"
3
+ end
4
+
5
+ appraise "rspec-2-11" do
6
+ gem "rspec", "~> 2.11.0"
7
+ end
@@ -8,6 +8,9 @@ PATH
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
+ appraisal (0.4.1)
12
+ bundler
13
+ rake
11
14
  diff-lcs (1.1.3)
12
15
  git (1.2.5)
13
16
  jeweler (1.6.4)
@@ -29,6 +32,7 @@ PLATFORMS
29
32
  ruby
30
33
 
31
34
  DEPENDENCIES
35
+ appraisal
32
36
  jeweler
33
37
  rake
34
38
  rdoc
data/Rakefile CHANGED
@@ -3,6 +3,7 @@ require 'bundler'
3
3
  Bundler.setup(:default, :development)
4
4
 
5
5
  require 'rake'
6
+ require 'appraisal'
6
7
 
7
8
  require 'jeweler'
8
9
  Jeweler::Tasks.new do |gem|
@@ -18,6 +19,7 @@ Jeweler::Tasks.new do |gem|
18
19
  gem.add_development_dependency 'rake'
19
20
  gem.add_development_dependency 'jeweler'
20
21
  gem.add_development_dependency 'rdoc'
22
+ gem.add_development_dependency 'appraisal'
21
23
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
22
24
  end
23
25
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "rspec", "~> 2.11.0"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,43 @@
1
+ PATH
2
+ remote: /Users/jamesarosen/Projects/rspec-spies
3
+ specs:
4
+ rspec-spies (2.1.1)
5
+ rspec (~> 2.0)
6
+ rspec-spies
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ appraisal (0.4.1)
12
+ bundler
13
+ rake
14
+ diff-lcs (1.1.3)
15
+ git (1.2.5)
16
+ jeweler (1.8.4)
17
+ bundler (~> 1.0)
18
+ git (>= 1.2.5)
19
+ rake
20
+ rdoc
21
+ json (1.7.5)
22
+ rake (0.9.2.2)
23
+ rdoc (3.12)
24
+ json (~> 1.4)
25
+ rspec (2.11.0)
26
+ rspec-core (~> 2.11.0)
27
+ rspec-expectations (~> 2.11.0)
28
+ rspec-mocks (~> 2.11.0)
29
+ rspec-core (2.11.1)
30
+ rspec-expectations (2.11.2)
31
+ diff-lcs (~> 1.1.3)
32
+ rspec-mocks (2.11.2)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ appraisal
39
+ jeweler
40
+ rake
41
+ rdoc
42
+ rspec (~> 2.11.0)
43
+ rspec-spies!
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "rspec", "~> 2.8.0"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,43 @@
1
+ PATH
2
+ remote: /Users/jamesarosen/Projects/rspec-spies
3
+ specs:
4
+ rspec-spies (2.1.1)
5
+ rspec (~> 2.0)
6
+ rspec-spies
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ appraisal (0.4.1)
12
+ bundler
13
+ rake
14
+ diff-lcs (1.1.3)
15
+ git (1.2.5)
16
+ jeweler (1.8.4)
17
+ bundler (~> 1.0)
18
+ git (>= 1.2.5)
19
+ rake
20
+ rdoc
21
+ json (1.7.5)
22
+ rake (0.9.2.2)
23
+ rdoc (3.12)
24
+ json (~> 1.4)
25
+ rspec (2.8.0)
26
+ rspec-core (~> 2.8.0)
27
+ rspec-expectations (~> 2.8.0)
28
+ rspec-mocks (~> 2.8.0)
29
+ rspec-core (2.8.0)
30
+ rspec-expectations (2.8.0)
31
+ diff-lcs (~> 1.1.2)
32
+ rspec-mocks (2.8.0)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ appraisal
39
+ jeweler
40
+ rake
41
+ rdoc
42
+ rspec (~> 2.8.0)
43
+ rspec-spies!
@@ -17,13 +17,17 @@ end
17
17
 
18
18
  require 'rspec/expectations'
19
19
  require 'rspec/matchers'
20
+ argument_expectation_class = RSpec::Mocks.const_defined?(:ArgumentExpectation) ?
21
+ RSpec::Mocks::ArgumentExpectation :
22
+ RSpec::Mocks::ArgumentListMatcher
23
+
20
24
  RSpec::Matchers.define :have_received do |method_name, args, block|
21
25
  match do |actual|
22
26
  messages_received = actual.send(:__mock_proxy).instance_variable_get("@messages_received")
23
27
  messages_received.any? do |message|
24
28
  received_method_name, received_args, received_block = *message
25
29
  result = (received_method_name == method_name)
26
- result &&= RSpec::Mocks::ArgumentExpectation.new(@args || any_args).args_match?(received_args)
30
+ result &&= argument_expectation_class.new(@args || any_args).args_match?(received_args)
27
31
  result &&= (received_block == block)
28
32
  end
29
33
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rspec-spies"
8
- s.version = "2.1.1"
8
+ s.version = "2.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joshua Nichols"]
@@ -18,12 +18,17 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ "Appraisals",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "LICENSE",
24
25
  "README.rdoc",
25
26
  "Rakefile",
26
27
  "VERSION",
28
+ "gemfiles/rspec-2-11.gemfile",
29
+ "gemfiles/rspec-2-11.gemfile.lock",
30
+ "gemfiles/rspec-2-8.gemfile",
31
+ "gemfiles/rspec-2-8.gemfile.lock",
27
32
  "lib/rspec-spies.rb",
28
33
  "rspec-spies.gemspec",
29
34
  "spec/rspec-spies_spec.rb",
@@ -40,32 +45,26 @@ Gem::Specification.new do |s|
40
45
 
41
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
47
  s.add_runtime_dependency(%q<rspec-spies>, [">= 0"])
43
- s.add_development_dependency(%q<rake>, [">= 0"])
44
- s.add_development_dependency(%q<jeweler>, [">= 0"])
45
- s.add_development_dependency(%q<rdoc>, [">= 0"])
46
48
  s.add_runtime_dependency(%q<rspec>, ["~> 2.0"])
47
49
  s.add_development_dependency(%q<rake>, [">= 0"])
48
50
  s.add_development_dependency(%q<jeweler>, [">= 0"])
49
51
  s.add_development_dependency(%q<rdoc>, [">= 0"])
52
+ s.add_development_dependency(%q<appraisal>, [">= 0"])
50
53
  else
51
54
  s.add_dependency(%q<rspec-spies>, [">= 0"])
52
- s.add_dependency(%q<rake>, [">= 0"])
53
- s.add_dependency(%q<jeweler>, [">= 0"])
54
- s.add_dependency(%q<rdoc>, [">= 0"])
55
55
  s.add_dependency(%q<rspec>, ["~> 2.0"])
56
56
  s.add_dependency(%q<rake>, [">= 0"])
57
57
  s.add_dependency(%q<jeweler>, [">= 0"])
58
58
  s.add_dependency(%q<rdoc>, [">= 0"])
59
+ s.add_dependency(%q<appraisal>, [">= 0"])
59
60
  end
60
61
  else
61
62
  s.add_dependency(%q<rspec-spies>, [">= 0"])
62
- s.add_dependency(%q<rake>, [">= 0"])
63
- s.add_dependency(%q<jeweler>, [">= 0"])
64
- s.add_dependency(%q<rdoc>, [">= 0"])
65
63
  s.add_dependency(%q<rspec>, ["~> 2.0"])
66
64
  s.add_dependency(%q<rake>, [">= 0"])
67
65
  s.add_dependency(%q<jeweler>, [">= 0"])
68
66
  s.add_dependency(%q<rdoc>, [">= 0"])
67
+ s.add_dependency(%q<appraisal>, [">= 0"])
69
68
  end
70
69
  end
71
70
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-spies
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 1
10
- version: 2.1.1
9
+ - 2
10
+ version: 2.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Nichols
@@ -32,21 +32,22 @@ dependencies:
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency
35
- name: rake
35
+ name: rspec
36
36
  prerelease: false
37
37
  requirement: &id002 !ruby/object:Gem::Requirement
38
38
  none: false
39
39
  requirements:
40
- - - ">="
40
+ - - ~>
41
41
  - !ruby/object:Gem::Version
42
42
  hash: 3
43
43
  segments:
44
+ - 2
44
45
  - 0
45
- version: "0"
46
- type: :development
46
+ version: "2.0"
47
+ type: :runtime
47
48
  version_requirements: *id002
48
49
  - !ruby/object:Gem::Dependency
49
- name: jeweler
50
+ name: rake
50
51
  prerelease: false
51
52
  requirement: &id003 !ruby/object:Gem::Requirement
52
53
  none: false
@@ -60,7 +61,7 @@ dependencies:
60
61
  type: :development
61
62
  version_requirements: *id003
62
63
  - !ruby/object:Gem::Dependency
63
- name: rdoc
64
+ name: jeweler
64
65
  prerelease: false
65
66
  requirement: &id004 !ruby/object:Gem::Requirement
66
67
  none: false
@@ -74,38 +75,9 @@ dependencies:
74
75
  type: :development
75
76
  version_requirements: *id004
76
77
  - !ruby/object:Gem::Dependency
77
- name: rspec
78
+ name: rdoc
78
79
  prerelease: false
79
80
  requirement: &id005 !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ~>
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 2
87
- - 0
88
- version: "2.0"
89
- type: :runtime
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
92
- name: rake
93
- prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
103
- type: :development
104
- version_requirements: *id006
105
- - !ruby/object:Gem::Dependency
106
- name: jeweler
107
- prerelease: false
108
- requirement: &id007 !ruby/object:Gem::Requirement
109
81
  none: false
110
82
  requirements:
111
83
  - - ">="
@@ -115,11 +87,11 @@ dependencies:
115
87
  - 0
116
88
  version: "0"
117
89
  type: :development
118
- version_requirements: *id007
90
+ version_requirements: *id005
119
91
  - !ruby/object:Gem::Dependency
120
- name: rdoc
92
+ name: appraisal
121
93
  prerelease: false
122
- requirement: &id008 !ruby/object:Gem::Requirement
94
+ requirement: &id006 !ruby/object:Gem::Requirement
123
95
  none: false
124
96
  requirements:
125
97
  - - ">="
@@ -129,7 +101,7 @@ dependencies:
129
101
  - 0
130
102
  version: "0"
131
103
  type: :development
132
- version_requirements: *id008
104
+ version_requirements: *id006
133
105
  description: test spies, for rspec
134
106
  email: josh@technicalpickles.com
135
107
  executables: []
@@ -141,12 +113,17 @@ extra_rdoc_files:
141
113
  - README.rdoc
142
114
  files:
143
115
  - .document
116
+ - Appraisals
144
117
  - Gemfile
145
118
  - Gemfile.lock
146
119
  - LICENSE
147
120
  - README.rdoc
148
121
  - Rakefile
149
122
  - VERSION
123
+ - gemfiles/rspec-2-11.gemfile
124
+ - gemfiles/rspec-2-11.gemfile.lock
125
+ - gemfiles/rspec-2-8.gemfile
126
+ - gemfiles/rspec-2-8.gemfile.lock
150
127
  - lib/rspec-spies.rb
151
128
  - rspec-spies.gemspec
152
129
  - spec/rspec-spies_spec.rb