mocha 0.12.3 → 0.12.4
Sign up to get free protection for your applications and to get access to all the features.
- data/RELEASE.rdoc +3 -0
- data/lib/mocha/integration/mini_test.rb +3 -3
- data/lib/mocha/integration/mini_test/{version_330.rb → version_340.rb} +2 -2
- data/lib/mocha/integration/test_unit.rb +3 -3
- data/lib/mocha/integration/test_unit/{gem_version_230_to_251.rb → gem_version_230_to_252.rb} +2 -2
- data/lib/mocha/version.rb +1 -1
- metadata +13 -13
data/RELEASE.rdoc
CHANGED
@@ -13,7 +13,7 @@ if !MiniTest::Unit::TestCase.ancestors.include?(Mocha::API)
|
|
13
13
|
require 'mocha/integration/mini_test/version_230_to_2101'
|
14
14
|
require 'mocha/integration/mini_test/version_2110_to_2111'
|
15
15
|
require 'mocha/integration/mini_test/version_2112_to_320'
|
16
|
-
require 'mocha/integration/mini_test/
|
16
|
+
require 'mocha/integration/mini_test/version_340'
|
17
17
|
|
18
18
|
module MiniTest
|
19
19
|
class Unit
|
@@ -50,8 +50,8 @@ if !MiniTest::Unit::TestCase.ancestors.include?(Mocha::API)
|
|
50
50
|
include Mocha::Integration::MiniTest::Version2110To2111
|
51
51
|
elsif Gem::Requirement.new('>= 2.11.2', '<= 3.2.0').satisfied_by?(mini_test_version)
|
52
52
|
include Mocha::Integration::MiniTest::Version2112To320
|
53
|
-
elsif Gem::Requirement.new('3.
|
54
|
-
include Mocha::Integration::MiniTest::
|
53
|
+
elsif Gem::Requirement.new('3.4.0').satisfied_by?(mini_test_version)
|
54
|
+
include Mocha::Integration::MiniTest::Version340
|
55
55
|
else
|
56
56
|
$stderr.puts "*** No Mocha monkey-patch for MiniTest version ***" if $mocha_options['debug']
|
57
57
|
end
|
@@ -7,9 +7,9 @@ module Mocha
|
|
7
7
|
|
8
8
|
module MiniTest
|
9
9
|
|
10
|
-
module
|
10
|
+
module Version340
|
11
11
|
def self.included(mod)
|
12
|
-
$stderr.puts "Monkey patching MiniTest v3.
|
12
|
+
$stderr.puts "Monkey patching MiniTest v3.4.0" if $mocha_options['debug']
|
13
13
|
end
|
14
14
|
def run runner
|
15
15
|
trap "INFO" do
|
@@ -6,7 +6,7 @@ if !Test::Unit::TestCase.ancestors.include?(Mocha::API)
|
|
6
6
|
require 'mocha/integration/test_unit/gem_version_200'
|
7
7
|
require 'mocha/integration/test_unit/gem_version_201_to_202'
|
8
8
|
require 'mocha/integration/test_unit/gem_version_203_to_220'
|
9
|
-
require 'mocha/integration/test_unit/
|
9
|
+
require 'mocha/integration/test_unit/gem_version_230_to_252'
|
10
10
|
require 'mocha/integration/test_unit/ruby_version_185_and_below'
|
11
11
|
require 'mocha/integration/test_unit/ruby_version_186_and_above'
|
12
12
|
|
@@ -43,8 +43,8 @@ if !Test::Unit::TestCase.ancestors.include?(Mocha::API)
|
|
43
43
|
include Mocha::Integration::TestUnit::GemVersion201To202
|
44
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', '<= 2.5.
|
47
|
-
include Mocha::Integration::TestUnit::
|
46
|
+
elsif Gem::Requirement.new('>= 2.3.0', '<= 2.5.2').satisfied_by?(test_unit_version)
|
47
|
+
include Mocha::Integration::TestUnit::GemVersion230To252
|
48
48
|
else
|
49
49
|
$stderr.puts "*** No Mocha monkey-patch for Test::Unit version ***" if $mocha_options['debug']
|
50
50
|
end
|
data/lib/mocha/integration/test_unit/{gem_version_230_to_251.rb → gem_version_230_to_252.rb}
RENAMED
@@ -8,9 +8,9 @@ module Mocha
|
|
8
8
|
|
9
9
|
module TestUnit
|
10
10
|
|
11
|
-
module
|
11
|
+
module GemVersion230To252
|
12
12
|
def self.included(mod)
|
13
|
-
$stderr.puts "Monkey patching Test::Unit gem >= v2.3.0 and <= v2.5.
|
13
|
+
$stderr.puts "Monkey patching Test::Unit gem >= v2.3.0 and <= v2.5.2" if $mocha_options['debug']
|
14
14
|
end
|
15
15
|
def run(result)
|
16
16
|
assertion_counter = AssertionCounter.new(result)
|
data/lib/mocha/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mocha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: metaclass
|
16
|
-
requirement: &
|
16
|
+
requirement: &70189979581320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.0.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70189979581320
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70189979580000 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70189979580000
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: introspection
|
38
|
-
requirement: &
|
38
|
+
requirement: &70189979579540 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.0.1
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70189979579540
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: yard
|
49
|
-
requirement: &
|
49
|
+
requirement: &70189979579160 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70189979579160
|
58
58
|
description: Mocking and stubbing library with JMock/SchMock syntax, which allows
|
59
59
|
mocking and stubbing of methods on real (non-mock) classes.
|
60
60
|
email: mocha-developer@googlegroups.com
|
@@ -122,13 +122,13 @@ files:
|
|
122
122
|
- lib/mocha/integration/mini_test/version_2110_to_2111.rb
|
123
123
|
- lib/mocha/integration/mini_test/version_2112_to_320.rb
|
124
124
|
- lib/mocha/integration/mini_test/version_230_to_2101.rb
|
125
|
-
- lib/mocha/integration/mini_test/
|
125
|
+
- lib/mocha/integration/mini_test/version_340.rb
|
126
126
|
- lib/mocha/integration/test_unit.rb
|
127
127
|
- lib/mocha/integration/test_unit/assertion_counter.rb
|
128
128
|
- lib/mocha/integration/test_unit/gem_version_200.rb
|
129
129
|
- lib/mocha/integration/test_unit/gem_version_201_to_202.rb
|
130
130
|
- lib/mocha/integration/test_unit/gem_version_203_to_220.rb
|
131
|
-
- lib/mocha/integration/test_unit/
|
131
|
+
- lib/mocha/integration/test_unit/gem_version_230_to_252.rb
|
132
132
|
- lib/mocha/integration/test_unit/ruby_version_185_and_below.rb
|
133
133
|
- lib/mocha/integration/test_unit/ruby_version_186_and_above.rb
|
134
134
|
- lib/mocha/is_a.rb
|
@@ -311,7 +311,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
311
311
|
version: '0'
|
312
312
|
segments:
|
313
313
|
- 0
|
314
|
-
hash:
|
314
|
+
hash: -221307139529250084
|
315
315
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
316
|
none: false
|
317
317
|
requirements:
|