mocha 0.12.3 → 0.12.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ = 0.12.4
2
+ * Officially support minitest v3.4.0 & test-unit v2.5.2 (still monkey-patching).
3
+
1
4
  = 0.12.3
2
5
  * Revert rename of undocumented internal module since it turns out Rails/ActiveSupport is relying on its existence.
3
6
 
@@ -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/version_330'
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.3.0').satisfied_by?(mini_test_version)
54
- include Mocha::Integration::MiniTest::Version330
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 Version330
10
+ module Version340
11
11
  def self.included(mod)
12
- $stderr.puts "Monkey patching MiniTest v3.3.0" if $mocha_options['debug']
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/gem_version_230_to_251'
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.1').satisfied_by?(test_unit_version)
47
- include Mocha::Integration::TestUnit::GemVersion230To251
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
@@ -8,9 +8,9 @@ module Mocha
8
8
 
9
9
  module TestUnit
10
10
 
11
- module GemVersion230To251
11
+ module GemVersion230To252
12
12
  def self.included(mod)
13
- $stderr.puts "Monkey patching Test::Unit gem >= v2.3.0 and <= v2.5.1" if $mocha_options['debug']
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)
@@ -1,3 +1,3 @@
1
1
  module Mocha
2
- VERSION = "0.12.3"
2
+ VERSION = "0.12.4"
3
3
  end
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.3
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-08-06 00:00:00.000000000 Z
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: &70332590701460 !ruby/object:Gem::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: *70332590701460
24
+ version_requirements: *70189979581320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70332590700140 !ruby/object:Gem::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: *70332590700140
35
+ version_requirements: *70189979580000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: introspection
38
- requirement: &70332590699680 !ruby/object:Gem::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: *70332590699680
46
+ version_requirements: *70189979579540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yard
49
- requirement: &70332590699300 !ruby/object:Gem::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: *70332590699300
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/version_330.rb
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/gem_version_230_to_251.rb
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: 1181077861632891225
314
+ hash: -221307139529250084
315
315
  required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  none: false
317
317
  requirements: