activemodel 5.1.5 → 5.1.6
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 +5 -5
- data/CHANGELOG.md +5 -0
- data/lib/active_model/gem_version.rb +1 -1
- data/lib/active_model/type/time.rb +2 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a28b31d0b8017d64ddc783b9c01c504881d7cd2
|
4
|
+
data.tar.gz: 96ee4cfd1ba3364c83907794b0842b29388c3201
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ce23ac1617c0749a531ccfd73d836dcf5ddc7c5a1e50f0c47dfa139f2347abcaafa9e30f08350096d05128ba29d66ddef768f3b35bcab848380a5b2e94072f
|
7
|
+
data.tar.gz: 3d0a2c4f625c39c7d07197c9d410690d84a1455018c637f8f867282ebcbcded6b13e0f442c221bb93785eedc1a3f2c06bcd3bb84a62aa1119eb0a77108836be4
|
data/CHANGELOG.md
CHANGED
@@ -26,14 +26,10 @@ module ActiveModel
|
|
26
26
|
private
|
27
27
|
|
28
28
|
def cast_value(value)
|
29
|
-
return value unless value.is_a?(::String)
|
29
|
+
return apply_seconds_precision(value) unless value.is_a?(::String)
|
30
30
|
return if value.empty?
|
31
31
|
|
32
|
-
|
33
|
-
dummy_time_value = value
|
34
|
-
else
|
35
|
-
dummy_time_value = "2000-01-01 #{value}"
|
36
|
-
end
|
32
|
+
dummy_time_value = value.sub(/\A(\d\d\d\d-\d\d-\d\d |)/, "2000-01-01 ")
|
37
33
|
|
38
34
|
fast_string_to_time(dummy_time_value) || begin
|
39
35
|
time_hash = ::Date._parse(dummy_time_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: 5.1.
|
4
|
+
version: 5.1.6
|
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: 2018-
|
11
|
+
date: 2018-03-29 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.
|
19
|
+
version: 5.1.6
|
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.
|
26
|
+
version: 5.1.6
|
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.
|
@@ -93,8 +93,8 @@ homepage: http://rubyonrails.org
|
|
93
93
|
licenses:
|
94
94
|
- MIT
|
95
95
|
metadata:
|
96
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.1.
|
97
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.1.
|
96
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.1.6/activemodel
|
97
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.1.6/activemodel/CHANGELOG.md
|
98
98
|
post_install_message:
|
99
99
|
rdoc_options: []
|
100
100
|
require_paths:
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.14
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: A toolkit for building modeling frameworks (part of Rails).
|