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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 730f70f2562e4ec51447fabe473bb6e47a34c51224db9b987559d5684943560f
4
- data.tar.gz: 2f480664d22d4c09bb1c0d1247b1cc94b2ae69d3c876507c6b3e0e4d39adb1ed
3
+ metadata.gz: 5992f7fea7f331bfcbf56839011642efc7ac14a5ac2f4681606f7f7e41b7e939
4
+ data.tar.gz: c92f05ecae956123a685f85fc896ad787ded8527758ac77a4e33ac0e79702dd3
5
5
  SHA512:
6
- metadata.gz: 610908012ccc1e598efea402bee3d63edbe0a558324673c1670b8d310928a298fdad1e206442ab6d018c0057565d8a93051013b7037e7fffbfbbf1bf95bfcbef
7
- data.tar.gz: 2e2fd041d8054a208bcddfd0b5731874f1f80bdaf69e7885960fef5f992432a9b5c1741605450152602c31c8002a87850e7e4c8b069de34f0e565231dd4921c7
6
+ metadata.gz: 1e6fb6f24207008629fae8337232c6214e01b8fa80b475c4a2a5ed5f13a2c5c49229363ee9b86d6aaa3d6e070717f8e46ceb2cc92f265ea02d8793bdf5ccf61c
7
+ data.tar.gz: 7c4fa5a56193747e8d247a487c2faccfb33fc3bc5dc378aa46a964c232336f248ee43b73d9c6329c05b626ffcdc562083bba89dd71191573ae00277043f42563
@@ -1,4 +1,4 @@
1
- ## Rails 6.0.1.rc1 (October 31, 2019) ##
1
+ ## Rails 6.0.1 (November 5, 2019) ##
2
2
 
3
3
  * No changes.
4
4
 
@@ -10,7 +10,7 @@ module ActiveModel
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
12
  TINY = 1
13
- PRE = "rc1"
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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
- remove_method :respond_to_missing?
58
- remove_method :method_missing
58
+ @lock&.synchronize do
59
+ return unless @lock
59
60
 
60
- attr_readers = attributes.reject { |name| klass.attribute_method?(name) }
61
- attr_writers = attributes.reject { |name| klass.attribute_method?("#{name}=") }
61
+ attr_readers = attributes.reject { |name| klass.attribute_method?(name) }
62
+ attr_writers = attributes.reject { |name| klass.attribute_method?("#{name}=") }
62
63
 
63
- attr_reader(*attr_readers)
64
- attr_writer(*attr_writers)
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.rc1
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-10-31 00:00:00.000000000 Z
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.rc1
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.rc1
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.rc1/activemodel/CHANGELOG.md
106
- documentation_uri: https://api.rubyonrails.org/v6.0.1.rc1/
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.rc1/activemodel
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: 1.3.1
122
+ version: '0'
123
123
  requirements: []
124
124
  rubygems_version: 3.0.3
125
125
  signing_key: