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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dd091db86567bcd21b30f57ce284c5cf8a2abc8
4
- data.tar.gz: 6415f0429b082a30706d49eb8f2c36fcc18edefe
3
+ metadata.gz: 0f18628983c51c7c30c663386879d0bb1a412961
4
+ data.tar.gz: 61d6b9c4d4dfeb49b3fbfefac05e7bf548bbec6e
5
5
  SHA512:
6
- metadata.gz: 1a2aa3f0f814351e434a69cc951de88310aa7206b8d3dba0c6dc9ab0233e661e5daea42f60ea91b369a69d05369d6deb41f080723e577764f9731251eae26d13
7
- data.tar.gz: add8fa5e66266e2b31c35f537cd2fbb80ce51704a1a57441fa2edec8f95debfdc3be7f33a0466d6205fb732968e2995647686e7aec73561975ef4b5cad327c45
6
+ metadata.gz: 490b2f4ca2f235fa740684939088c28e436fc2117856ae980552f5f05974583861731360e6a4430f9fa2a514ded7c6f856a11d53624074ae793eed130babd947
7
+ data.tar.gz: 795118ed37037fd69db1e50ad8f24fbcff9193efa7116ebf9da8ac1323a187e900fce6746724371921bd2fda1e820b1dc9bad847be5c77badc2ba9466de2ef53
@@ -1,3 +1,8 @@
1
+ ## Rails 5.0.7 (March 29, 2018) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.0.6 (September 07, 2017) ##
2
7
 
3
8
  * No changes.
@@ -7,7 +7,7 @@ module ActiveModel
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 0
10
- TINY = 6
10
+ TINY = 7
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -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
- if value =~ /^2000-01-01/
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.6
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: 2017-09-08 00:00:00.000000000 Z
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.6
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.6
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.13
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).