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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa835825e71953a32260e80c58d892f5517ed692
4
- data.tar.gz: 3e66073a9dbefb71be893d00692df5162826105f
3
+ metadata.gz: 4d5dd8b33952790fa1f2558ff0e899938b2e3cab
4
+ data.tar.gz: b54c4711b21c2865f50be1a44fdf1b52b8cb0b36
5
5
  SHA512:
6
- metadata.gz: e967e93899006e4a6c9b419b217f6cac32aee74d60d006724db428e4d574fea2be76499759348808e50f9ba69a7e34d9472aa02eb7b23cca04e56ef9beab6743
7
- data.tar.gz: 96f5ea4360e26175df7dfaae04a9f76c0d1d273ccca0e8939722947e59c7d09fd3a0c3e29eb27035101060cd80d540b90cfb6abcb4b7a40d60d5f8ae5a307a16
6
+ metadata.gz: f7fa51873f771382abdf2731b0862510514a8110985b24ca0e5f33ab2e93cd81e06481c8f82d83e806daa0cd2d6325db62e04290274be6c252c5eaf8599dcd70
7
+ data.tar.gz: 4823b182ad808801c9a0aa9e8aa97cff18221e0e8bb7c77241fb807af96fa5fb6f68ad026a68338d2f0122bc479ee78cf650c5d2dfdfc034439983175973302f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.6.0'
5
+ STRING = '3.7.0'
6
6
  end
7
7
  end
8
8
  end
@@ -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
@@ -299,7 +299,7 @@ module RSpec
299
299
  # @private
300
300
  def description
301
301
  desc = 'yield with args'
302
- desc << "(#{expected_arg_description})" unless @expected.empty?
302
+ desc = "#{desc}(#{expected_arg_description})" unless @expected.empty?
303
303
  desc
304
304
  end
305
305
 
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.6.0
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-05-04 00:00:00.000000000 Z
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.6.0
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.6.0
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.4.5.2
221
+ rubygems_version: 2.6.14
222
222
  signing_key:
223
223
  specification_version: 4
224
- summary: rspec-expectations-3.6.0
224
+ summary: rspec-expectations-3.7.0
225
225
  test_files: []
226
226
  has_rdoc:
metadata.gz.sig CHANGED
Binary file