rspec-expectations 3.13.4 → 3.13.6

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: c0eb448ddd64a8046c3aa3ea0792f4f8debdef6145a7e82a4e6631bf3f0e0fd1
4
- data.tar.gz: c6f13e803efa869f3fc324bf641517acd6d2ad5d603aebe9e17ada09fe4a8004
3
+ metadata.gz: ddba94c470a00afd22914d172b114934e424fd5555521f3f27c5065e842e166b
4
+ data.tar.gz: f84761c99dfcd5881a23968dfa14bac2cbcb782600f4426a69c2af080e312c5d
5
5
  SHA512:
6
- metadata.gz: 2538dd5c3d20e09e95b544951a3fb4ff5f548df05e6b43ac08845514bc9f16d9c40565c324ba7c084548ad5cbedfa4a831ec4e55912f2356e5dd2faef87e0966
7
- data.tar.gz: c1da8597d452276695dd0e9fd66941c0b209db20c4774975c2c1d5c4729e0b1c04d9593445c27d3f91d00a0847391f2ab3795e076246f79075150e6e66359efd
6
+ metadata.gz: 8194f0dd8b4d81a328b5b7e76edc67bf5a1f7f6b592e44f81413c5c3b5551b5986df22591d2c7f7df54d758e97c6a9f99b8f934ed89a6f9c27f5a07af54fae01
7
+ data.tar.gz: 94fc2f639fd7a741341266517776ae03a736ff2dd834e52b56327a07ff44922f8f8feb40b49276d34babe9bbb3a3b946acb5cdbb371f718bff525c3ee95da8ed
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,7 +1,24 @@
1
1
  ### Development
2
- [Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.4...3-13-maintenance)
2
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.6...3-13-maintenance)
3
+
4
+ ### 3.13.6 / 2026-11-06
5
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.5...rspec-expectations-v3.13.6)
6
+
7
+ Bug Fixes:
8
+
9
+ * Declare unused block arguments to prevent a warning being issued. (Jon Rowe, rspec/rspec#349)
10
+ * Make `include` short circuit when comparing strings to things which can't be co-erced into strings.
11
+ (Don Yin, rspec/rspec#354)
12
+
13
+ ### 3.13.5 / 2025-05-27
14
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.4...rspec-expectations-v3.13.5)
15
+
16
+ Bug Fixes:
17
+
18
+ * Fix links in gemspec to point to the monorepo / homepage.
3
19
 
4
20
  ### 3.13.4 / 2025-05-01
21
+ [Full Changelog](https://github.com/rspec/rspec/compare/rspec-expectations-v3.13.3...rspec-expectations-v3.13.4)
5
22
 
6
23
  Bug Fixes:
7
24
 
@@ -616,7 +633,7 @@ Bug Fixes:
616
633
 
617
634
  * Add a missing `require` that would cause the `respond_to` matcher to
618
635
  fail when used in a project where the rest of RSpec (e.g. core and
619
- expecatations) weren't being used. (Myron Marston, rspec/rspec-expectations#566)
636
+ expectations) weren't being used. (Myron Marston, rspec/rspec-expectations#566)
620
637
  * Structs are no longer treated as arrays when diffed. (Jon Rowe, rspec/rspec-expectations#576)
621
638
 
622
639
  ### 3.0.0 / 2014-06-01
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.13.4'
5
+ STRING = '3.13.6'
6
6
  end
7
7
  end
8
8
  end
@@ -42,12 +42,12 @@ module RSpec
42
42
  end
43
43
 
44
44
  # @private
45
- def matches?(event_proc)
45
+ def matches?(event_proc, &_)
46
46
  raise_block_syntax_error if block_given?
47
47
  perform_change(event_proc) && change_details.changed?
48
48
  end
49
49
 
50
- def does_not_match?(event_proc)
50
+ def does_not_match?(event_proc, &_)
51
51
  raise_block_syntax_error if block_given?
52
52
  perform_change(event_proc) && !change_details.changed?
53
53
  end
@@ -167,6 +167,7 @@ module RSpec
167
167
 
168
168
  def actual_collection_includes?(expected_item)
169
169
  return actual.scan(expected_item).size > 0 if Regexp === expected_item && String === actual
170
+ return false if String === actual && !expected_item.respond_to?(:to_str, true)
170
171
  return true if actual.include?(expected_item)
171
172
 
172
173
  # String lacks an `any?` method...
@@ -137,7 +137,7 @@ module RSpec
137
137
  end
138
138
 
139
139
  def with_arity_string
140
- "#{@expected_arity} argument#{@expected_arity == 1 ? '' : 's'}"
140
+ "#{@expected_arity} argument#{'s' unless @expected_arity == 1}"
141
141
  end
142
142
 
143
143
  def with_keywords_string
@@ -150,7 +150,7 @@ module RSpec
150
150
  "#{@expected_keywords[0...-1].map(&:inspect).join(', ')}, and #{@expected_keywords.last.inspect}"
151
151
  end
152
152
 
153
- "keyword#{@expected_keywords.count == 1 ? '' : 's'} #{kw_str}"
153
+ "keyword#{'s' unless @expected_keywords.count == 1} #{kw_str}"
154
154
  end
155
155
 
156
156
  def pp_names
@@ -61,7 +61,7 @@ module RSpec
61
61
 
62
62
  def truncated(description)
63
63
  return description if description.length <= DESCRIPTION_MAX_LENGTH
64
- description[0...DESCRIPTION_MAX_LENGTH - 3] << "..."
64
+ description[0...(DESCRIPTION_MAX_LENGTH - 3)] << "..."
65
65
  end
66
66
  end
67
67
 
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.13.4
4
+ version: 3.13.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -11,11 +11,11 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXVMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
14
+ MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXWMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
15
15
  VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO
16
16
  MAwGA1UECgwFUlNw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43
+ n0ph8oFAXOsKQWxZ+4uh6yGISk+WhngCZEVPZUjq7SIGAuVhQy2ZgwdjnLEz//lD
44
+ x0Qexp5yGeoxAL9qKM/RXYKtuRZBJV1z+L9A1YOtwaXXNg==
45
45
  -----END CERTIFICATE-----
46
- date: 2025-05-01 00:00:00.000000000 Z
46
+ date: 1980-01-02 00:00:00.000000000 Z
47
47
  dependencies:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec-support
@@ -140,15 +140,16 @@ files:
140
140
  - lib/rspec/matchers/matcher_delegator.rb
141
141
  - lib/rspec/matchers/matcher_protocol.rb
142
142
  - lib/rspec/matchers/multi_matcher_diff.rb
143
- homepage: https://github.com/rspec/rspec-expectations
143
+ homepage: https://rspec.info
144
144
  licenses:
145
145
  - MIT
146
146
  metadata:
147
- bug_tracker_uri: https://github.com/rspec/rspec-expectations/issues
148
- changelog_uri: https://github.com/rspec/rspec-expectations/blob/v3.13.4/Changelog.md
147
+ bug_tracker_uri: https://github.com/rspec/rspec/issues
148
+ changelog_uri: https://github.com/rspec/rspec/blob/rspec-expectations-v3.13.6/rspec-expectations/Changelog.md
149
149
  documentation_uri: https://rspec.info/documentation/
150
150
  mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
151
- source_code_uri: https://github.com/rspec/rspec-expectations
151
+ rubygems_mfa_required: 'true'
152
+ source_code_uri: https://github.com/rspec/rspec/blob/rspec-expectations-v3.13.6/rspec-expectations
152
153
  rdoc_options:
153
154
  - "--charset=UTF-8"
154
155
  require_paths:
@@ -164,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  - !ruby/object:Gem::Version
165
166
  version: '0'
166
167
  requirements: []
167
- rubygems_version: 3.6.2
168
+ rubygems_version: 4.0.20
168
169
  specification_version: 4
169
- summary: rspec-expectations-3.13.4
170
+ summary: rspec-expectations-3.13.6
170
171
  test_files: []
metadata.gz.sig CHANGED
Binary file