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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/active_record/core.rb +1 -1
- data/lib/active_record/gem_version.rb +1 -1
- data/lib/active_record/relation/finder_methods.rb +4 -3
- metadata +10 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9269c9c015fecf44abaa1366dde339c7c068c1a1f26f977060e50d2d91d9aed7
|
4
|
+
data.tar.gz: 7718209bdff5867bb7df1bf94f975bac4a9e0807530c7bf8a51b1245a96229e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f135f22b059f74b1d6cbd64035d02f1c27b8d2cc767daf098165f41f0a76d283aeeec15db26589e303938ac1967f7c7a71a498d764b34b514020743c7eecea
|
7
|
+
data.tar.gz: 8b2f0a0b826252e9bc5120dc3aa25e2aec88dc66e3bc09dfc71fd2baf6f6cfe25055db30d9554ceab80ef9cc035319e72b0fea1d83091b0a244d9d728c095174
|
data/CHANGELOG.md
CHANGED
data/lib/active_record/core.rb
CHANGED
@@ -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:
|
@@ -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
|
-
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
480
|
-
documentation_uri: https://api.rubyonrails.org/v7.2.2.
|
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.
|
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.
|
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: []
|