Hello community,

here is the log from the commit of package rubygem-activesupport-4_2 for 
openSUSE:Factory checked in at 2016-07-20 09:25:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
      2016-03-18 21:40:30.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-activesupport-4_2.new/rubygem-activesupport-4_2.changes
 2016-07-20 09:25:25.000000000 +0200
@@ -1,0 +2,35 @@
+Wed Jul 13 04:32:14 UTC 2016 - [email protected]
+
+- updated to version 4.2.7
+ see installed CHANGELOG.md
+
+  ## Rails 4.2.7 (July 12, 2016) ##
+  
+  *   Fixed `ActiveSupport::Logger.broadcast` so that calls to `#silence` now
+      properly delegate to all loggers. Silencing now properly suppresses 
logging
+      to both the log and the console.
+  
+      *Kevin McPhillips*
+  
+  *   Backported `ActiveSupport::LoggerThreadSafeLevel`. Assigning the
+      `Rails.logger.level` is now thread safe.
+  
+      *Kevin McPhillips*
+  
+  *   Fixed a problem with ActiveSupport::SafeBuffer.titleize calling 
capitalize
+      on nil.
+  
+      *Brian McManus*
+  
+  *   Time zones: Ensure that the UTC offset reflects DST changes that occurred
+      since the app started. Removes UTC offset caching, reducing performance,
+      but this is still relatively quick and isn't in any hot paths.
+  
+      *Alexey Shein*
+  
+  *   Prevent `Marshal.load` from looping infinitely when trying to autoload a 
constant
+      which resolves to a different name.
+  
+      *Olek Janiszewski*
+
+-------------------------------------------------------------------

Old:
----
  activesupport-4.2.6.gem

New:
----
  activesupport-4.2.7.gem

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

Other differences:
------------------
++++++ rubygem-activesupport-4_2.spec ++++++
--- /var/tmp/diff_new_pack.Witdno/_old  2016-07-20 09:25:26.000000000 +0200
+++ /var/tmp/diff_new_pack.Witdno/_new  2016-07-20 09:25:26.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-activesupport-4_2
-Version:        4.2.6
+Version:        4.2.7
 Release:        0
 %define mod_name activesupport
 %define mod_full_name %{mod_name}-%{version}

++++++ activesupport-4.2.6.gem -> activesupport-4.2.7.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2016-03-07 23:31:29.000000000 +0100
+++ new/CHANGELOG.md    2016-07-13 04:53:41.000000000 +0200
@@ -1,3 +1,33 @@
+## Rails 4.2.7 (July 12, 2016) ##
+
+*   Fixed `ActiveSupport::Logger.broadcast` so that calls to `#silence` now
+    properly delegate to all loggers. Silencing now properly suppresses logging
+    to both the log and the console.
+
+    *Kevin McPhillips*
+
+*   Backported `ActiveSupport::LoggerThreadSafeLevel`. Assigning the
+    `Rails.logger.level` is now thread safe.
+
+    *Kevin McPhillips*
+
+*   Fixed a problem with ActiveSupport::SafeBuffer.titleize calling capitalize
+    on nil.
+
+    *Brian McManus*
+
+*   Time zones: Ensure that the UTC offset reflects DST changes that occurred
+    since the app started. Removes UTC offset caching, reducing performance,
+    but this is still relatively quick and isn't in any hot paths.
+
+    *Alexey Shein*
+
+*   Prevent `Marshal.load` from looping infinitely when trying to autoload a 
constant
+    which resolves to a different name.
+
+    *Olek Janiszewski*
+
+
 ## Rails 4.2.6 (March 07, 2016) ##
 
 *   No changes.
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/core_ext/marshal.rb 
new/lib/active_support/core_ext/marshal.rb
--- old/lib/active_support/core_ext/marshal.rb  2016-03-07 23:31:29.000000000 
+0100
+++ new/lib/active_support/core_ext/marshal.rb  2016-07-13 04:53:41.000000000 
+0200
@@ -5,10 +5,13 @@
     def load_with_autoloading(source)
       load_without_autoloading(source)
     rescue ArgumentError, NameError => exc
-      if exc.message.match(%r|undefined class/module (.+)|)
+      if exc.message.match(%r|undefined class/module (.+?)(::)?\z|)
         # try loading the class/module
-        $1.constantize
-        # if it is a IO we need to go back to read the object
+        loaded = $1.constantize
+
+        raise unless $1 == loaded.name
+
+        # if it is an IO we need to go back to read the object
         source.rewind if source.respond_to?(:rewind)
         retry
       else
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       2016-03-07 23:31:29.000000000 
+0100
+++ new/lib/active_support/gem_version.rb       2016-07-13 04:53:41.000000000 
+0200
@@ -7,7 +7,7 @@
   module VERSION
     MAJOR = 4
     MINOR = 2
-    TINY  = 6
+    TINY  = 7
     PRE   = nil
 
     STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/inflector/methods.rb 
new/lib/active_support/inflector/methods.rb
--- old/lib/active_support/inflector/methods.rb 2016-03-07 23:31:29.000000000 
+0100
+++ new/lib/active_support/inflector/methods.rb 2016-07-13 04:53:41.000000000 
+0200
@@ -153,7 +153,7 @@
     #   'TheManWithoutAPast'.titleize       # => "The Man Without A Past"
     #   'raiders_of_the_lost_ark'.titleize  # => "Raiders Of The Lost Ark"
     def titleize(word)
-      humanize(underscore(word)).gsub(/\b(?<!['’`])[a-z]/) { $&.capitalize }
+      humanize(underscore(word)).gsub(/\b(?<!['’`])[a-z]/) { |match| 
match.capitalize }
     end
 
     # Create the name of a table like Rails does for models to table names. 
This
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/logger.rb 
new/lib/active_support/logger.rb
--- old/lib/active_support/logger.rb    2016-03-07 23:31:29.000000000 +0100
+++ new/lib/active_support/logger.rb    2016-07-13 04:53:41.000000000 +0200
@@ -1,9 +1,11 @@
 require 'active_support/core_ext/module/attribute_accessors'
 require 'active_support/logger_silence'
+require 'active_support/logger_thread_safe_level'
 require 'logger'
 
 module ActiveSupport
   class Logger < ::Logger
+    include ActiveSupport::LoggerThreadSafeLevel
     include LoggerSilence
 
     # Broadcasts logs to multiple loggers.
@@ -38,6 +40,29 @@
           logger.level = level
           super(level)
         end
+
+        define_method(:local_level=) do |level|
+          logger.local_level = level if logger.respond_to?(:local_level=)
+          super(level) if respond_to?(:local_level=)
+        end
+
+        define_method(:silence) do |level = Logger::ERROR, &block|
+          if logger.respond_to?(:silence) && logger.method(:silence).owner != 
::Kernel
+            logger.silence(level) do
+              if respond_to?(:silence) && method(:silence).owner != ::Kernel
+                super(level, &block)
+              else
+                block.call(self)
+              end
+            end
+          else
+            if respond_to?(:silence) && method(:silence).owner != ::Kernel
+              super(level, &block)
+            else
+              block.call(self)
+            end
+          end
+        end
       end
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/logger_silence.rb 
new/lib/active_support/logger_silence.rb
--- old/lib/active_support/logger_silence.rb    2016-03-07 23:31:29.000000000 
+0100
+++ new/lib/active_support/logger_silence.rb    2016-07-13 04:53:41.000000000 
+0200
@@ -3,43 +3,25 @@
 
 module LoggerSilence
   extend ActiveSupport::Concern
-  
+
   included do
     cattr_accessor :silencer
-    attr_reader :local_levels
     self.silencer = true
   end
 
-
-  def after_initialize
-    @local_levels = ThreadSafe::Cache.new(:initial_capacity => 2)
-  end
-
-  def local_log_id
-    Thread.current.__id__
-  end
-
-  def level
-    local_levels[local_log_id] || super
-  end
-
   # Silences the logger for the duration of the block.
   def silence(temporary_level = Logger::ERROR)
     if silencer
       begin
-        old_local_level            = local_levels[local_log_id]
-        local_levels[local_log_id] = temporary_level
+        old_local_level            = local_level
+        self.local_level           = temporary_level
 
         yield self
       ensure
-        if old_local_level
-          local_levels[local_log_id] = old_local_level
-        else
-          local_levels.delete(local_log_id)
-        end
+        self.local_level = old_local_level
       end
     else
       yield self
     end
   end
-end
\ No newline at end of file
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/logger_thread_safe_level.rb 
new/lib/active_support/logger_thread_safe_level.rb
--- old/lib/active_support/logger_thread_safe_level.rb  1970-01-01 
01:00:00.000000000 +0100
+++ new/lib/active_support/logger_thread_safe_level.rb  2016-07-13 
04:53:41.000000000 +0200
@@ -0,0 +1,32 @@
+require 'active_support/concern'
+require 'thread_safe'
+
+module ActiveSupport
+  module LoggerThreadSafeLevel
+    extend ActiveSupport::Concern
+
+    def after_initialize
+      @local_levels = ThreadSafe::Cache.new
+    end
+
+    def local_log_id
+      Thread.current.__id__
+    end
+
+    def local_level
+      @local_levels[local_log_id]
+    end
+
+    def local_level=(level)
+      if level
+        @local_levels[local_log_id] = level
+      else
+        @local_levels.delete(local_log_id)
+      end
+    end
+
+    def level
+      local_level || super
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/values/time_zone.rb 
new/lib/active_support/values/time_zone.rb
--- old/lib/active_support/values/time_zone.rb  2016-03-07 23:31:29.000000000 
+0100
+++ new/lib/active_support/values/time_zone.rb  2016-07-13 04:53:41.000000000 
+0200
@@ -271,7 +271,6 @@
       @name = name
       @utc_offset = utc_offset
       @tzinfo = tzinfo || TimeZone.find_tzinfo(name)
-      @current_period = nil
     end
 
     # Returns the offset of this time zone from UTC in seconds.
@@ -279,8 +278,7 @@
       if @utc_offset
         @utc_offset
       else
-        @current_period ||= tzinfo.current_period if tzinfo
-        @current_period.utc_offset if @current_period
+        tzinfo.current_period.utc_offset if tzinfo && tzinfo.current_period
       end
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/xml_mini/rexml.rb 
new/lib/active_support/xml_mini/rexml.rb
--- old/lib/active_support/xml_mini/rexml.rb    2016-03-07 23:31:29.000000000 
+0100
+++ new/lib/active_support/xml_mini/rexml.rb    2016-07-13 04:53:41.000000000 
+0200
@@ -20,11 +20,9 @@
         data = StringIO.new(data || '')
       end
 
-      char = data.getc
-      if char.nil?
+      if data.eof?
         {}
       else
-        data.ungetc(char)
         silence_warnings { require 'rexml/document' } unless 
defined?(REXML::Document)
         doc = REXML::Document.new(data)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-03-07 23:31:29.000000000 +0100
+++ new/metadata        2016-07-13 04:53:41.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: activesupport
 version: !ruby/object:Gem::Version
-  version: 4.2.6
+  version: 4.2.7
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-03-07 00:00:00.000000000 Z
+date: 2016-07-13 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: i18n
@@ -266,6 +266,7 @@
 - lib/active_support/log_subscriber/test_helper.rb
 - lib/active_support/logger.rb
 - lib/active_support/logger_silence.rb
+- lib/active_support/logger_thread_safe_level.rb
 - lib/active_support/message_encryptor.rb
 - lib/active_support/message_verifier.rb
 - lib/active_support/multibyte.rb
@@ -339,7 +340,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.5.1
+rubygems_version: 2.4.5.1
 signing_key: 
 specification_version: 4
 summary: A toolkit of support libraries and Ruby core extensions extracted 
from the


Reply via email to