activemodel 6.0.3.7 → 6.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.rdoc +1 -1
- data/lib/active_model/gem_version.rb +2 -2
- data/lib/active_model/type/registry.rb +6 -4
- data/lib/active_model/validations/numericality.rb +1 -1
- 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: 9610708333879d0a214dc8003af87b5250133d44d1ed9385b5f82f93ea6ad64c
|
4
|
+
data.tar.gz: 70e1c5bc4de6a40ab7583a28e861cf78a79c11b31ca61c9d161f2b00c7ab7435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4878f0711fef18ea963ca678032cf5d663c9eb7deb41bdd40a0058f9870c5fa74a7402d43d41c68412a5c9e1db35a0f5c53e5d0d77d4b9557c059c4df4a9bcd
|
7
|
+
data.tar.gz: 7812c7fcf8eef96e13df5ceea79756cf8149e2bd28a8a02374523f2fb7a26e9fafc249a5698782b61dbe48cd0e5f96d9cc04fd61a7db9693599f1fdac24b4cbf
|
data/CHANGELOG.md
CHANGED
data/README.rdoc
CHANGED
@@ -241,7 +241,7 @@ The latest version of Active Model can be installed with RubyGems:
|
|
241
241
|
|
242
242
|
Source code can be downloaded as part of the Rails project on GitHub
|
243
243
|
|
244
|
-
* https://github.com/rails/rails/tree/
|
244
|
+
* https://github.com/rails/rails/tree/main/activemodel
|
245
245
|
|
246
246
|
|
247
247
|
== License
|
@@ -9,8 +9,10 @@ module ActiveModel
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def register(type_name, klass = nil, **options, &block)
|
12
|
-
|
13
|
-
|
12
|
+
unless block_given?
|
13
|
+
block = proc { |_, *args| klass.new(*args) }
|
14
|
+
block.ruby2_keywords if block.respond_to?(:ruby2_keywords)
|
15
|
+
end
|
14
16
|
registrations << registration_klass.new(type_name, block, **options)
|
15
17
|
end
|
16
18
|
|
@@ -31,8 +33,8 @@ module ActiveModel
|
|
31
33
|
Registration
|
32
34
|
end
|
33
35
|
|
34
|
-
def find_registration(symbol, *args)
|
35
|
-
registrations.find { |r| r.matches?(symbol, *args) }
|
36
|
+
def find_registration(symbol, *args, **kwargs)
|
37
|
+
registrations.find { |r| r.matches?(symbol, *args, **kwargs) }
|
36
38
|
end
|
37
39
|
end
|
38
40
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activemodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0.
|
19
|
+
version: 6.0.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 6.0.
|
26
|
+
version: 6.0.4
|
27
27
|
description: A toolkit for building modeling frameworks like Active Record. Rich support
|
28
28
|
for attributes, callbacks, validations, serialization, internationalization, and
|
29
29
|
testing.
|
@@ -102,11 +102,11 @@ licenses:
|
|
102
102
|
- MIT
|
103
103
|
metadata:
|
104
104
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
105
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.
|
106
|
-
documentation_uri: https://api.rubyonrails.org/v6.0.
|
105
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.4/activemodel/CHANGELOG.md
|
106
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.4/
|
107
107
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
108
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.0.
|
109
|
-
post_install_message:
|
108
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.4/activemodel
|
109
|
+
post_install_message:
|
110
110
|
rdoc_options: []
|
111
111
|
require_paths:
|
112
112
|
- lib
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubygems_version: 3.1.2
|
125
|
-
signing_key:
|
125
|
+
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: A toolkit for building modeling frameworks (part of Rails).
|
128
128
|
test_files: []
|