activemodel 6.0.1.rc1 → 6.0.2.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/active_model/gem_version.rb +1 -1
- data/lib/active_model/validations/acceptance.rb +13 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 164d6801f14f06667b97c2646a2d4be108a556c0355f9d4df99d950846443a2b
|
4
|
+
data.tar.gz: a4a54baac46148f7731cefe5aa543fde449a374be9e86b1962daf7087a4f7c93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a47af363c5be912109380e750946e3d5515bb09a2b5e8a9365ab7947702f6fb0b1815a6108fe62e4dd1f195d468428fed171ed61859b3aa6708f46bc68dabdf
|
7
|
+
data.tar.gz: 811e438a6bb663fe5e0205f44eb40bbd299d53563305fb6437f6623108a903e4438272944af3b13931a1ee1060e167c518fe57dd9946f770c85ba5d125888506
|
data/CHANGELOG.md
CHANGED
@@ -31,6 +31,7 @@ module ActiveModel
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def included(klass)
|
34
|
+
@lock = Mutex.new
|
34
35
|
mod = self
|
35
36
|
|
36
37
|
define_method(:respond_to_missing?) do |method_name, include_private = false|
|
@@ -54,14 +55,20 @@ module ActiveModel
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def define_on(klass)
|
57
|
-
|
58
|
-
|
58
|
+
@lock&.synchronize do
|
59
|
+
return unless @lock
|
59
60
|
|
60
|
-
|
61
|
-
|
61
|
+
attr_readers = attributes.reject { |name| klass.attribute_method?(name) }
|
62
|
+
attr_writers = attributes.reject { |name| klass.attribute_method?("#{name}=") }
|
62
63
|
|
63
|
-
|
64
|
-
|
64
|
+
attr_reader(*attr_readers)
|
65
|
+
attr_writer(*attr_writers)
|
66
|
+
|
67
|
+
remove_method :respond_to_missing?
|
68
|
+
remove_method :method_missing
|
69
|
+
|
70
|
+
@lock = nil
|
71
|
+
end
|
65
72
|
end
|
66
73
|
|
67
74
|
def ==(other)
|
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.2.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-27 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.2.rc1
|
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.2.rc1
|
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,10 +102,10 @@ 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.2.rc1/activemodel/CHANGELOG.md
|
106
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.2.rc1/
|
107
107
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
|
108
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.0.
|
108
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc1/activemodel
|
109
109
|
post_install_message:
|
110
110
|
rdoc_options: []
|
111
111
|
require_paths:
|