rspec-expectations 3.11.1 → 3.12.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: '08d59721f87da7bbd0a7c28b23ee44289f3a0f876675d23f08db3753192524e6'
4
- data.tar.gz: ef0d8b4194fab020501b5326cdf8b929d772e3e1c5f37bf89274100ed4f534c7
3
+ metadata.gz: 1a13980ff2867935d30d19955e16af517ff6d187517c29cd3a57c036f780fa36
4
+ data.tar.gz: 88108033412bb454bde2cb317da8960b9c279ad7bd5a2e88480931907520b2d3
5
5
  SHA512:
6
- metadata.gz: 9a20276c87a051f5bbe1a8d74b732cb160f2c93f2631b0805118946739379445e88ece39b4deafaeefff65df4b003d3f5f899a2a71dd190e6c82d0c86e63a0bc
7
- data.tar.gz: 49b24958098b1e69a9adb1f6b162dfcf945ea96f5a17d5b725cf2488e544d39d9bdcde7fe4c6f2c988653f9f953885e3e603428f83a61032a8bbeb6fa6cbc0f2
6
+ metadata.gz: a181a0a4cb517efc416479b6dd4fa922b18c67ace3f4ee451666f10cceb97c00497cb5758f2eb7eb2488590a78628718cd5fc3f04e7bfb59e4aa782e358381c7
7
+ data.tar.gz: 5e9e2ad825b26c53616944d53e3e842ea4c1a14b6f61f1e6cb671329dc0440fac963fae16a2e01912a69cbb4ea26915324aa9805ba4cbf92dcb71a9fee805b43
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,5 +1,22 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.1...3-11-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.12.1...3-12-maintenance)
3
+
4
+ ### 3.12.1 / 2022-12-16
5
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.12.0...v3.12.1)
6
+
7
+ Bug Fixes:
8
+
9
+ * Pass keyword arguments through to aliased (and thus negated) matchers. (Jon Rowe, #1394)
10
+ * When handling failures in an aggregated_failures block (or example) prevent
11
+ the failure list leaking out. (Maciek Rząsa, #1392)
12
+
13
+ ### 3.12.0 / 2022-10-26
14
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.1...v3.12.0)
15
+
16
+ Enhancements:
17
+
18
+ * Add `an_array_matching` alias for `match_array` to improve readability as an argument
19
+ matcher. (Mark Schneider, #1361)
3
20
 
4
21
  ### 3.11.1 / 2022-09-12
5
22
  [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.11.0...v3.11.1)
@@ -4,6 +4,21 @@ module RSpec
4
4
  class FailureAggregator
5
5
  attr_reader :block_label, :metadata
6
6
 
7
+ # @private
8
+ class AggregatedFailure
9
+ # @private
10
+ MESSAGE =
11
+ 'AggregatedFailure: This method caused a failure which has been ' \
12
+ 'supressed to be aggregated into our failure report by returning ' \
13
+ 'this value, further errors can be ignored.'
14
+
15
+ def inspect
16
+ MESSAGE
17
+ end
18
+ end
19
+
20
+ AGGREGATED_FAILURE = AggregatedFailure.new
21
+
7
22
  def aggregate
8
23
  RSpec::Support.with_failure_notifier(self) do
9
24
  begin
@@ -48,6 +63,8 @@ module RSpec
48
63
  @seen_source_ids[source_id] = true
49
64
  assign_backtrace(failure) unless failure.backtrace
50
65
  failures << failure
66
+
67
+ AGGREGATED_FAILURE
51
68
  end
52
69
 
53
70
  private
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.11.1'
5
+ STRING = '3.12.1'
6
6
  end
7
7
  end
8
8
  end
@@ -40,6 +40,7 @@ module RSpec
40
40
  matcher.matcher_name = new_name if matcher.respond_to?(:matcher_name=)
41
41
  klass.new(matcher, description_override)
42
42
  end
43
+ ruby2_keywords new_name if respond_to?(:ruby2_keywords, true)
43
44
  end
44
45
 
45
46
  # Defines a negated matcher. The returned matcher's `description` and `failure_message`
@@ -715,6 +715,9 @@ module RSpec
715
715
  def match_array(items)
716
716
  contain_exactly(*items)
717
717
  end
718
+ alias_matcher :an_array_matching, :match_array do |desc|
719
+ desc.sub("contain exactly", "an array containing exactly")
720
+ end
718
721
 
719
722
  # With no arg, passes if the block outputs `to_stdout` or `to_stderr`.
720
723
  # With a string, passes if the block outputs that specific string `to_stdout` or `to_stderr`.
data.tar.gz.sig CHANGED
Binary file
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.11.1
4
+ version: 3.12.1
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: 2022-09-12 00:00:00.000000000 Z
48
+ date: 2022-12-16 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.11.0
56
+ version: 3.12.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.11.0
63
+ version: 3.12.0
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: diff-lcs
66
66
  requirement: !ruby/object:Gem::Requirement
@@ -203,7 +203,7 @@ licenses:
203
203
  - MIT
204
204
  metadata:
205
205
  bug_tracker_uri: https://github.com/rspec/rspec-expectations/issues
206
- changelog_uri: https://github.com/rspec/rspec-expectations/blob/v3.11.1/Changelog.md
206
+ changelog_uri: https://github.com/rspec/rspec-expectations/blob/v3.12.1/Changelog.md
207
207
  documentation_uri: https://rspec.info/documentation/
208
208
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
209
209
  source_code_uri: https://github.com/rspec/rspec-expectations
@@ -223,8 +223,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  requirements: []
226
- rubygems_version: 3.3.3
226
+ rubygems_version: 3.3.26
227
227
  signing_key:
228
228
  specification_version: 4
229
- summary: rspec-expectations-3.11.1
229
+ summary: rspec-expectations-3.12.1
230
230
  test_files: []
metadata.gz.sig CHANGED
Binary file