activemodel 6.0.1.rc1 → 6.0.2.rc1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 730f70f2562e4ec51447fabe473bb6e47a34c51224db9b987559d5684943560f
4
- data.tar.gz: 2f480664d22d4c09bb1c0d1247b1cc94b2ae69d3c876507c6b3e0e4d39adb1ed
3
+ metadata.gz: 164d6801f14f06667b97c2646a2d4be108a556c0355f9d4df99d950846443a2b
4
+ data.tar.gz: a4a54baac46148f7731cefe5aa543fde449a374be9e86b1962daf7087a4f7c93
5
5
  SHA512:
6
- metadata.gz: 610908012ccc1e598efea402bee3d63edbe0a558324673c1670b8d310928a298fdad1e206442ab6d018c0057565d8a93051013b7037e7fffbfbbf1bf95bfcbef
7
- data.tar.gz: 2e2fd041d8054a208bcddfd0b5731874f1f80bdaf69e7885960fef5f992432a9b5c1741605450152602c31c8002a87850e7e4c8b069de34f0e565231dd4921c7
6
+ metadata.gz: 7a47af363c5be912109380e750946e3d5515bb09a2b5e8a9365ab7947702f6fb0b1815a6108fe62e4dd1f195d468428fed171ed61859b3aa6708f46bc68dabdf
7
+ data.tar.gz: 811e438a6bb663fe5e0205f44eb40bbd299d53563305fb6437f6623108a903e4438272944af3b13931a1ee1060e167c518fe57dd9946f770c85ba5d125888506
@@ -1,4 +1,9 @@
1
- ## Rails 6.0.1.rc1 (October 31, 2019) ##
1
+ ## Rails 6.0.2.rc1 (November 27, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.0.1 (November 5, 2019) ##
2
7
 
3
8
  * No changes.
4
9
 
@@ -9,7 +9,7 @@ module ActiveModel
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
- TINY = 1
12
+ TINY = 2
13
13
  PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -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.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-10-31 00:00:00.000000000 Z
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.1.rc1
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.1.rc1
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.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.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.1.rc1/activemodel
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: