Hello community,
here is the log from the commit of package rubygem-activemodel-5_0 for
openSUSE:Factory checked in at 2017-03-21 22:49:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activemodel-5_0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activemodel-5_0.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activemodel-5_0"
Tue Mar 21 22:49:36 2017 rev:4 rq:479656 version:5.0.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activemodel-5_0/rubygem-activemodel-5_0.changes
2016-12-29 22:47:32.617296794 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-activemodel-5_0.new/rubygem-activemodel-5_0.changes
2017-03-21 22:49:37.306166394 +0100
@@ -1,0 +2,10 @@
+Thu Mar 2 05:32:32 UTC 2017 - [email protected]
+
+- updated to version 5.0.2
+ see installed CHANGELOG.md
+
+ ## Rails 5.0.2 (March 01, 2017) ##
+
+ * No changes.
+
+-------------------------------------------------------------------
Old:
----
activemodel-5.0.1.gem
New:
----
activemodel-5.0.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activemodel-5_0.spec ++++++
--- /var/tmp/diff_new_pack.CGX2wo/_old 2017-03-21 22:49:37.978071404 +0100
+++ /var/tmp/diff_new_pack.CGX2wo/_new 2017-03-21 22:49:37.982070839 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-activemodel-5_0
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-activemodel-5_0
-Version: 5.0.1
+Version: 5.0.2
Release: 0
%define mod_name activemodel
%define mod_full_name %{mod_name}-%{version}
++++++ activemodel-5.0.1.gem -> activemodel-5.0.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2016-12-21 01:06:22.000000000 +0100
+++ new/CHANGELOG.md 2017-03-02 00:11:58.000000000 +0100
@@ -1,3 +1,8 @@
+## Rails 5.0.2 (March 01, 2017) ##
+
+* No changes.
+
+
## Rails 5.0.1 (December 21, 2016) ##
* No changes.
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/errors.rb
new/lib/active_model/errors.rb
--- old/lib/active_model/errors.rb 2016-12-21 01:06:22.000000000 +0100
+++ new/lib/active_model/errors.rb 2017-03-02 00:11:58.000000000 +0100
@@ -504,15 +504,22 @@
I18n.translate(key, options)
end
- def marshal_dump
+ def marshal_dump # :nodoc:
[@base, without_default_proc(@messages), without_default_proc(@details)]
end
- def marshal_load(array)
+ def marshal_load(array) # :nodoc:
@base, @messages, @details = array
apply_default_array(@messages)
apply_default_array(@details)
end
+
+ def init_with(coder) # :nodoc:
+ coder.map.each { |k, v| instance_variable_set(:"@#{k}", v) }
+ @details ||= {}
+ apply_default_array(@messages)
+ apply_default_array(@details)
+ end
private
def 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 2016-12-21 01:06:22.000000000 +0100
+++ new/lib/active_model/gem_version.rb 2017-03-02 00:11:58.000000000 +0100
@@ -7,7 +7,7 @@
module VERSION
MAJOR = 5
MINOR = 0
- TINY = 1
+ TINY = 2
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/type/decimal.rb
new/lib/active_model/type/decimal.rb
--- old/lib/active_model/type/decimal.rb 2016-12-21 01:06:22.000000000
+0100
+++ new/lib/active_model/type/decimal.rb 2017-03-02 00:11:58.000000000
+0100
@@ -19,8 +19,14 @@
casted_value = case value
when ::Float
convert_float_to_big_decimal(value)
- when ::Numeric, ::String
+ when ::Numeric
BigDecimal(value, precision.to_i)
+ when ::String
+ begin
+ value.to_d
+ rescue ArgumentError
+ BigDecimal(0)
+ end
else
if value.respond_to?(:to_d)
value.to_d
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_model/validator.rb
new/lib/active_model/validator.rb
--- old/lib/active_model/validator.rb 2016-12-21 01:06:22.000000000 +0100
+++ new/lib/active_model/validator.rb 2017-03-02 00:11:58.000000000 +0100
@@ -142,8 +142,8 @@
end
# Performs validation on the supplied record. By default this will call
- # +validates_each+ to determine validity therefore subclasses should
- # override +validates_each+ with validation logic.
+ # +validate_each+ to determine validity therefore subclasses should
+ # override +validate_each+ with validation logic.
def validate(record)
attributes.each do |attribute|
value = record.read_attribute_for_validation(attribute)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2016-12-21 01:06:22.000000000 +0100
+++ new/metadata 2017-03-02 00:11:58.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activemodel
version: !ruby/object:Gem::Version
- version: 5.0.1
+ version: 5.0.2
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2016-12-21 00:00:00.000000000 Z
+date: 2017-03-01 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.0.1
+ version: 5.0.2
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.0.1
+ version: 5.0.2
description: A toolkit for building modeling frameworks like Active Record.
Rich support
for attributes, callbacks, validations, serialization, internationalization,
and
testing.
@@ -113,9 +113,8 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.5.2
+rubygems_version: 2.6.10
signing_key:
specification_version: 4
summary: A toolkit for building modeling frameworks (part of Rails).
test_files: []
-has_rdoc: