activemodel 5.1.6.2 → 5.1.7.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: 0dfcb91037342a2114a0efe4cefc93a12e1c168b633ae1c6b75716ef01bd9d32
4
- data.tar.gz: 916adf0eaf36e13bd01807d625ee0a4ceed29561da00a2d0d4ec7b368afe495d
3
+ metadata.gz: fe39da40a0d0cef49e91807dccf131ab1a6f9342657cb4d5cd8db6321effaedc
4
+ data.tar.gz: cae42b512f7ff68a065e97cf7c88d81b1cfce187385168765e2de653509cc50a
5
5
  SHA512:
6
- metadata.gz: 147e8af85a63e20f9b28b8070ae43bdbde28771d238947f79fddc13ac00baeff3d74e9db193871d65a2ab2b15578483240c1dbe4934ad2fe95c24341ea68c925
7
- data.tar.gz: 449af75900cfd3cc9dde6386e6a7d1ade85adf3c20fa1e437629feb5eb2e704201ccba66f81be28bcb81df77a32fb422b238bfb6116571347dee5b0006c061ef
6
+ metadata.gz: da8968a7a1060aca5f020e477b76d1f48a0b7ad41ae764a516713d4e9547b9487331ff3f05cb535011b7bf6ea82194a113c83a32500dd96e7f3137b63b6a2940
7
+ data.tar.gz: 0005b5756b2772cb614f9ec221edfb45dd39f7ddeeb53994ff4359a978dfd448a50a4abe1068f210ab58ac8f02d4b1b942b93537285160ddc09fa24028035ee8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 5.1.7.rc1 (March 22, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.1.6.2 (March 11, 2019) ##
2
7
 
3
8
  * No changes.
@@ -7,8 +7,8 @@ module ActiveModel
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 6
11
- PRE = "2"
10
+ TINY = 7
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -1,3 +1,4 @@
1
+ require "active_support/core_ext/string/zones"
1
2
  require "active_support/core_ext/time/zones"
2
3
 
3
4
  module ActiveModel
@@ -16,6 +16,8 @@ module ActiveModel
16
16
  case value
17
17
  when ::String
18
18
  value = "2000-01-01 #{value}"
19
+ time_hash = ::Date._parse(value)
20
+ return if time_hash[:hour].nil?
19
21
  when ::Time
20
22
  value = value.change(year: 2000, day: 1, month: 1)
21
23
  end
@@ -84,6 +84,10 @@ module ActiveModel
84
84
  false
85
85
  end
86
86
 
87
+ def force_equality?(_value) # :nodoc:
88
+ false
89
+ end
90
+
87
91
  def map(value) # :nodoc:
88
92
  yield value
89
93
  end
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.6.2
4
+ version: 5.1.7.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-13 00:00:00.000000000 Z
11
+ date: 2019-03-22 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.6.2
19
+ version: 5.1.7.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.6.2
26
+ version: 5.1.7.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.
@@ -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.6.2/activemodel
97
- changelog_uri: https://github.com/rails/rails/blob/v5.1.6.2/activemodel/CHANGELOG.md
96
+ source_code_uri: https://github.com/rails/rails/tree/v5.1.7.rc1/activemodel
97
+ changelog_uri: https://github.com/rails/rails/blob/v5.1.7.rc1/activemodel/CHANGELOG.md
98
98
  post_install_message:
99
99
  rdoc_options: []
100
100
  require_paths:
@@ -106,9 +106,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: 2.2.2
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - ">"
110
110
  - !ruby/object:Gem::Version
111
- version: '0'
111
+ version: 1.3.1
112
112
  requirements: []
113
113
  rubygems_version: 3.0.1
114
114
  signing_key: