Hello community,
here is the log from the commit of package rubygem-activemodel-5.2 for
openSUSE:Factory checked in at 2018-08-12 20:53:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activemodel-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activemodel-5.2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activemodel-5.2"
Sun Aug 12 20:53:25 2018 rev:2 rq:628583 version:5.2.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activemodel-5.2/rubygem-activemodel-5.2.changes
2018-07-18 22:47:21.968268669 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activemodel-5.2.new/rubygem-activemodel-5.2.changes
2018-08-12 20:53:29.361237858 +0200
@@ -1,0 +2,7 @@
+Wed Aug 8 14:50:18 UTC 2018 - [email protected]
+
+- updated to version 5.2.1 (boo#1104209)
+
+ * No changes / just aligned to Rails version 5.2.1
+
+-------------------------------------------------------------------
Old:
----
activemodel-5.2.0.gem
New:
----
activemodel-5.2.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activemodel-5.2.spec ++++++
--- /var/tmp/diff_new_pack.skV07L/_old 2018-08-12 20:53:29.761238669 +0200
+++ /var/tmp/diff_new_pack.skV07L/_new 2018-08-12 20:53:29.761238669 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-activemodel-5.2
-Version: 5.2.0
+Version: 5.2.1
Release: 0
%define mod_name activemodel
%define mod_full_name %{mod_name}-%{version}
++++++ activemodel-5.2.0.gem -> activemodel-5.2.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2018-04-09 22:04:25.000000000 +0200
+++ new/CHANGELOG.md 2018-08-07 23:41:51.000000000 +0200
@@ -1,3 +1,8 @@
+## Rails 5.2.1 (August 07, 2018) ##
+
+* No changes.
+
+
## Rails 5.2.0 (April 09, 2018) ##
* Do not lose all multiple `:includes` with options in serialization.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/attribute_mutation_tracker.rb
new/lib/active_model/attribute_mutation_tracker.rb
--- old/lib/active_model/attribute_mutation_tracker.rb 2018-04-09
22:04:25.000000000 +0200
+++ new/lib/active_model/attribute_mutation_tracker.rb 2018-08-07
23:41:51.000000000 +0200
@@ -11,6 +11,10 @@
@forced_changes = Set.new
end
+ def changed_attribute_names
+ attr_names.select { |attr_name| changed?(attr_name) }
+ end
+
def changed_values
attr_names.each_with_object({}.with_indifferent_access) do |attr_name,
result|
if changed?(attr_name)
@@ -23,7 +27,7 @@
attr_names.each_with_object({}.with_indifferent_access) do |attr_name,
result|
change = change_to_attribute(attr_name)
if change
- result[attr_name] = change
+ result.merge!(attr_name => change)
end
end
end
@@ -81,6 +85,10 @@
class NullMutationTracker # :nodoc:
include Singleton
+ def changed_attribute_names(*)
+ []
+ end
+
def changed_values(*)
{}
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/errors.rb
new/lib/active_model/errors.rb
--- old/lib/active_model/errors.rb 2018-04-09 22:04:25.000000000 +0200
+++ new/lib/active_model/errors.rb 2018-08-07 23:41:51.000000000 +0200
@@ -323,7 +323,7 @@
# person.errors.added? :name, "is too long" #
=> false
def added?(attribute, message = :invalid, options = {})
if message.is_a? Symbol
- self.details[attribute].map { |e| e[:error] }.include? message
+ self.details[attribute.to_sym].map { |e| e[:error] }.include? message
else
message = message.call if message.respond_to?(:call)
message = normalize_message(attribute, message, options)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/gem_version.rb
new/lib/active_model/gem_version.rb
--- old/lib/active_model/gem_version.rb 2018-04-09 22:04:26.000000000 +0200
+++ new/lib/active_model/gem_version.rb 2018-08-07 23:41:51.000000000 +0200
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 0
+ TINY = 1
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/boolean.rb
new/lib/active_model/type/boolean.rb
--- old/lib/active_model/type/boolean.rb 2018-04-09 22:04:26.000000000
+0200
+++ new/lib/active_model/type/boolean.rb 2018-08-07 23:41:51.000000000
+0200
@@ -20,6 +20,10 @@
:boolean
end
+ def serialize(value) # :nodoc:
+ cast(value)
+ end
+
private
def cast_value(value)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/helpers/time_value.rb
new/lib/active_model/type/helpers/time_value.rb
--- old/lib/active_model/type/helpers/time_value.rb 2018-04-09
22:04:26.000000000 +0200
+++ new/lib/active_model/type/helpers/time_value.rb 2018-08-07
23:41:51.000000000 +0200
@@ -1,5 +1,6 @@
# frozen_string_literal: true
+require "active_support/core_ext/string/zones"
require "active_support/core_ext/time/zones"
module ActiveModel
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/time.rb
new/lib/active_model/type/time.rb
--- old/lib/active_model/type/time.rb 2018-04-09 22:04:26.000000000 +0200
+++ new/lib/active_model/type/time.rb 2018-08-07 23:41:51.000000000 +0200
@@ -18,6 +18,8 @@
case value
when ::String
value = "2000-01-01 #{value}"
+ time_hash = ::Date._parse(value)
+ return if time_hash[:hour].nil?
when ::Time
value = value.change(year: 2000, day: 1, month: 1)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/value.rb
new/lib/active_model/type/value.rb
--- old/lib/active_model/type/value.rb 2018-04-09 22:04:26.000000000 +0200
+++ new/lib/active_model/type/value.rb 2018-08-07 23:41:51.000000000 +0200
@@ -90,6 +90,10 @@
false
end
+ def force_equality?(_value) # :nodoc:
+ false
+ end
+
def map(value) # :nodoc:
yield value
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/validations/numericality.rb
new/lib/active_model/validations/numericality.rb
--- old/lib/active_model/validations/numericality.rb 2018-04-09
22:04:26.000000000 +0200
+++ new/lib/active_model/validations/numericality.rb 2018-08-07
23:41:51.000000000 +0200
@@ -19,9 +19,11 @@
end
def validate_each(record, attr_name, value)
- before_type_cast = :"#{attr_name}_before_type_cast"
+ came_from_user = :"#{attr_name}_came_from_user?"
- raw_value = record.send(before_type_cast) if
record.respond_to?(before_type_cast) && record.send(before_type_cast) != value
+ if record.respond_to?(came_from_user) &&
record.public_send(came_from_user)
+ raw_value = record.read_attribute_before_type_cast(attr_name)
+ end
raw_value ||= value
if record_attribute_changed_in_place?(record, attr_name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2018-04-09 22:04:25.000000000 +0200
+++ new/metadata 2018-08-07 23:41:51.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activemodel
version: !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2018-04-09 00:00:00.000000000 Z
+date: 2018-08-07 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
description: A toolkit for building modeling frameworks like Active Record.
Rich support
for attributes, callbacks, validations, serialization, internationalization,
and
testing.
@@ -100,8 +100,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.0/activemodel
- changelog_uri:
https://github.com/rails/rails/blob/v5.2.0/activemodel/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.1/activemodel
+ changelog_uri:
https://github.com/rails/rails/blob/v5.2.1/activemodel/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths: