mocha 2.1.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocha
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Mead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2024-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2_keywords
@@ -58,7 +58,7 @@ files:
58
58
  - lib/mocha/configuration.rb
59
59
  - lib/mocha/debug.rb
60
60
  - lib/mocha/deprecation.rb
61
- - lib/mocha/detection/mini_test.rb
61
+ - lib/mocha/detection/minitest.rb
62
62
  - lib/mocha/detection/test_unit.rb
63
63
  - lib/mocha/error_with_filtered_backtrace.rb
64
64
  - lib/mocha/exception_raiser.rb
@@ -71,9 +71,9 @@ files:
71
71
  - lib/mocha/inspect.rb
72
72
  - lib/mocha/instance_method.rb
73
73
  - lib/mocha/integration/assertion_counter.rb
74
- - lib/mocha/integration/mini_test.rb
75
- - lib/mocha/integration/mini_test/adapter.rb
76
- - lib/mocha/integration/mini_test/exception_translation.rb
74
+ - lib/mocha/integration/minitest.rb
75
+ - lib/mocha/integration/minitest/adapter.rb
76
+ - lib/mocha/integration/minitest/exception_translation.rb
77
77
  - lib/mocha/integration/monkey_patcher.rb
78
78
  - lib/mocha/integration/test_unit.rb
79
79
  - lib/mocha/integration/test_unit/adapter.rb
@@ -132,7 +132,13 @@ homepage: https://mocha.jamesmead.org
132
132
  licenses:
133
133
  - MIT
134
134
  - BSD-2-Clause
135
- metadata: {}
135
+ metadata:
136
+ bug_tracker_uri: https://github.com/freerange/mocha/issues
137
+ changelog_uri: https://github.com/freerange/mocha/blob/main/RELEASE.md
138
+ documentation_uri: https://mocha.jamesmead.org/
139
+ funding_uri: https://github.com/sponsors/floehopper
140
+ homepage_uri: https://mocha.jamesmead.org
141
+ source_code_uri: https://github.com/freerange/mocha
136
142
  post_install_message:
137
143
  rdoc_options: []
138
144
  require_paths:
@@ -141,14 +147,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
147
  requirements:
142
148
  - - ">="
143
149
  - !ruby/object:Gem::Version
144
- version: '2.0'
150
+ version: '2.1'
145
151
  required_rubygems_version: !ruby/object:Gem::Requirement
146
152
  requirements:
147
153
  - - ">="
148
154
  - !ruby/object:Gem::Version
149
155
  version: '0'
150
156
  requirements: []
151
- rubygems_version: 3.4.1
157
+ rubygems_version: 3.5.22
152
158
  signing_key:
153
159
  specification_version: 4
154
160
  summary: Mocking and stubbing library
@@ -1,28 +0,0 @@
1
- require 'mocha/debug'
2
- require 'mocha/detection/mini_test'
3
- require 'mocha/integration/mini_test/adapter'
4
-
5
- module Mocha
6
- module Integration
7
- module MiniTest
8
- def self.activate
9
- target = Detection::MiniTest.testcase
10
- return false unless target
11
-
12
- mini_test_version = Gem::Version.new(Detection::MiniTest.version)
13
- Debug.puts "Detected MiniTest version: #{mini_test_version}"
14
-
15
- unless MiniTest::Adapter.applicable_to?(mini_test_version)
16
- raise 'Versions of minitest earlier than v3.3.0 are not supported.'
17
- end
18
-
19
- unless target < MiniTest::Adapter
20
- Debug.puts "Applying #{MiniTest::Adapter.description}"
21
- target.send(:include, MiniTest::Adapter)
22
- end
23
-
24
- true
25
- end
26
- end
27
- end
28
- end