mocha 2.0.0.alpha.1 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97e7753fb6b5d10c44315d7b40ab4004dd1ee6224af909d983e2553d6541701b
4
- data.tar.gz: 917eff26dfcbdfa01dc4c1befcb43556075d87b0b9929ac055498e2a9ec4e622
3
+ metadata.gz: 81bbdc1243eca4d6ca258b07e9738745a329022a6c70951f5cf5e613a7ac5ee4
4
+ data.tar.gz: 398d1b4de44a9caaaa3a602b346e5f392356d2347127f8c70f08a0950d31b335
5
5
  SHA512:
6
- metadata.gz: 9421147bdeb37a99308e577e284248f0c2ddad246772d4822a0d97c11ed4e393e12f5157be6832d0bf7ab58b60227910282b5ec315615476b27ecc7ff67523fc
7
- data.tar.gz: 1a63c4651b41de00f65ed771f1b22d0e6b63c1d795b9c36b195889fac3bd55168399d0b3a7cc6dfae77fcfdbfffce8098e8f5b6a8cef4fc49f481a533d844c6d
6
+ metadata.gz: 607d34cccbe3a09d7986a435b88e30612b09832e658b97ae0b7893480bc466a20cd88f47cfb818b607ed71dc6ddd29854f75ff67a9d57df20075c938f0b35ecf
7
+ data.tar.gz: 8cac0563afe03c8182b5a52f14c7f1419c9024e6bceca570eeca899fb1fb139ca74dbacead46394330562f99c12ad608f07e391c48624953e23463ff076e8729
data/Gemfile CHANGED
@@ -28,5 +28,3 @@ if ENV['MOCHA_GENERATE_DOCS']
28
28
  gem 'redcarpet'
29
29
  gem 'yard'
30
30
  end
