r_spec-clone 1.7.1 → 1.7.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc9ae84dcef40b1d832122a6a7bec48cf1bceb8104680cc2de36a9be584fd09d
4
- data.tar.gz: b3d8ad619c723b0b90e82f93791f1d8d927457518e91e8ab36e324e45328fb11
3
+ metadata.gz: 7312f229f5e837553c3bf3b36cb833f8ce1b2182f669e66b4c89bd0f38cd40ed
4
+ data.tar.gz: c3fdc659bb67d21bf34e0d1e3e6c8bc7a0a277ffb7217c53e6762a2580863420
5
5
  SHA512:
6
- metadata.gz: 5dabfdecc24dcb00bfc37a6c5f8afaa57520824ec9c8f08b86088c0f0e2fc3e3bcf9333dd0d3a21746127afa7c3bb072090145270f07c93cb318cc5dc7c9b806
7
- data.tar.gz: 7998dfc059b0a80302ef5d123401ead7c7b2eec0bbfe64a551b8d53d3f8f1ab4f0f5624b787de685ddc1c355805a941bef3159cd2093e760c35ef9adff802ed5
6
+ metadata.gz: f4ebb556448f5bbed16b44a8c2ff643991dd36abf65540349a1b8159ceb6b5c97b2f1081a63f23a47627ccb02f83be45e9155dd5d2199a037372ea1f0516ebcc
7
+ data.tar.gz: f9afb6e9aa7078f8e50ff715d5bc7eb5ac67b24e1038874dc453bd148f30a75581938fbec3a6cd3c8a809ac6b13cdd70ca91368f8208d02735a42a0ce353a8cf
@@ -15,7 +15,6 @@ module RSpec
15
15
  actual: new(message),
16
16
  definition: "raise exception #{self}",
17
17
  error: nil,
18
- expected: self,
19
18
  got: false,
20
19
  negate: true,
21
20
  level: :SHOULD
@@ -18,12 +18,12 @@ module RSpec
18
18
  #
19
19
  # @example
20
20
  # matcher = eq("foo")
21
- # matcher.matches? { "foo" } # => true
22
- # matcher.matches? { "bar" } # => false
21
+ # matcher.match? { "foo" } # => true
22
+ # matcher.match? { "bar" } # => false
23
23
  #
24
24
  # @param expected [#eql?] An expected equivalent object.
25
25
  #
26
- # @return [#matches?] An equivalence matcher.
26
+ # @return [#match?] An equivalence matcher.
27
27
  #
28
28
  # @api public
29
29
  def eq(expected)
@@ -37,12 +37,12 @@ module RSpec
37
37
  # @example
38
38
  # object = "foo"
39
39
  # matcher = be(object)
40
- # matcher.matches? { object } # => true
41
- # matcher.matches? { "foo" } # => false
40
+ # matcher.match? { object } # => true
41
+ # matcher.match? { "foo" } # => false
42
42
  #
43
43
  # @param expected [#equal?] The expected identical object.
44
44
  #
45
- # @return [#matches?] An identity matcher.
45
+ # @return [#match?] An identity matcher.
46
46
  #
47
47
  # @api public
48
48
  def be(expected)
@@ -55,12 +55,12 @@ module RSpec
55
55
  #
56
56
  # @example
57
57
  # matcher = be_within(1).of(41)
58
- # matcher.matches? { 42 } # => true
59
- # matcher.matches? { 43 } # => false
58
+ # matcher.match? { 42 } # => true
59
+ # matcher.match? { 43 } # => false
60
60
  #
61
61
  # @param delta [Numeric] A numeric value.
62
62
  #
63
- # @return [#matches?] A comparison matcher.
63
+ # @return [#match?] A comparison matcher.
64
64
  #
65
65
  # @api public
66
66
  def be_within(delta)
@@ -71,12 +71,12 @@ module RSpec
71
71
  #
72
72
  # @example
73
73
  # matcher = match(/^foo$/)
74
- # matcher.matches? { "foo" } # => true
75
- # matcher.matches? { "bar" } # => false
74
+ # matcher.match? { "foo" } # => true
75
+ # matcher.match? { "bar" } # => false
76
76
  #
77
77
  # @param expected [#match] A regular expression.
78
78
  #
79
- # @return [#matches?] A regular expression matcher.
79
+ # @return [#match?] A regular expression matcher.
80
80
  #
81
81
  # @api public
82
82
  def match(expected)
@@ -87,12 +87,12 @@ module RSpec
87
87
  #
88
88
  # @example
89
89
  # matcher = raise_exception(NameError)
90
- # matcher.matches? { RSpec::Clone::Boom! } # => true
91
- # matcher.matches? { true } # => false
90
+ # matcher.match? { RSpec::Clone::Boom! } # => true
91
+ # matcher.match? { true } # => false
92
92
  #
93
93
  # @param expected [Exception, #to_s] The expected exception name.
94
94
  #
95
- # @return [#matches?] An error matcher.
95
+ # @return [#match?] An error matcher.
96
96
  #
97
97
  # @api public
98
98
  def raise_exception(expected)
@@ -103,12 +103,12 @@ module RSpec
103
103
  #
104
104
  # @example
105
105
  # matcher = be_true
106
- # matcher.matches? { true } # => true
107
- # matcher.matches? { false } # => false
108
- # matcher.matches? { nil } # => false
109
- # matcher.matches? { 4 } # => false
106
+ # matcher.match? { true } # => true
107
+ # matcher.match? { false } # => false
108
+ # matcher.match? { nil } # => false
109
+ # matcher.match? { 4 } # => false
110
110
  #
111
- # @return [#matches?] A `true` matcher.
111
+ # @return [#match?] A `true` matcher.
112
112
  #
113
113
  # @api public
114
114
  def be_true
@@ -119,12 +119,12 @@ module RSpec
119
119
  #
120
120
  # @example
121
121
  # matcher = be_false
122
- # matcher.matches? { false } # => true
123
- # matcher.matches? { true } # => false
124
- # matcher.matches? { nil } # => false
125
- # matcher.matches? { 4 } # => false
122
+ # matcher.match? { false } # => true
123
+ # matcher.match? { true } # => false
124
+ # matcher.match? { nil } # => false
125
+ # matcher.match? { 4 } # => false
126
126
  #
127
- # @return [#matches?] A `false` matcher.
127
+ # @return [#match?] A `false` matcher.
128
128
  #
129
129
  # @api public
130
130
  def be_false
@@ -135,12 +135,12 @@ module RSpec
135
135
  #
136
136
  # @example
137
137
  # matcher = be_nil
138
- # matcher.matches? { nil } # => true
139
- # matcher.matches? { false } # => false
140
- # matcher.matches? { true } # => false
141
- # matcher.matches? { 4 } # => false
138
+ # matcher.match? { nil } # => true
139
+ # matcher.match? { false } # => false
140
+ # matcher.match? { true } # => false
141
+ # matcher.match? { 4 } # => false
142
142
  #
143
- # @return [#matches?] A `nil` matcher.
143
+ # @return [#match?] A `nil` matcher.
144
144
  #
145
145
  # @api public
146
146
  def be_nil
@@ -151,12 +151,12 @@ module RSpec
151
151
  #
152
152
  # @example
153
153
  # matcher = be_an_instance_of(String)
154
- # matcher.matches? { "foo" } # => true
155
- # matcher.matches? { 4 } # => false
154
+ # matcher.match? { "foo" } # => true
155
+ # matcher.match? { 4 } # => false
156
156
  #
157
157
  # @param expected [Class, #to_s] The expected class name.
158
158
  #
159
- # @return [#matches?] A type/class matcher.
159
+ # @return [#match?] A type/class matcher.
160
160
  #
161
161
  # @api public
162
162
  def be_an_instance_of(expected)
@@ -168,30 +168,30 @@ module RSpec
168
168
  # @example
169
169
  # object = []
170
170
  # matcher = change(object, :length).by(1)
171
- # matcher.matches? { object << 1 } # => true
171
+ # matcher.match? { object << 1 } # => true
172
172
  #
173
173
  # object = []
174
174
  # matcher = change(object, :length).by_at_least(1)
175
- # matcher.matches? { object << 1 } # => true
175
+ # matcher.match? { object << 1 } # => true
176
176
  #
177
177
  # object = []
178
178
  # matcher = change(object, :length).by_at_most(1)
179
- # matcher.matches? { object << 1 } # => true
179
+ # matcher.match? { object << 1 } # => true
180
180
  #
181
181
  # object = "foo"
182
182
  # matcher = change(object, :to_s).from("foo").to("FOO")
183
- # matcher.matches? { object.upcase! } # => true
183
+ # matcher.match? { object.upcase! } # => true
184
184
  #
185
185
  # object = "foo"
186
186
  # matcher = change(object, :to_s).to("FOO")
187
- # matcher.matches? { object.upcase! } # => true
187
+ # matcher.match? { object.upcase! } # => true
188
188
  #
189
189
  # @param object [#object_id] An object.
190
190
  # @param method [Symbol] The name of a method.
191
191
  # @param args [Array] A list of arguments.
