activemodel 6.0.1.rc1 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/active_model/gem_version.rb +1 -1
- data/lib/active_model/validations/acceptance.rb +13 -6
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5992f7fea7f331bfcbf56839011642efc7ac14a5ac2f4681606f7f7e41b7e939
|
4
|
+
data.tar.gz: c92f05ecae956123a685f85fc896ad787ded8527758ac77a4e33ac0e79702dd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e6fb6f24207008629fae8337232c6214e01b8fa80b475c4a2a5ed5f13a2c5c49229363ee9b86d6aaa3d6e070717f8e46ceb2cc92f265ea02d8793bdf5ccf61c
|
7
|
+
data.tar.gz: 7c4fa5a56193747e8d247a487c2faccfb33fc3bc5dc378aa46a964c232336f248ee43b73d9c6329c05b626ffcdc562083bba89dd71191573ae00277043f42563
|
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.1
|
4
|
+
version: 6.0.1
|
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-05 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.1
|
19
|
+
version: 6.0.1
|
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.1
|
26
|
+
version: 6.0.1
|
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.1
|
106
|
-
documentation_uri: https://api.rubyonrails.org/v6.0.1
|
105
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.1/activemodel/CHANGELOG.md
|
106
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.1/
|
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.1
|
108
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.1/activemodel
|
109
109
|
post_install_message:
|
110
110
|
rdoc_options: []
|
111
111
|
require_paths:
|
@@ -117,9 +117,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: 2.5.0
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- - "
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
122
|
+
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubygems_version: 3.0.3
|
125
125
|
signing_key:
|