Hello community,
here is the log from the commit of package rubygem-activesupport-4_2 for
openSUSE:Factory checked in at 2015-08-27 08:57:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-06-30 10:19:08.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activesupport-4_2.new/rubygem-activesupport-4_2.changes
2015-08-27 08:57:38.000000000 +0200
@@ -1,0 +2,24 @@
+Tue Aug 25 04:31:44 UTC 2015 - [email protected]
+
+- updated to version 4.2.4
+ see installed CHANGELOG.md
+
+ ## Rails 4.2.4 (August 24, 2015) ##
+
+ * Fix a `SystemStackError` when encoding an `Enumerable` with `json` gem
and
+ with the Active Support JSON encoder loaded.
+
+ Fixes #20775.
+
+ *Sammy Larbi*, *Prathamesh Sonpatki*
+
+ * Fix not calling `#default` on `HashWithIndifferentAcess#to_hash` when
only
+ `default_proc` is set, which could raise.
+
+ *Simon Eskildsen*
+
+ * Fix setting `default_proc` on `HashWithIndifferentAccess#dup`
+
+ *Simon Eskildsen*
+
+-------------------------------------------------------------------
Old:
----
activesupport-4.2.3.gem
New:
----
activesupport-4.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activesupport-4_2.spec ++++++
--- /var/tmp/diff_new_pack.0RP3Ta/_old 2015-08-27 08:57:38.000000000 +0200
+++ /var/tmp/diff_new_pack.0RP3Ta/_new 2015-08-27 08:57:38.000000000 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-activesupport-4_2
-Version: 4.2.3
+Version: 4.2.4
Release: 0
%define mod_name activesupport
%define mod_full_name %{mod_name}-%{version}
++++++ activesupport-4.2.3.gem -> activesupport-4.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2015-06-25 23:28:54.000000000 +0200
+++ new/CHANGELOG.md 2015-08-24 20:23:05.000000000 +0200
@@ -1,3 +1,22 @@
+## Rails 4.2.4 (August 24, 2015) ##
+
+* Fix a `SystemStackError` when encoding an `Enumerable` with `json` gem and
+ with the Active Support JSON encoder loaded.
+
+ Fixes #20775.
+
+ *Sammy Larbi*, *Prathamesh Sonpatki*
+
+* Fix not calling `#default` on `HashWithIndifferentAcess#to_hash` when only
+ `default_proc` is set, which could raise.
+
+ *Simon Eskildsen*
+
+* Fix setting `default_proc` on `HashWithIndifferentAccess#dup`
+
+ *Simon Eskildsen*
+
+
## Rails 4.2.3 (June 25, 2015) ##
* Fix a range of values for parameters of the Time#change
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/callbacks.rb
new/lib/active_support/callbacks.rb
--- old/lib/active_support/callbacks.rb 2015-06-25 23:28:54.000000000 +0200
+++ new/lib/active_support/callbacks.rb 2015-08-24 20:23:05.000000000 +0200
@@ -78,8 +78,12 @@
# save
# end
def run_callbacks(kind, &block)
- callbacks = send("_#{kind}_callbacks")
+ send "_run_#{kind}_callbacks", &block
+ end
+
+ private
+ def __run_callbacks__(callbacks, &block)
if callbacks.empty?
yield if block_given?
else
@@ -89,8 +93,6 @@
end
end
- private
-
# A hook invoked every time a before callback is halted.
# This can be overridden in AS::Callback implementors in order
# to provide better debugging/logging.
@@ -770,6 +772,12 @@
names.each do |name|
class_attribute "_#{name}_callbacks"
set_callbacks name, CallbackChain.new(name, options)
+
+ module_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def _run_#{name}_callbacks(&block)
+ __run_callbacks__(_#{name}_callbacks, &block)
+ end
+ RUBY
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/object/json.rb
new/lib/active_support/core_ext/object/json.rb
--- old/lib/active_support/core_ext/object/json.rb 2015-06-25
23:28:54.000000000 +0200
+++ new/lib/active_support/core_ext/object/json.rb 2015-08-24
20:23:06.000000000 +0200
@@ -26,7 +26,7 @@
# bypassed completely. This means that as_json won't be invoked and the JSON
gem will simply
# ignore any options it does not natively understand. This also means that
::JSON.{generate,dump}
# should give exactly the same results with or without active support.
-[Object, Array, FalseClass, Float, Hash, Integer, NilClass, String, TrueClass,
Enumerable].each do |klass|
+[Enumerable, Object, Array, FalseClass, Float, Hash, Integer, NilClass,
String, TrueClass].each do |klass|
klass.class_eval do
def to_json_with_active_support_encoder(options = nil) # :nodoc:
if options.is_a?(::JSON::State)
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-06-25
23:28:54.000000000 +0200
+++ new/lib/active_support/core_ext/time/calculations.rb 2015-08-24
20:23:06.000000000 +0200
@@ -104,6 +104,12 @@
# takes a hash with any of these keys: <tt>:years</tt>, <tt>:months</tt>,
# <tt>:weeks</tt>, <tt>:days</tt>, <tt>:hours</tt>, <tt>:minutes</tt>,
# <tt>:seconds</tt>.
+ #
+ # Time.new(2015, 8, 1, 14, 35, 0).advance(seconds: 1) # => 2015-08-01
14:35:01 -0700
+ # Time.new(2015, 8, 1, 14, 35, 0).advance(minutes: 1) # => 2015-08-01
14:36:00 -0700
+ # Time.new(2015, 8, 1, 14, 35, 0).advance(hours: 1) # => 2015-08-01
15:35:00 -0700
+ # Time.new(2015, 8, 1, 14, 35, 0).advance(days: 1) # => 2015-08-02
14:35:00 -0700
+ # Time.new(2015, 8, 1, 14, 35, 0).advance(weeks: 1) # => 2015-08-08
14:35:00 -0700
def advance(options)
unless options[:weeks].nil?
options[:weeks], partial_weeks = options[:weeks].divmod(1)
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-06-25 23:28:54.000000000
+0200
+++ new/lib/active_support/gem_version.rb 2015-08-24 20:23:06.000000000
+0200
@@ -7,7 +7,7 @@
module VERSION
MAJOR = 4
MINOR = 2
- TINY = 3
+ TINY = 4
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-06-25
23:28:54.000000000 +0200
+++ new/lib/active_support/hash_with_indifferent_access.rb 2015-08-24
20:23:06.000000000 +0200
@@ -188,7 +188,7 @@
# dup[:a][:c] # => "c"
def dup
self.class.new(self).tap do |new_hash|
- new_hash.default = default
+ set_defaults(new_hash)
end
end
@@ -247,7 +247,9 @@
# Convert to a regular hash with string keys.
def to_hash
- _new_hash = Hash.new(default)
+ _new_hash = Hash.new
+ set_defaults(_new_hash)
+
each do |key, value|
_new_hash[key] = convert_value(value, for: :to_hash)
end
@@ -275,6 +277,14 @@
value
end
end
+
+ def set_defaults(target)
+ if default_proc
+ target.default_proc = default_proc.dup
+ else
+ target.default = default
+ end
+ end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/notifications/fanout.rb
new/lib/active_support/notifications/fanout.rb
--- old/lib/active_support/notifications/fanout.rb 2015-06-25
23:28:54.000000000 +0200
+++ new/lib/active_support/notifications/fanout.rb 2015-08-24
20:23:06.000000000 +0200
@@ -111,7 +111,7 @@
end
end
- class Timed < Evented
+ class Timed < Evented # :nodoc:
def publish(name, *args)
@delegate.call name, *args
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-06-25 23:28:54.000000000 +0200
+++ new/metadata 2015-08-24 20:23:05.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activesupport
version: !ruby/object:Gem::Version
- version: 4.2.3
+ version: 4.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2015-06-25 00:00:00.000000000 Z
+date: 2015-08-24 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: i18n
@@ -339,9 +339,10 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.4.5
+rubygems_version: 2.4.7
signing_key:
specification_version: 4
summary: A toolkit of support libraries and Ruby core extensions extracted
from the
Rails framework.
test_files: []
+has_rdoc: