Hello community,
here is the log from the commit of package rubygem-activesupport-4_2 for
openSUSE:Factory checked in at 2015-12-14 10:13:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-4_2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activesupport-4_2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activesupport-4_2"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activesupport-4_2/rubygem-activesupport-4_2.changes
2015-08-27 08:57:38.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activesupport-4_2.new/rubygem-activesupport-4_2.changes
2015-12-14 10:13:37.000000000 +0100
@@ -1,0 +2,20 @@
+Fri Nov 13 05:32:01 UTC 2015 - [email protected]
+
+- updated to version 4.2.5
+ see installed CHANGELOG.md
+
+ ## Rails 4.2.5 (November 12, 2015) ##
+
+ * Fix `TimeWithZone#eql?` to properly handle `TimeWithZone` created from
`DateTime`:
+ twz = DateTime.now.in_time_zone
+ twz.eql?(twz.dup) => true
+
+ Fixes #14178.
+
+ *Roque Pinel*
+
+ * Handle invalid UTF-8 characters in `MessageVerifier.verify`.
+
+ *Roque Pinel*, *Grey Baker*
+
+-------------------------------------------------------------------
Old:
----
activesupport-4.2.4.gem
New:
----
activesupport-4.2.5.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activesupport-4_2.spec ++++++
--- /var/tmp/diff_new_pack.lv5bGk/_old 2015-12-14 10:13:38.000000000 +0100
+++ /var/tmp/diff_new_pack.lv5bGk/_new 2015-12-14 10:13:38.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-activesupport-4_2
-Version: 4.2.4
+Version: 4.2.5
Release: 0
%define mod_name activesupport
%define mod_full_name %{mod_name}-%{version}
++++++ activesupport-4.2.4.gem -> activesupport-4.2.5.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2015-08-24 20:23:05.000000000 +0200
+++ new/CHANGELOG.md 2015-11-12 18:04:34.000000000 +0100
@@ -1,3 +1,18 @@
+## Rails 4.2.5 (November 12, 2015) ##
+
+* Fix `TimeWithZone#eql?` to properly handle `TimeWithZone` created from
`DateTime`:
+ twz = DateTime.now.in_time_zone
+ twz.eql?(twz.dup) => true
+
+ Fixes #14178.
+
+ *Roque Pinel*
+
+* Handle invalid UTF-8 characters in `MessageVerifier.verify`.
+
+ *Roque Pinel*, *Grey Baker*
+
+
## Rails 4.2.4 (August 24, 2015) ##
* Fix a `SystemStackError` when encoding an `Enumerable` with `json` gem and
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/cache.rb
new/lib/active_support/cache.rb
--- old/lib/active_support/cache.rb 2015-08-24 20:23:05.000000000 +0200
+++ new/lib/active_support/cache.rb 2015-11-12 18:04:34.000000000 +0100
@@ -27,7 +27,7 @@
end
class << self
- # Creates a new CacheStore object according to the given options.
+ # Creates a new Store object according to the given options.
#
# If no arguments are passed to this method, then a new
# ActiveSupport::Cache::MemoryStore object will be returned.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/active_support/core_ext/module/method_transplanting.rb
new/lib/active_support/core_ext/module/method_transplanting.rb
--- old/lib/active_support/core_ext/module/method_transplanting.rb
2015-08-24 20:23:06.000000000 +0200
+++ new/lib/active_support/core_ext/module/method_transplanting.rb
2015-11-12 18:04:34.000000000 +0100
@@ -2,7 +2,9 @@
###
# TODO: remove this after 1.9 support is dropped
def methods_transplantable? # :nodoc:
- x = Module.new { def foo; end }
+ x = Module.new {
+ def foo; end # :nodoc:
+ }
Module.new { define_method :bar, x.instance_method(:foo) }
true
rescue TypeError
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/numeric/conversions.rb
new/lib/active_support/core_ext/numeric/conversions.rb
--- old/lib/active_support/core_ext/numeric/conversions.rb 2015-08-24
20:23:06.000000000 +0200
+++ new/lib/active_support/core_ext/numeric/conversions.rb 2015-11-12
18:04:34.000000000 +0100
@@ -41,7 +41,7 @@
# 1000.to_s(:percentage, delimiter: '.', separator: ',') # => 1.000,000%
# 302.24398923423.to_s(:percentage, precision: 5) # => 302.24399%
# 1000.to_s(:percentage, locale: :fr) # => 1 000,000%
- # 100.to_s(:percentage, format: '%n %') # => 100 %
+ # 100.to_s(:percentage, format: '%n %') # => 100.000 %
#
# Delimited:
# 12345678.to_s(:delimited) # => 12,345,678
@@ -78,7 +78,7 @@
# 1234567.to_s(:human_size, precision: 2) # => 1.2 MB
# 483989.to_s(:human_size, precision: 2) # => 470 KB
# 1234567.to_s(:human_size, precision: 2, separator: ',') # => 1,2 MB
- # 1234567890123.to_s(:human_size, precision: 5) # => "1.1229 TB"
+ # 1234567890123.to_s(:human_size, precision: 5) # => "1.1228 TB"
# 524288000.to_s(:human_size, precision: 5) # => "500 MB"
#
# Human-friendly format:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/object/blank.rb
new/lib/active_support/core_ext/object/blank.rb
--- old/lib/active_support/core_ext/object/blank.rb 2015-08-24
20:23:06.000000000 +0200
+++ new/lib/active_support/core_ext/object/blank.rb 2015-11-12
18:04:34.000000000 +0100
@@ -2,11 +2,11 @@
class Object
# An object is blank if it's false, empty, or a whitespace string.
- # For example, '', ' ', +nil+, [], and {} are all blank.
+ # For example, +false+, '', ' ', +nil+, [], and {} are all blank.
#
# This simplifies
#
- # address.nil? || address.empty?
+ # !address || address.empty?
#
# to
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/object/try.rb
new/lib/active_support/core_ext/object/try.rb
--- old/lib/active_support/core_ext/object/try.rb 2015-08-24
20:23:06.000000000 +0200
+++ new/lib/active_support/core_ext/object/try.rb 2015-11-12
18:04:34.000000000 +0100
@@ -65,10 +65,10 @@
# Same as #try, but will raise a NoMethodError exception if the receiver is
not +nil+ and
# does not implement the tried method.
-
+
def try!(*a, &b)
if a.empty? && block_given?
- if b.arity.zero?
+ if b.arity == 0
instance_eval(&b)
else
yield self
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/time/calculations.rb
new/lib/active_support/core_ext/time/calculations.rb
--- old/lib/active_support/core_ext/time/calculations.rb 2015-08-24
20:23:06.000000000 +0200
+++ new/lib/active_support/core_ext/time/calculations.rb 2015-11-12
18:04:34.000000000 +0100
@@ -3,6 +3,7 @@
require 'active_support/time_with_zone'
require 'active_support/core_ext/time/zones'
require 'active_support/core_ext/date_and_time/calculations'
+require 'active_support/core_ext/date/calculations'
class Time
include DateAndTime::Calculations
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/gem_version.rb
new/lib/active_support/gem_version.rb
--- old/lib/active_support/gem_version.rb 2015-08-24 20:23:06.000000000
+0200
+++ new/lib/active_support/gem_version.rb 2015-11-12 18:04:34.000000000
+0100
@@ -7,7 +7,7 @@
module VERSION
MAJOR = 4
MINOR = 2
- TINY = 4
+ TINY = 5
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/hash_with_indifferent_access.rb
new/lib/active_support/hash_with_indifferent_access.rb
--- old/lib/active_support/hash_with_indifferent_access.rb 2015-08-24
20:23:06.000000000 +0200
+++ new/lib/active_support/hash_with_indifferent_access.rb 2015-11-12
18:04:34.000000000 +0100
@@ -269,7 +269,7 @@
value.nested_under_indifferent_access
end
elsif value.is_a?(Array)
- unless options[:for] == :assignment
+ if options[:for] != :assignment || value.frozen?
value = value.dup
end
value.map! { |e| convert_value(e, options) }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/message_verifier.rb
new/lib/active_support/message_verifier.rb
--- old/lib/active_support/message_verifier.rb 2015-08-24 20:23:06.000000000
+0200
+++ new/lib/active_support/message_verifier.rb 2015-11-12 18:04:34.000000000
+0100
@@ -35,7 +35,7 @@
end
def verify(signed_message)
- raise InvalidSignature if signed_message.blank?
+ raise InvalidSignature if signed_message.nil? ||
!signed_message.valid_encoding? || signed_message.blank?
data, digest = signed_message.split("--")
if data.present? && digest.present? &&
ActiveSupport::SecurityUtils.secure_compare(digest, generate_digest(data))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/per_thread_registry.rb
new/lib/active_support/per_thread_registry.rb
--- old/lib/active_support/per_thread_registry.rb 2015-08-24
20:23:06.000000000 +0200
+++ new/lib/active_support/per_thread_registry.rb 2015-11-12
18:04:34.000000000 +0100
@@ -43,9 +43,9 @@
protected
def method_missing(name, *args, &block) # :nodoc:
# Caches the method definition as a singleton method of the receiver.
- define_singleton_method(name) do |*a, &b|
- instance.public_send(name, *a, &b)
- end
+ #
+ # By letting #delegate handle it, we avoid an enclosure that'll
capture args.
+ singleton_class.delegate name, to: :instance
send(name, *args, &block)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/time_with_zone.rb
new/lib/active_support/time_with_zone.rb
--- old/lib/active_support/time_with_zone.rb 2015-08-24 20:23:06.000000000
+0200
+++ new/lib/active_support/time_with_zone.rb 2015-11-12 18:04:34.000000000
+0100
@@ -236,7 +236,7 @@
end
def eql?(other)
- utc.eql?(other)
+ other.eql?(utc)
end
def hash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-08-24 20:23:05.000000000 +0200
+++ new/metadata 2015-11-12 18:04:34.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activesupport
version: !ruby/object:Gem::Version
- version: 4.2.4
+ version: 4.2.5
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2015-08-24 00:00:00.000000000 Z
+date: 2015-11-12 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: i18n
@@ -339,10 +339,9 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.4.7
+rubygems_version: 2.4.5.1
signing_key:
specification_version: 4
summary: A toolkit of support libraries and Ruby core extensions extracted
from the
Rails framework.
test_files: []
-has_rdoc: