activemodel 5.1.1 → 5.1.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
  SHA1:
3
- metadata.gz: 511016c3f5057632419fd2b9bef1c0e79ae47972
4
- data.tar.gz: 9fd252b69e58d18a9748287388a4511c9a26d8b5
3
+ metadata.gz: f8708c978942ae36b833aa45f956231f4f28d66d
4
+ data.tar.gz: 472cc8d98fecb49cc8c64c324c3f7637e9efa7f1
5
5
  SHA512:
6
- metadata.gz: 4fd9a78cdf6fc59e0db60483ea61a5b89881f1fce107d353b283a11641243a715526ce5d76654fb128ce6a914ec07ae252f5287dd0d1cf1951ee5e519f410f02
7
- data.tar.gz: 3c0dc3a98f25addb758e6b3f1496d0ab92bd38ed59afc82f73008538071f311781a90248679b71ca9ffccf85bb2f8211d193cec876b49a0ff38b10ea28065207
6
+ metadata.gz: b650f3c773679c7046068cfbf5279ab4a65f8541c31c85561105c794df44ff2db0d0437ead364389989aa1093096e0efff0f60c623a49db8e542784b1b686822
7
+ data.tar.gz: e1082659f1b541f6f2b3f2ec8859862d04119944a1eefb99e2768375822045be4c7d527b6af2703a4f2e5e2410e4090d8dec4fbff033adb9849b1fbf82ca4452
@@ -1,3 +1,16 @@
1
+ ## Rails 5.1.2.rc1 (June 20, 2017) ##
2
+
3
+ * Fix regression in numericality validator when comparing Decimal and Float input
4
+ values with more scale than the schema.
5
+
6
+ *Bradley Priest*
7
+
8
+
9
+ ## Rails 5.1.1 (May 12, 2017) ##
10
+
11
+ * No changes.
12
+
13
+
1
14
  ## Rails 5.1.0 (April 27, 2017) ##
2
15
 
3
16
  * The original string assigned to a model attribute is no longer incorrectly
@@ -7,8 +7,8 @@ module ActiveModel
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 1
11
- PRE = nil
10
+ TINY = 2
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -36,7 +36,9 @@ module ActiveModel
36
36
  return
37
37
  end
38
38
 
39
- unless raw_value.is_a?(Numeric)
39
+ if raw_value.is_a?(Numeric)
40
+ value = raw_value
41
+ else
40
42
  value = parse_raw_value_as_a_number(raw_value)
41
43
  end
42
44
 
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.1.1
4
+ version: 5.1.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: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-06-20 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.1.1
19
+ version: 5.1.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: 5.1.1
26
+ version: 5.1.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.
@@ -104,14 +104,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: 2.2.2
105
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
107
+ - - ">"
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: 1.3.1
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.6.10
112
+ rubygems_version: 2.6.12
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: A toolkit for building modeling frameworks (part of Rails).
116
116
  test_files: []
117
- has_rdoc: