activerecord 7.2.2.1 → 7.2.2.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: 0fa184c958d89b0bfbb95921e93d9dee4396b91ea57216f69cdaa0907fca900f
4
- data.tar.gz: bab6a4f88acae3ad29b12d2d84229ad386acd8bca6e617804285b8d7534ea1ea
3
+ metadata.gz: 9269c9c015fecf44abaa1366dde339c7c068c1a1f26f977060e50d2d91d9aed7
4
+ data.tar.gz: 7718209bdff5867bb7df1bf94f975bac4a9e0807530c7bf8a51b1245a96229e1
5
5
  SHA512:
6
- metadata.gz: 91cf7ccf875cbd0a5c687e354edd6f4338d9b7edcc900952f9b4fef3843c03488abcfba7c2fd4a001954c9891283c232cb9719ad5f3e9383f23656c04930ff2f
7
- data.tar.gz: 4577e8f11d54b506f3d0fe841a25a1bbb7df529f22f51f08f0c70ec097098e80adab1d95f24f7048879ce5eb3aff6d330c124ad34c6667ebfdcc1c5823832821
6
+ metadata.gz: e7f135f22b059f74b1d6cbd64035d02f1c27b8d2cc767daf098165f41f0a76d283aeeec15db26589e303938ac1967f7c7a71a498d764b34b514020743c7eecea
7
+ data.tar.gz: 8b2f0a0b826252e9bc5120dc3aa25e2aec88dc66e3bc09dfc71fd2baf6f6cfe25055db30d9554ceab80ef9cc035319e72b0fea1d83091b0a244d9d728c095174
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## Rails 7.2.2.2 (August 13, 2025) ##
2
+
3
+ * Call inspect on ids in RecordNotFound error
4
+
5
+ [CVE-2025-55193]
6
+
7
+ *Gannon McGibbon*, *John Hawthorn*
8
+
1
9
  ## Rails 7.2.2.1 (December 10, 2024) ##
2
10
 
3
11
  * No changes.
@@ -265,7 +265,7 @@ module ActiveRecord
265
265
  return super if StatementCache.unsupported_value?(id)
266
266
 
267
267
  cached_find_by([primary_key], [id]) ||
268
- raise(RecordNotFound.new("Couldn't find #{name} with '#{primary_key}'=#{id}", name, primary_key, id))
268
+ raise(RecordNotFound.new("Couldn't find #{name} with '#{primary_key}'=#{id.inspect}", name, primary_key, id))
269
269
  end
270
270
 
271
271
  def find_by(*args) # :nodoc:
@@ -10,7 +10,7 @@ module ActiveRecord
10
10
  MAJOR = 7
11
11
  MINOR = 2
12
12
  TINY = 2
13
- PRE = "1"
13
+ PRE = "2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -424,12 +424,13 @@ module ActiveRecord
424
424
  error << " with#{conditions}" if conditions
425
425
  raise RecordNotFound.new(error, name, key)
426
426
  elsif Array.wrap(ids).size == 1
427
- error = "Couldn't find #{name} with '#{key}'=#{ids}#{conditions}"
427
+ id = Array.wrap(ids)[0]
428
+ error = "Couldn't find #{name} with '#{key}'=#{id.inspect}#{conditions}"
428
429
  raise RecordNotFound.new(error, name, key, ids)
429
430
  else
430
431
  error = +"Couldn't find all #{name.pluralize} with '#{key}': "
431
- error << "(#{ids.join(", ")})#{conditions} (found #{result_size} results, but was looking for #{expected_size})."
432
- error << " Couldn't find #{name.pluralize(not_found_ids.size)} with #{key.to_s.pluralize(not_found_ids.size)} #{not_found_ids.join(', ')}." if not_found_ids
432
+ error << "(#{ids.map(&:inspect).join(", ")})#{conditions} (found #{result_size} results, but was looking for #{expected_size})."
433
+ error << " Couldn't find #{name.pluralize(not_found_ids.size)} with #{key.to_s.pluralize(not_found_ids.size)} #{not_found_ids.map(&:inspect).join(', ')}." if not_found_ids
433
434
  raise RecordNotFound.new(error, name, key, ids)
434
435
  end
435
436
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.2.1
4
+ version: 7.2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -16,28 +15,28 @@ dependencies:
16
15
  requirements:
17
16
  - - '='
18
17
  - !ruby/object:Gem::Version
19
- version: 7.2.2.1
18
+ version: 7.2.2.2
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - '='
25
24
  - !ruby/object:Gem::Version
26
- version: 7.2.2.1
25
+ version: 7.2.2.2
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: activemodel
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - '='
32
31
  - !ruby/object:Gem::Version
33
- version: 7.2.2.1
32
+ version: 7.2.2.2
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - '='
39
38
  - !ruby/object:Gem::Version
40
- version: 7.2.2.1
39
+ version: 7.2.2.2
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: timeout
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -476,12 +475,11 @@ licenses:
476
475
  - MIT
477
476
  metadata:
478
477
  bug_tracker_uri: https://github.com/rails/rails/issues
479
- changelog_uri: https://github.com/rails/rails/blob/v7.2.2.1/activerecord/CHANGELOG.md
480
- documentation_uri: https://api.rubyonrails.org/v7.2.2.1/
478
+ changelog_uri: https://github.com/rails/rails/blob/v7.2.2.2/activerecord/CHANGELOG.md
479
+ documentation_uri: https://api.rubyonrails.org/v7.2.2.2/
481
480
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
482
- source_code_uri: https://github.com/rails/rails/tree/v7.2.2.1/activerecord
481
+ source_code_uri: https://github.com/rails/rails/tree/v7.2.2.2/activerecord
483
482
  rubygems_mfa_required: 'true'
484
- post_install_message:
485
483
  rdoc_options:
486
484
  - "--main"
487
485
  - README.rdoc
@@ -498,8 +496,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
496
  - !ruby/object:Gem::Version
499
497
  version: '0'
500
498
  requirements: []
501
- rubygems_version: 3.5.22
502
- signing_key:
499
+ rubygems_version: 3.6.9
503
500
  specification_version: 4
504
501
  summary: Object-relational mapper framework (part of Rails).
505
502
  test_files: []