activerecord 7.1.5.1 → 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 +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: 7fa4b2f9126403d6fc22dad885f81b45f0e00f9158dfbb8c0e509d212745afa4
|
4
|
+
data.tar.gz: 70e8039696ed0d7b39086eff706ef31b180a7a182b823861c7ef12795fb06c67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c42494b0b6a24a72010025f85a9df63a992538bc99da20a72a5312402d3b722e2275d990a4cbcbad30c44002d466b95e662e0b9e7860d6e282cb837a64e096ba
|
7
|
+
data.tar.gz: b94f5d2573c1af08bd3a461a5ac0bab68e9b340f8e9e0885f682798018196ab8dd05ccea8c3ce0cf9d778910751e2e205d08d048e0b4f50f6c0c91eaa40e863b
|
data/CHANGELOG.md
CHANGED
data/lib/active_record/core.rb
CHANGED
@@ -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:
|
@@ -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
|
-
|
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:
|
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.
|
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.
|
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.
|
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: []
|