mocha 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- data/RELEASE.rdoc +4 -1
- data/lib/mocha/integration/mini_test.rb +8 -8
- data/lib/mocha/integration/test_unit.rb +5 -5
- data/lib/mocha/version.rb +1 -1
- metadata +4 -4
data/RELEASE.rdoc
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
= 0.10.
|
1
|
+
= 0.10.3 ()
|
2
|
+
* Fix for issue #57. Gem::Requirement#=~ was only added in rubygems v1.8.0, but Object#=~ means the result of various monkey-patching checks is always false/nil for earlier versions of rubygems. However, the method it aliases #satisfied_by? has existed since Gem::Dependency was extracted from Gem::Version in rubygems v0.9.4.4, so it's much safer to use that. Thanks to fguillen for reporting and helping with diagnosis.
|
3
|
+
|
4
|
+
= 0.10.2 (e05d9a555f1cf97c5961900dab0d884e9753257b)
|
2
5
|
* Merge pull request #53. Unstubbing a method should not remove expectations for other stubbed methods. Fixes #52. Thanks to saikat.
|
3
6
|
|
4
7
|
= 0.10.1 (f631a4ba22c6ed4929c52b0520311a9a84034a20)
|
@@ -29,20 +29,20 @@ if !MiniTest::Unit::TestCase.ancestors.include?(Mocha::API)
|
|
29
29
|
|
30
30
|
$stderr.puts "Detected MiniTest version: #{mini_test_version}" if $options['debug']
|
31
31
|
|
32
|
-
if Gem::Requirement.new('>= 1.3.0', '<= 1.3.1')
|
32
|
+
if Gem::Requirement.new('>= 1.3.0', '<= 1.3.1').satisfied_by?(mini_test_version)
|
33
33
|
include Mocha::Integration::MiniTest::Version13
|
34
|
-
elsif Gem::Requirement.new('1.4.0')
|
34
|
+
elsif Gem::Requirement.new('1.4.0').satisfied_by?(mini_test_version)
|
35
35
|
include Mocha::Integration::MiniTest::Version140
|
36
|
-
elsif Gem::Requirement.new('1.4.1')
|
36
|
+
elsif Gem::Requirement.new('1.4.1').satisfied_by?(mini_test_version)
|
37
37
|
include Mocha::Integration::MiniTest::Version141
|
38
|
-
elsif Gem::Requirement.new('>= 1.4.2', '<= 1.7.2')
|
38
|
+
elsif Gem::Requirement.new('>= 1.4.2', '<= 1.7.2').satisfied_by?(mini_test_version)
|
39
39
|
include Mocha::Integration::MiniTest::Version142To172
|
40
|
-
elsif Gem::Requirement.new('2.0.0')
|
40
|
+
elsif Gem::Requirement.new('2.0.0').satisfied_by?(mini_test_version)
|
41
41
|
include Mocha::Integration::MiniTest::Version200
|
42
|
-
elsif Gem::Requirement.new('>= 2.0.1', '<= 2.2.2')
|
42
|
+
elsif Gem::Requirement.new('>= 2.0.1', '<= 2.2.2').satisfied_by?(mini_test_version)
|
43
43
|
include Mocha::Integration::MiniTest::Version201To222
|
44
|
-
elsif Gem::Requirement.new('>= 2.3.0')
|
45
|
-
$stderr.puts "*** MiniTest integration has not been verified but patching anyway ***" if (Gem::Requirement.new('> 2.6.2')
|
44
|
+
elsif Gem::Requirement.new('>= 2.3.0').satisfied_by?(mini_test_version)
|
45
|
+
$stderr.puts "*** MiniTest integration has not been verified but patching anyway ***" if (Gem::Requirement.new('> 2.6.2').satisfied_by?(mini_test_version)) && $options['debug']
|
46
46
|
include Mocha::Integration::MiniTest::Version230To262
|
47
47
|
else
|
48
48
|
$stderr.puts "*** No Mocha integration for MiniTest version ***" if $options['debug']
|
@@ -37,14 +37,14 @@ if !Test::Unit::TestCase.ancestors.include?(Mocha::API)
|
|
37
37
|
else
|
38
38
|
include Mocha::Integration::TestUnit::RubyVersion186AndAbove
|
39
39
|
end
|
40
|
-
elsif Gem::Requirement.new('2.0.0')
|
40
|
+
elsif Gem::Requirement.new('2.0.0').satisfied_by?(test_unit_version)
|
41
41
|
include Mocha::Integration::TestUnit::GemVersion200
|
42
|
-
elsif Gem::Requirement.new('>= 2.0.1', '<= 2.0.2')
|
42
|
+
elsif Gem::Requirement.new('>= 2.0.1', '<= 2.0.2').satisfied_by?(test_unit_version)
|
43
43
|
include Mocha::Integration::TestUnit::GemVersion201To202
|
44
|
-
elsif Gem::Requirement.new('>= 2.0.3', '<= 2.2.0')
|
44
|
+
elsif Gem::Requirement.new('>= 2.0.3', '<= 2.2.0').satisfied_by?(test_unit_version)
|
45
45
|
include Mocha::Integration::TestUnit::GemVersion203To220
|
46
|
-
elsif Gem::Requirement.new('>= 2.3.0')
|
47
|
-
$stderr.puts "*** Test::Unit integration has not been verified but patching anyway ***" if (Gem::Requirement.new('> 2.4.0')
|
46
|
+
elsif Gem::Requirement.new('>= 2.3.0').satisfied_by?(test_unit_version)
|
47
|
+
$stderr.puts "*** Test::Unit integration has not been verified but patching anyway ***" if (Gem::Requirement.new('> 2.4.0').satisfied_by?(test_unit_version)) && $options['debug']
|
48
48
|
include Mocha::Integration::TestUnit::GemVersion230To240
|
49
49
|
else
|
50
50
|
$stderr.puts "*** No Mocha integration for Test::Unit version ***" if $options['debug']
|
data/lib/mocha/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mocha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 10
|
9
|
-
-
|
10
|
-
version: 0.10.
|
9
|
+
- 3
|
10
|
+
version: 0.10.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Mead
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-20 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|