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 +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 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a386262cea6480a1111d0bea26f46ba8ff64342b6ef2faa1f8c3f85a0d5c200a
|
4
|
+
data.tar.gz: 1446cc8e23077a219b71642128ab56d5fc56058c6e1129b32ea8631db41ade63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e750c4eb94685b402467c7a7633fcd6420e5de128046a9b77d9d9975264fb7b308f0636eebe2f13a9a9ed9363eb12fd03d6b8808a14ec0e7e5a79e984017242
|
7
|
+
data.tar.gz: 601127d94e501e2f48d0d43d51dde347fb2904587d2d5d51fb5102c168184d74f2b2d95b063c09fa15e0c1bc839398d9d530302840e2785a24a93b016daeff70
|
data/CHANGELOG.md
CHANGED
data/lib/active_record/core.rb
CHANGED
@@ -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:
|
@@ -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,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:
|
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.
|
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: []
|