activemodel 5.2.3 → 5.2.4.rc1

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: 8b7a48a8632cd04a47cb21f650b4fff342c211176eec7e4e6fcc2baa0afd05a5
4
- data.tar.gz: 170909099c8c1cd1fb72bbb9763dbba6356079c19b2a13511891f092b1045a4b
3
+ metadata.gz: 4445611785ade33342ea3cdf03d9e1619ad9629b313823594dcc3214d9e119b7
4
+ data.tar.gz: b38d50913d49a15d013453d49dfdfd2c7f59b82611e1b09d22281dc51a5e6eb5
5
5
  SHA512:
6
- metadata.gz: d27c5bc840d55391b7e7388372a75216aeb3de80f896c35db3fdb681f231755be985d1c8504c5fb5dd5a08d465bf36ecef3318da5c796e1736217117498cd808
7
- data.tar.gz: e6315cbe00493bf2d109f307dc86df73f157e4cc1c0869443409c3d428736033d0ee40722dd95750035969bafcc63cb4ea609785538afa99bbd5af7ad8cd96ad
6
+ metadata.gz: 2d5e9737a27df681852e3f2bfed4b509df22102ce001b85266232205e76711df2b48bcdb416fd75822d5c746b0f4ec3a015bbf1d8d1522612dd19941ec2be163
7
+ data.tar.gz: d40b2c96e5ab5f550cc87205f80af15052f7533c51ad13e252ee2832e8e3f94afc0044d8a8c40c7eb05528f38f7c8aff7fd6dd09d9470269940d114cff6a856c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## Rails 5.2.4.rc1 (November 22, 2019) ##
2
+
3
+ * Type cast falsy boolean symbols on boolean attribute as false.
4
+
5
+ Fixes #35676.
6
+
7
+ *Ryuta Kamizono*
8
+
9
+
1
10
  ## Rails 5.2.3 (March 27, 2019) ##
2
11
 
3
12
  * Fix date value when casting a multiparameter date hash to not convert
@@ -9,8 +9,8 @@ module ActiveModel
9
9
  module VERSION
10
10
  MAJOR = 5
11
11
  MINOR = 2
12
- TINY = 3
13
- PRE = nil
12
+ TINY = 4
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -14,7 +14,16 @@ module ActiveModel
14
14
  # - Empty strings are coerced to +nil+
15
15
  # - All other values will be coerced to +true+
16
16
  class Boolean < Value
17
- FALSE_VALUES = [false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"].to_set
17
+ FALSE_VALUES = [
18
+ false, 0,
19
+ "0", :"0",
20
+ "f", :f,
21
+ "F", :F,
22
+ "false", :false,
23
+ "FALSE", :FALSE,
24
+ "off", :off,
25
+ "OFF", :OFF,
26
+ ].to_set.freeze
18
27
 
19
28
  def type # :nodoc:
20
29
  :boolean
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: 5.2.3
4
+ version: 5.2.4.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-03-28 00:00:00.000000000 Z
11
+ date: 2019-11-23 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: 5.2.3
19
+ version: 5.2.4.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: 5.2.3
26
+ version: 5.2.4.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.
@@ -101,8 +101,8 @@ homepage: http://rubyonrails.org
101
101
  licenses:
102
102
  - MIT
103
103
  metadata:
104
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activemodel
105
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/activemodel/CHANGELOG.md
104
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4.rc1/activemodel
105
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4.rc1/activemodel/CHANGELOG.md
106
106
  post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
@@ -114,11 +114,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: 2.2.2
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">="
117
+ - - ">"
118
118
  - !ruby/object:Gem::Version
119
- version: '0'
119
+ version: 1.3.1
120
120
  requirements: []
121
- rubygems_version: 3.0.1
121
+ rubygems_version: 3.0.3
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: A toolkit for building modeling frameworks (part of Rails).