192
192
  # @param kwargs [Hash] A list of keyword arguments.
193
193
  #
194
- # @return [#matches?] A change matcher.
194
+ # @return [#match?] A change matcher.
195
195
  #
196
196
  # @api public
197
197
  def change(object, method, ...)
@@ -202,11 +202,11 @@ module RSpec
202
202
  #
203
203
  # @example
204
204
  # matcher = satisfy { |value| value == 42 }
205
- # matcher.matches? { 42 } # => true
205
+ # matcher.match? { 42 } # => true
206
206
  #
207
207
  # @param expected [Proc] A block of code.
208
208
  #
209
- # @return [#matches?] A satisfy matcher.
209
+ # @return [#match?] A satisfy matcher.
210
210
  #
211
211
  # @api public
212
212
  def satisfy(&)
@@ -219,8 +219,8 @@ module RSpec
219
219
  #
220
220
  # @example Empty predicate matcher
221
221
  # matcher = be_empty
222
- # matcher.matches? { [] } # => true
223
- # matcher.matches? { [4] } # => false
222
+ # matcher.match? { [] } # => true
223
+ # matcher.match? { [4] } # => false
224
224
  def method_missing(name, ...)
225
225
  return super unless predicate_matcher_name?(name)
226
226
 
@@ -25,7 +25,7 @@ module RSpec
25
25
  # @example _Absolute requirement_ definition
26
26
  # expect { "foo".upcase }.to eq("foo")
27
27
  #
28
- # @param matcher [#matches?] The matcher.
28
+ # @param matcher [#match?] The matcher.
29
29
  #
30
30
  # @raise (see #result)
31
31
  # @return (see #result)
@@ -53,7 +53,7 @@ module RSpec
53
53
  protected
54
54
 
55
55
  # @param test [::TestTube::Base] The state of the experiment.
56
- # @param matcher [#matches?] The matcher.
56
+ # @param matcher [#match?] The matcher.
57
57
  # @param negate [Boolean] The assertion is positive or negative.
58
58
  #
59
59
  # @return [nil] Write a message to STDOUT.
@@ -88,7 +88,7 @@ module RSpec
88
88
  # @param actual [#object_id] The actual value.
89
89
  # @param error [Exception, nil] Any raised exception.
90
90
  # @param got [Boolean, nil] Any returned value.
91
- # @param matcher [#matches?] The matcher.
91
+ # @param matcher [#match?] The matcher.
92
92
  # @param negate [Boolean] The assertion is positive or negative.
93
93
  #
94
94
  # @return [nil] Write a message to STDOUT.
@@ -100,7 +100,6 @@ module RSpec
100
100
  actual:,
101
101
  definition: matcher.to_s,
102
102
  error:,
103
- expected: matcher.expected,
104
103
  got:,
105
104
  negate:,
106
105
  level: :MUST
@@ -21,7 +21,7 @@ module RSpec
21
21
  class Block < Base
22
22
  protected
23
23
 
24
- # @param matcher [#matches?] The matcher.
24
+ # @param matcher [#match?] The matcher.
25
25
  # @param negate [Boolean] The assertion is positive or negative.
26
26
  #
27
27
  # @return (see Base#absolute_requirement)
@@ -21,7 +21,7 @@ module RSpec
21
21
  class Value < Base
22
22
  protected
23
23
 
24
- # @param matcher [#matches?] The matcher.
24
+ # @param matcher [#match?] The matcher.
25
25
  # @param negate [Boolean] The assertion is positive or negative.
26
26
  #
27
27
  # @return (see Base#absolute_requirement)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r_spec-clone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expresenter
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.1
19
+ version: 1.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.1
26
+ version: 1.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: matchi
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.3.2
33
+ version: 4.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.3.2
40
+ version: 4.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test_tube
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.0
47
+ version: 4.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.0
54
+ version: 4.0.0
55
55
  description: A minimalist RSpec clone with all the essentials.
56
56
  email: contact@cyril.email
57
57
  executables: []
@@ -86,7 +86,7 @@ metadata:
86
86
  source_code_uri: https://github.com/cyril/r_spec-clone.rb
87
87
  wiki_uri: https://github.com/cyril/r_spec-clone.rb/wiki
88
88
  rubygems_mfa_required: 'true'
89
- post_install_message:
89
+ post_install_message:
90
90
  rdoc_options: []
91
91
  require_paths:
92
92
  - lib
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubygems_version: 3.4.19
105
- signing_key:
105
+ signing_key:
106
106
  specification_version: 4
107
107
  summary: A minimalist RSpec clone
108
108
  test_files: []