31
-
32
- gem 'ruby2_keywords', '~> 0.0.5'
data/README.md CHANGED
@@ -302,6 +302,12 @@ See the [documentation](https://mocha.jamesmead.org/Mocha/Configuration.html) fo
302
302
  Only the following values are currently recognized and have an effect:
303
303
  * `debug`: Enables a debug mode which will output backtraces for each deprecation warning. This is useful for finding where in the test suite the deprecated calls are.
304
304
 
305
+ ### Semantic versioning
306
+
307
+ * Every effort is made to comply with [semantic versioning](https://semver.org/).
308
+ * However, this only applies to the behaviour documented in the public API.
309
+ * The documented public API does *not* include the content or format of messsages displayed to the user, e.g. assertion failure messages.
310
+
305
311
  ### Useful Links
306
312
 
307
313
  * [Official Documentation](https://mocha.jamesmead.org)
data/RELEASE.md CHANGED
@@ -1,16 +1,12 @@
1
1
  # Release Notes
2
2
 
3
- ## 2.0.0.alpha.1
3
+ ## 2.0.1
4
4
 
5
5
  ### External changes
6
6
 
7
- * Improve strict keyword argument matching deprecation warning by including the source location of the stub definition (77c0d4cc)
8
-
9
- ### Internal changes
7
+ * Fix `LoadError` when using v2.0.0 with Ruby < v2.7 by moving declaration of runtime dependency on `ruby2_keywords` gem from `Gemfile` to `mocha.gemspec` - thanks to @mishina2228 for reporting (#581, #582, cdeb0356)
10
8
 
11
- * Disable Style/Semicolon cop globally (8cd0b705)
12
-
13
- ## 2.0.0.alpha
9
+ ## 2.0.0
14
10
 
15
11
  ### External changes
16
12
 
@@ -29,6 +25,8 @@ from the Ruby v1.8 standard library are no longer supported (#540,969f4845)
29
25
  * Expand `Expectation#with` docs re keyword arguments (fed6808d)
30
26
  * Improve docs for `strict_keyword_argument_matching` (8d8f881d)
31
27
  * Remove deprecated Rails plugin `init.rb` file (1c617175)
28
+ * Improve strict keyword argument matching deprecation warning by including the source location of the stub definition (77c0d4cc)
29
+ * Add README section re semantic versioning (00758246)
32
30
 
33
31
  ### Internal changes
34
32
 
@@ -41,6 +39,18 @@ from the Ruby v1.8 standard library are no longer supported (#540,969f4845)
41
39
  * More consistent Test::Unit & Minitest integration (27dd3817)
42
40
  * Remove redundant `require` statements (d82218a8,fa17b114)
43
41
  * Add missing `require` statement (73493761)
42
+ * Disable Style/Semicolon cop globally (8cd0b705)
43
+
44
+ ## 1.16.0
45
+
46
+ ### External changes
47
+
48
+ * Default `Configuration#reinstate_undocumented_behaviour_from_v1_9=` to `false` (6fcaf947)
49
+ * Deprecate `Configuration#reinstate_undocumented_behaviour_from_v1_9=` (a797c5fd)
50
+
51
+ ### Internal changes
52
+
53
+ * Remove redundant deprecation disabling in MockTest (dc8ca969)
44
54
 
45
55
  ## 1.15.0
46
56
 
@@ -252,11 +252,11 @@ module Mocha
252
252
 
253
253
  # Perform strict keyword argument comparison. Only supported in Ruby >= v2.7.
254
254
  #
255
- # When this option is set to +false+ a positional +Hash+ and a set of keyword arguments are treated the same during comparison, which can lead to false negatives in Ruby >= v3.0 (see examples below). However, a deprecation warning will be displayed if a positional +Hash+ matches a set of keyword arguments or vice versa. This is because {#strict_keyword_argument_matching=} will default to +true+ in the future.
255
+ # When this option is set to +false+ a positional +Hash+ and a set of keyword arguments are treated the same during comparison, which can lead to misleading passing tests in Ruby >= v3.0 (see examples below). However, a deprecation warning will be displayed if a positional +Hash+ matches a set of keyword arguments or vice versa. This is because {#strict_keyword_argument_matching=} will default to +true+ in the future.
256
256
  #
257
257
  # For more details on keyword arguments in Ruby v3, refer to {https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0 this article}.
258
258
  #
259
- # Note that +Hash+-related matchers such as {ParameterMatchers#has_value} or {ParameterMatchers#has_key} will still treat a positional +Hash+ and a set of keyword arguments the same, so false negatives are still possible when they are used.
259
+ # Note that +Hash+-related matchers such as {ParameterMatchers#has_value} or {ParameterMatchers#has_key} will still treat a positional +Hash+ and a set of keyword arguments the same, so misleading passing tests are still possible when they are used.
260
260
  #
261
261
  # This configuration option is +false+ by default to enable gradual adoption, but will be +true+ by default in the future.
262
262
  #
data/lib/mocha/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mocha
2
- VERSION = '2.0.0.alpha.1'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
data/mocha.gemspec CHANGED
@@ -21,4 +21,6 @@ Gem::Specification.new do |s|
21
21
  s.homepage = 'https://mocha.jamesmead.org'
22
22
  s.require_paths = ['lib']
23
23
  s.summary = 'Mocking and stubbing library'
24
+
25
+ s.add_runtime_dependency 'ruby2_keywords', '>= 0.0.5'
24
26
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocha
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Mead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-18 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ruby2_keywords
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.5
13
27
  description: Mocking and stubbing library with JMock/SchMock syntax, which allows
14
28
  mocking and stubbing of methods on real (non-mock) classes.
15
29
  email: mocha-developer@googlegroups.com
@@ -132,9 +146,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
146
  version: '2.0'
133
147
  required_rubygems_version: !ruby/object:Gem::Requirement
134
148
  requirements:
135
- - - ">"
149
+ - - ">="
136
150
  - !ruby/object:Gem::Version
137
- version: 1.3.1
151
+ version: '0'
138
152
  requirements: []
139
153
  rubygems_version: 3.3.3
140
154
  signing_key: