activemodel 6.0.3.6 → 6.0.4.2

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: c7467c69ea90431248c3a11f3707ea33e7e984870569bf3d83918b2d0c6ac788
4
- data.tar.gz: f2d74c9f18ebf0e1795541b1cd0d10f082b3d4bd903a59501bcbd1e7b9da88df
3
+ metadata.gz: cc108d85d8012cb52fe540568da88578ace2ad4eb4d1007e004223f1924a33e4
4
+ data.tar.gz: 544646ce40d2c00a8908b2d8caa0c6eb67bc64883dda8836fbfde0bc35ec0d47
5
5
  SHA512:
6
- metadata.gz: 38ddd6ed943704a4eb281033434d7554bb08d34988aab40f3e688f9de017550ac21c8907cb62ddbcaadf37048607ce7f378dff67df1c7d68c16e7666c4ce7d5a
7
- data.tar.gz: ccb03b3fc6179c2269c5d9d153ef6a45103d1335f579af8cabf68bfdf107d2a216f9ee9e967c9302265f9e14755b98dda75b9eac61734cd91008df4c6df2e555
6
+ metadata.gz: 0c492c3c67f459bbf75ac31e9a1cfca90a64f3c7b9d340152f586321ac701316eaaa562e7096ff3ac5a31155e426d3e9fb4179d0757a3feb92ed024c7d939e6a
7
+ data.tar.gz: cd828c498be7dd9158c421ea6b99aba256f29b65dbb12ca032b447c9326bfc3dc9278607bba66aba1c230d453e3ed79f0b8be15de26d63c6aa3ee6709769e395
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## Rails 6.0.4.2 (December 14, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.0.4.1 (August 19, 2021) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.0.4 (June 15, 2021) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 6.0.3.7 (May 05, 2021) ##
17
+
18
+ * No changes.
19
+
20
+
1
21
  ## Rails 6.0.3.6 (March 26, 2021) ##
2
22
 
3
23
  * No changes.
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/master/activemodel
244
+ * https://github.com/rails/rails/tree/main/activemodel
245
245
 
246
246
 
247
247
  == License
@@ -9,8 +9,8 @@ module ActiveModel
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
- TINY = 3
13
- PRE = "6"
12
+ TINY = 4
13
+ PRE = "2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -9,8 +9,10 @@ module ActiveModel
9
9
  end
10
10
 
11
11
  def register(type_name, klass = nil, **options, &block)
12
- block ||= proc { |_, *args| klass.new(*args) }
13
- block.ruby2_keywords if block.respond_to?(:ruby2_keywords)
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
 
@@ -89,7 +89,7 @@ module ActiveModel
89
89
 
90
90
  def parse_as_number(raw_value)
91
91
  if raw_value.is_a?(Float)
92
- raw_value.to_d
92
+ raw_value.to_d(Float::DIG)
93
93
  elsif raw_value.is_a?(Numeric)
94
94
  raw_value
95
95
  elsif is_integer?(raw_value)
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.3.6
4
+ version: 6.0.4.2
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-03-26 00:00:00.000000000 Z
11
+ date: 2021-12-14 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.3.6
19
+ version: 6.0.4.2
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.3.6
26
+ version: 6.0.4.2
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.3.6/activemodel/CHANGELOG.md
106
- documentation_uri: https://api.rubyonrails.org/v6.0.3.6/
105
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.4.2/activemodel/CHANGELOG.md
106
+ documentation_uri: https://api.rubyonrails.org/v6.0.4.2/
107
107
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
108
- source_code_uri: https://github.com/rails/rails/tree/v6.0.3.6/activemodel
109
- post_install_message:
108
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.4.2/activemodel
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -121,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.1.2
125
- signing_key:
124
+ rubygems_version: 3.2.15
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: A toolkit for building modeling frameworks (part of Rails).
128
128
  test_files: []