activemodel 5.0.0.1 → 5.0.1.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 +4 -4
- data/CHANGELOG.md +15 -0
- data/README.rdoc +1 -1
- data/lib/active_model/errors.rb +2 -2
- data/lib/active_model/gem_version.rb +2 -2
- data/lib/active_model/type/date.rb +4 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0ed29642397534df8c2251628451dc1ad11143d
|
4
|
+
data.tar.gz: d03a3683d292cf96ad7cd51e3b4a21e30679026e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 818345f41ad128cde4057241318702c13cb07e976451c6e76b6dd07db680ec52899a28722df026e13c597202703bdf7a4a84556e9ab86080f8908c27e429a1d8
|
7
|
+
data.tar.gz: a04edb45cbab3a11b4900b50f60073438014ab01156e7e939aec3b6b5ad43aa0a1cad787d955791d2c57ed5c2f78650bcf4fad0d54e4051676a1a425a5bb72b6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
|
+
## Rails 5.0.1.rc1 (December 01, 2016) ##
|
2
|
+
|
3
|
+
* Fix `Type::Date#serialize` to cast a value to a date object properly.
|
4
|
+
This casting fixes queries for finding records by date column.
|
5
|
+
|
6
|
+
Fixes #25354.
|
7
|
+
|
8
|
+
*Ryuta Kamizono*
|
9
|
+
|
10
|
+
|
1
11
|
## Rails 5.0.0 (June 30, 2016) ##
|
2
12
|
|
13
|
+
* `Dirty`'s `*_changed?` methods now return an actual singleton, never `nil`, as in 4.2.
|
14
|
+
Fixes #24220.
|
15
|
+
|
16
|
+
*Sen-Zhang*
|
17
|
+
|
3
18
|
* Ensure that instances of `ActiveModel::Errors` can be marshalled.
|
4
19
|
Fixes #25165.
|
5
20
|
|
data/README.rdoc
CHANGED
@@ -239,7 +239,7 @@ The latest version of Active Model can be installed with RubyGems:
|
|
239
239
|
|
240
240
|
Source code can be downloaded as part of the Rails project on GitHub
|
241
241
|
|
242
|
-
* https://github.com/rails/rails/tree/
|
242
|
+
* https://github.com/rails/rails/tree/5-0-stable/activemodel
|
243
243
|
|
244
244
|
|
245
245
|
== License
|
data/lib/active_model/errors.rb
CHANGED
@@ -280,7 +280,7 @@ module ActiveModel
|
|
280
280
|
messages[attribute] = array.map { |message| full_message(attribute, message) }
|
281
281
|
end
|
282
282
|
else
|
283
|
-
self.messages
|
283
|
+
without_default_proc(self.messages)
|
284
284
|
end
|
285
285
|
end
|
286
286
|
|
@@ -382,7 +382,7 @@ module ActiveModel
|
|
382
382
|
end
|
383
383
|
|
384
384
|
# Returns +true+ if an error on the attribute with the given message is
|
385
|
-
# present, +false+ otherwise. +message+ is treated the same as for +add+.
|
385
|
+
# present, or +false+ otherwise. +message+ is treated the same as for +add+.
|
386
386
|
#
|
387
387
|
# person.errors.add :name, :blank
|
388
388
|
# person.errors.added? :name, :blank # => true
|
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.1.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: 2016-
|
11
|
+
date: 2016-11-30 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.1.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.0.
|
26
|
+
version: 5.0.1.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.
|
@@ -108,14 +108,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: 2.2.2
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - ">"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
113
|
+
version: 1.3.1
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.5.2
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: A toolkit for building modeling frameworks (part of Rails).
|
120
120
|
test_files: []
|
121
|
-
has_rdoc:
|