activerecord 7.1.5 → 7.1.5.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: b45ca3fee0a501dbddff6f5513b1c6d76224df56a5826e4cdcc67bded7fe299e
4
- data.tar.gz: a5c02ade3297c1a2aae5ddd20f51ad4bb83d53bc807b968f3253c69bb8598f9b
3
+ metadata.gz: 7fa4b2f9126403d6fc22dad885f81b45f0e00f9158dfbb8c0e509d212745afa4
4
+ data.tar.gz: 70e8039696ed0d7b39086eff706ef31b180a7a182b823861c7ef12795fb06c67
5
5
  SHA512:
6
- metadata.gz: e2083fba136690148693664668f35e35717ccf6116cdcf28a996e5e5b4e021f633d5c786d676c447f63423bb4b418415270214966cb0c2539569a3e0a979bd7a
7
- data.tar.gz: 4b81f2d092784dff65738ea7f1873dbb4c72b70e2fc5cdf3b70f64d8e7e7ed0b44e108ea16966d63e49eb3efa9a0c5a396ed1b5426c6272b97fb9813186f5e29
6
+ metadata.gz: c42494b0b6a24a72010025f85a9df63a992538bc99da20a72a5312402d3b722e2275d990a4cbcbad30c44002d466b95e662e0b9e7860d6e282cb837a64e096ba
7
+ data.tar.gz: b94f5d2573c1af08bd3a461a5ac0bab68e9b340f8e9e0885f682798018196ab8dd05ccea8c3ce0cf9d778910751e2e205d08d048e0b4f50f6c0c91eaa40e863b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## Rails 7.1.5.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
+
9
+ ## Rails 7.1.5.1 (December 10, 2024) ##
10
+
11
+ * No changes.
12
+
13
+
1
14
  ## Rails 7.1.5 (October 30, 2024) ##
2
15
 
3
16
  * Fix marshalling of unsaved associated records in 7.1 format.
@@ -250,7 +250,7 @@ module ActiveRecord
250
250
  return super if StatementCache.unsupported_value?(id)
251
251
 
252
252
  cached_find_by([primary_key], [id]) ||
253
- raise(RecordNotFound.new("Couldn't find #{name} with '#{primary_key}'=#{id}", name, primary_key, id))
253
+ raise(RecordNotFound.new("Couldn't find #{name} with '#{primary_key}'=#{id.inspect}", name, primary_key, id))
254
254
  end
255
255
 
256
256
  def find_by(*args) # :nodoc:
@@ -10,7 +10,7 @@ module ActiveRecord
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
12
  TINY = 5
13
- PRE = nil
13
+ PRE = "2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -412,12 +412,13 @@ module ActiveRecord
412
412
  error << " with#{conditions}" if conditions
413
413
  raise RecordNotFound.new(error, name, key)
414
414
  elsif Array.wrap(ids).size == 1
415
- error = "Couldn't find #{name} with '#{key}'=#{ids}#{conditions}"
415
+ id = Array.wrap(ids)[0]
416
+ error = "Couldn't find #{name} with '#{key}'=#{id.inspect}#{conditions}"
416
417
  raise RecordNotFound.new(error, name, key, ids)
417
418
  else
418
419
  error = +"Couldn't find all #{name.pluralize} with '#{key}': "
419
- error << "(#{ids.join(", ")})#{conditions} (found #{result_size} results, but was looking for #{expected_size})."
420
- 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
420
+ error << "(#{ids.map(&:inspect).join(", ")})#{conditions} (found #{result_size} results, but was looking for #{expected_size})."
421
+ 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
421
422
  raise RecordNotFound.new(error, name, key, ids)
422
423
  end
423
424
  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.1.5
4
+ version: 7.1.5.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-10-31 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.1.5
18
+ version: 7.1.5.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.1.5
25
+ version: 7.1.5.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.1.5
32
+ version: 7.1.5.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.1.5
39
+ version: 7.1.5.2
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: timeout
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -470,12 +469,11 @@ licenses:
470
469
  - MIT
471
470
  metadata:
472
471
  bug_tracker_uri: https://github.com/rails/rails/issues
473
- changelog_uri: https://github.com/rails/rails/blob/v7.1.5/activerecord/CHANGELOG.md
474
- documentation_uri: https://api.rubyonrails.org/v7.1.5/
472
+ changelog_uri: https://github.com/rails/rails/blob/v7.1.5.2/activerecord/CHANGELOG.md
473
+ documentation_uri: https://api.rubyonrails.org/v7.1.5.2/
475
474
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
476
- source_code_uri: https://github.com/rails/rails/tree/v7.1.5/activerecord
475
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.5.2/activerecord
477
476
  rubygems_mfa_required: 'true'
478
- post_install_message:
479
477
  rdoc_options:
480
478
  - "--main"
481
479
  - README.rdoc
@@ -492,8 +490,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
492
490
  - !ruby/object:Gem::Version
493
491
  version: '0'
494
492
  requirements: []
495
- rubygems_version: 3.5.16
496
- signing_key:
493
+ rubygems_version: 3.6.9
497
494
  specification_version: 4
498
495
  summary: Object-relational mapper framework (part of Rails).
499
496
  test_files: []