activemodel 5.0.6 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_model/gem_version.rb +1 -1
- data/lib/active_model/type/time.rb +2 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f18628983c51c7c30c663386879d0bb1a412961
|
4
|
+
data.tar.gz: 61d6b9c4d4dfeb49b3fbfefac05e7bf548bbec6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490b2f4ca2f235fa740684939088c28e436fc2117856ae980552f5f05974583861731360e6a4430f9fa2a514ded7c6f856a11d53624074ae793eed130babd947
|
7
|
+
data.tar.gz: 795118ed37037fd69db1e50ad8f24fbcff9193efa7116ebf9da8ac1323a187e900fce6746724371921bd2fda1e820b1dc9bad847be5c77badc2ba9466de2ef53
|
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.0.
|
4
|
+
version: 5.0.7
|
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:
|
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.0.
|
19
|
+
version: 5.0.7
|
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.0.
|
26
|
+
version: 5.0.7
|
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.
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.6.
|
116
|
+
rubygems_version: 2.6.14
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: A toolkit for building modeling frameworks (part of Rails).
|