activerecord 8.0.2 → 8.0.2.1

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: 82c8ca907ebe4ec74622fb27ce477cdd5a4536e05bb25334c3551560324507cd
4
- data.tar.gz: 88787eb24c8acb59dc3517d85e919a50d85bf3c0bff149f59f76d2bf6b8495d8
3
+ metadata.gz: a386262cea6480a1111d0bea26f46ba8ff64342b6ef2faa1f8c3f85a0d5c200a
4
+ data.tar.gz: 1446cc8e23077a219b71642128ab56d5fc56058c6e1129b32ea8631db41ade63
5
5
  SHA512:
6
- metadata.gz: ea3714004780235f5bb1c78e8b667d229e642942b3ea12163b923d72fa66668e1bd9fc848c87347d96a83c85d3934e499411118883fd2a9c38779a87f031d83c
7
- data.tar.gz: 7bacd8bf3eb5712fecdcbba881a2a92f9f4f6fe609c644802b12e423a3f95e7b5953669715ad4215b7170a80f37c70686d2bf090872ef585fb0f4ed8001ff03e
6
+ metadata.gz: 8e750c4eb94685b402467c7a7633fcd6420e5de128046a9b77d9d9975264fb7b308f0636eebe2f13a9a9ed9363eb12fd03d6b8808a14ec0e7e5a79e984017242
7
+ data.tar.gz: 601127d94e501e2f48d0d43d51dde347fb2904587d2d5d51fb5102c168184d74f2b2d95b063c09fa15e0c1bc839398d9d530302840e2785a24a93b016daeff70
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## Rails 8.0.2.1 (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 8.0.2 (March 12, 2025) ##
2
10
 
3
11
  * No changes.
@@ -277,7 +277,7 @@ module ActiveRecord
277
277
  return super if StatementCache.unsupported_value?(id)
278
278
 
279
279
  cached_find_by([primary_key], [id]) ||
280
- raise(RecordNotFound.new("Couldn't find #{name} with '#{primary_key}'=#{id}", name, primary_key, id))
280
+ raise(RecordNotFound.new("Couldn't find #{name} with '#{primary_key}'=#{id.inspect}", name, primary_key, id))
281
281
  end
282
282
 
283
283
  def find_by(*args) # :nodoc:
@@ -10,7 +10,7 @@ module ActiveRecord
10
10
  MAJOR = 8
11
11
  MINOR = 0
12
12
  TINY = 2
13
- PRE = nil
13
+ PRE = "1"
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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.2
4
+ version: 8.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -15,28 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 8.0.2
18
+ version: 8.0.2.1
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 8.0.2
25
+ version: 8.0.2.1
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activemodel
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 8.0.2
32
+ version: 8.0.2.1
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 8.0.2
39
+ version: 8.0.2.1
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: timeout
42
42
  requirement: !ruby/object:Gem::Requirement
@@ -474,10 +474,10 @@ licenses:
474
474
  - MIT
475
475
  metadata:
476
476
  bug_tracker_uri: https://github.com/rails/rails/issues
477
- changelog_uri: https://github.com/rails/rails/blob/v8.0.2/activerecord/CHANGELOG.md
478
- documentation_uri: https://api.rubyonrails.org/v8.0.2/
477
+ changelog_uri: https://github.com/rails/rails/blob/v8.0.2.1/activerecord/CHANGELOG.md
478
+ documentation_uri: https://api.rubyonrails.org/v8.0.2.1/
479
479
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
480
- source_code_uri: https://github.com/rails/rails/tree/v8.0.2/activerecord
480
+ source_code_uri: https://github.com/rails/rails/tree/v8.0.2.1/activerecord
481
481
  rubygems_mfa_required: 'true'
482
482
  rdoc_options:
483
483
  - "--main"
@@ -495,7 +495,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
495
495
  - !ruby/object:Gem::Version
496
496
  version: '0'
497
497
  requirements: []
498
- rubygems_version: 3.6.2
498
+ rubygems_version: 3.6.9
499
499
  specification_version: 4
500
500
  summary: Object-relational mapper framework (part of Rails).
501
501
  test_files: []