rspec-expectations 3.6.0 → 3.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +11 -0
- data/lib/rspec/expectations/version.rb +1 -1
- data/lib/rspec/matchers.rb +10 -4
- data/lib/rspec/matchers/built_in/base_matcher.rb +2 -2
- data/lib/rspec/matchers/built_in/be.rb +1 -1
- data/lib/rspec/matchers/built_in/respond_to.rb +1 -1
- data/lib/rspec/matchers/built_in/yield.rb +1 -1
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d5dd8b33952790fa1f2558ff0e899938b2e3cab
|
4
|
+
data.tar.gz: b54c4711b21c2865f50be1a44fdf1b52b8cb0b36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7fa51873f771382abdf2731b0862510514a8110985b24ca0e5f33ab2e93cd81e06481c8f82d83e806daa0cd2d6325db62e04290274be6c252c5eaf8599dcd70
|
7
|
+
data.tar.gz: 4823b182ad808801c9a0aa9e8aa97cff18221e0e8bb7c77241fb807af96fa5fb6f68ad026a68338d2f0122bc479ee78cf650c5d2dfdfc034439983175973302f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
### 3.8 Development
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.7.0...master)
|
3
|
+
|
4
|
+
### 3.7.0 / 2017-10-17
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0...v3.7.0)
|
6
|
+
|
7
|
+
Enhancements:
|
8
|
+
|
9
|
+
* Improve compatibility with `--enable-frozen-string-literal` option
|
10
|
+
on Ruby 2.3+. (Pat Allan, #997)
|
11
|
+
|
1
12
|
### 3.6.0 / 2017-05-04
|
2
13
|
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0.beta2...v3.6.0)
|
3
14
|
|
data/lib/rspec/matchers.rb
CHANGED
@@ -241,6 +241,16 @@ module RSpec
|
|
241
241
|
module Matchers
|
242
242
|
extend ::RSpec::Matchers::DSL
|
243
243
|
|
244
|
+
# @!macro [attach] alias_matcher
|
245
|
+
# @!parse
|
246
|
+
# alias $1 $2
|
247
|
+
# @!visibility private
|
248
|
+
# We define this override here so we can attach a YARD macro to it.
|
249
|
+
# It ensures that our docs list all the matcher aliases.
|
250
|
+
def self.alias_matcher(*args, &block)
|
251
|
+
super(*args, &block)
|
252
|
+
end
|
253
|
+
|
244
254
|
# @!method self.alias_matcher(new_name, old_name, options={}, &description_override)
|
245
255
|
# Extended from {RSpec::Matchers::DSL#alias_matcher}.
|
246
256
|
|
@@ -296,10 +306,6 @@ module RSpec
|
|
296
306
|
Expectations::FailureAggregator.new(label, metadata).aggregate(&block)
|
297
307
|
end
|
298
308
|
|
299
|
-
# @!macro [attach] alias_matcher
|
300
|
-
# @!parse
|
301
|
-
# alias $1 $2
|
302
|
-
|
303
309
|
# Passes if actual is truthy (anything but false or nil)
|
304
310
|
def be_truthy
|
305
311
|
BuiltIn::BeTruthy.new
|
@@ -165,7 +165,7 @@ module RSpec
|
|
165
165
|
# you often only need to override `description`.
|
166
166
|
# @return [String]
|
167
167
|
def failure_message
|
168
|
-
"expected #{description_of @actual} to #{description}"
|
168
|
+
"expected #{description_of @actual} to #{description}".dup
|
169
169
|
end
|
170
170
|
|
171
171
|
# @api private
|
@@ -174,7 +174,7 @@ module RSpec
|
|
174
174
|
# you often only need to override `description`.
|
175
175
|
# @return [String]
|
176
176
|
def failure_message_when_negated
|
177
|
-
"expected #{description_of @actual} not to #{description}"
|
177
|
+
"expected #{description_of @actual} not to #{description}".dup
|
178
178
|
end
|
179
179
|
|
180
180
|
# @private
|
@@ -270,7 +270,7 @@ module RSpec
|
|
270
270
|
def validity_message
|
271
271
|
return nil if predicate_accessible?
|
272
272
|
|
273
|
-
msg = "expected #{actual_formatted} to respond to `#{predicate}`"
|
273
|
+
msg = "expected #{actual_formatted} to respond to `#{predicate}`".dup
|
274
274
|
|
275
275
|
if private_predicate?
|
276
276
|
msg << " but `#{predicate}` is a private method"
|
@@ -131,7 +131,7 @@ module RSpec
|
|
131
131
|
end
|
132
132
|
|
133
133
|
def with_arity
|
134
|
-
str = ''
|
134
|
+
str = ''.dup
|
135
135
|
str << " with #{with_arity_string}" if @expected_arity
|
136
136
|
str << " #{str.length == 0 ? 'with' : 'and'} #{with_keywords_string}" if @expected_keywords && @expected_keywords.count > 0
|
137
137
|
str << " #{str.length == 0 ? 'with' : 'and'} unlimited arguments" if @unlimited_arguments
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-expectations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -45,7 +45,7 @@ cert_chain:
|
|
45
45
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
46
46
|
F3MdtaDehhjC
|
47
47
|
-----END CERTIFICATE-----
|
48
|
-
date: 2017-
|
48
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
49
49
|
dependencies:
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: rspec-support
|
@@ -53,14 +53,14 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 3.
|
56
|
+
version: 3.7.0
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 3.
|
63
|
+
version: 3.7.0
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: diff-lcs
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,9 +218,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
220
|
rubyforge_project:
|
221
|
-
rubygems_version: 2.
|
221
|
+
rubygems_version: 2.6.14
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
|
-
summary: rspec-expectations-3.
|
224
|
+
summary: rspec-expectations-3.7.0
|
225
225
|
test_files: []
|
226
226
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|