Hello community,

here is the log from the commit of package rubygem-activesupport-5_1 for 
openSUSE:Factory checked in at 2017-09-13 22:35:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-5_1 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-activesupport-5_1.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-activesupport-5_1"

Wed Sep 13 22:35:18 2017 rev:2 rq:523503 version:5.1.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-activesupport-5_1/rubygem-activesupport-5_1.changes
      2017-09-04 12:37:43.207713939 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-activesupport-5_1.new/rubygem-activesupport-5_1.changes
 2017-09-13 22:36:14.185759879 +0200
@@ -1,0 +2,5 @@
+Mon Sep 11 09:29:05 UTC 2017 - [email protected]
+
+- Update to version 5.1.4
+
+-------------------------------------------------------------------

Old:
----
  activesupport-5.1.3.gem

New:
----
  activesupport-5.1.4.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-activesupport-5_1.spec ++++++
--- /var/tmp/diff_new_pack.icpG1u/_old  2017-09-13 22:36:14.633696811 +0200
+++ /var/tmp/diff_new_pack.icpG1u/_new  2017-09-13 22:36:14.633696811 +0200
@@ -24,16 +24,16 @@
 #
 
 Name:           rubygem-activesupport-5_1
-Version:        5.1.3
+Version:        5.1.4
 Release:        0
 %define mod_name activesupport
 %define mod_full_name %{mod_name}-%{version}
 %define mod_version_suffix -5_1
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 5
 BuildRequires:  %{ruby >= 2.2.2}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
+BuildRequires:  ruby-macros >= 5
 Url:            http://rubyonrails.org
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml

++++++ activesupport-5.1.3.gem -> activesupport-5.1.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2017-08-03 21:12:58.000000000 +0200
+++ new/CHANGELOG.md    2017-09-08 02:48:50.000000000 +0200
@@ -1,3 +1,13 @@
+## Rails 5.1.4 (September 07, 2017) ##
+
+*   No changes.
+
+
+## Rails 5.1.4.rc1 (August 24, 2017) ##
+
+*   No changes.
+
+
 ## Rails 5.1.3 (August 03, 2017) ##
 
 *   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_support/gem_version.rb 
new/lib/active_support/gem_version.rb
--- old/lib/active_support/gem_version.rb       2017-08-03 21:12:58.000000000 
+0200
+++ new/lib/active_support/gem_version.rb       2017-09-08 02:48:50.000000000 
+0200
@@ -7,7 +7,7 @@
   module VERSION
     MAJOR = 5
     MINOR = 1
-    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      2017-08-03 
21:12:58.000000000 +0200
+++ new/lib/active_support/hash_with_indifferent_access.rb      2017-09-08 
02:48:50.000000000 +0200
@@ -221,7 +221,7 @@
     #   dup  = hash.dup
     #   dup[:a][:c] = 'c'
     #
-    #   hash[:a][:c] # => nil
+    #   hash[:a][:c] # => "c"
     #   dup[:a][:c]  # => "c"
     def dup
       self.class.new(self).tap do |new_hash|
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/lazy_load_hooks.rb 
new/lib/active_support/lazy_load_hooks.rb
--- old/lib/active_support/lazy_load_hooks.rb   2017-08-03 21:12:58.000000000 
+0200
+++ new/lib/active_support/lazy_load_hooks.rb   2017-09-08 02:48:50.000000000 
+0200
@@ -25,33 +25,51 @@
       base.class_eval do
         @load_hooks = Hash.new { |h, k| h[k] = [] }
         @loaded     = Hash.new { |h, k| h[k] = [] }
+        @run_once   = Hash.new { |h, k| h[k] = [] }
       end
     end
 
     # Declares a block that will be executed when a Rails component is fully
     # loaded.
+    #
+    # Options:
+    #
+    # * <tt>:yield</tt> - Yields the object that run_load_hooks to +block+.
+    # * <tt>:run_once</tt> - Given +block+ will run only once.
     def on_load(name, options = {}, &block)
       @loaded[name].each do |base|
-        execute_hook(base, options, block)
+        execute_hook(name, base, options, block)
       end
 
       @load_hooks[name] << [block, options]
     end
 
-    def execute_hook(base, options, block)
-      if options[:yield]
-        block.call(base)
-      else
-        base.instance_eval(&block)
-      end
-    end
-
     def run_load_hooks(name, base = Object)
       @loaded[name] << base
       @load_hooks[name].each do |hook, options|
-        execute_hook(base, options, hook)
+        execute_hook(name, base, options, hook)
       end
     end
+
+    private
+
+      def with_execution_control(name, block, once)
+        unless @run_once[name].include?(block)
+          @run_once[name] << block if once
+
+          yield
+        end
+      end
+
+      def execute_hook(name, base, options, block)
+        with_execution_control(name, block, options[:run_once]) do
+          if options[:yield]
+            block.call(base)
+          else
+            base.instance_eval(&block)
+          end
+        end
+      end
   end
 
   extend LazyLoadHooks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-08-03 21:12:58.000000000 +0200
+++ new/metadata        2017-09-08 02:48:50.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: activesupport
 version: !ruby/object:Gem::Version
-  version: 5.1.3
+  version: 5.1.4
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-08-03 00:00:00.000000000 Z
+date: 2017-09-08 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: i18n
@@ -332,7 +332,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.12
+rubygems_version: 2.6.13
 signing_key: 
 specification_version: 4
 summary: A toolkit of support libraries and Ruby core extensions extracted 
from the


Reply via email to