Hello community,

here is the log from the commit of package rubygem-activesupport-5.2 for 
openSUSE:Factory checked in at 2019-04-01 12:37:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-5.2 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-activesupport-5.2"

Mon Apr  1 12:37:08 2019 rev:6 rq:689711 version:5.2.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-activesupport-5.2/rubygem-activesupport-5.2.changes
      2019-03-14 15:03:29.179644710 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.25356/rubygem-activesupport-5.2.changes
   2019-04-01 12:37:10.149879949 +0200
@@ -1,0 +2,30 @@
+Fri Mar 29 05:54:45 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 5.2.3
+ see installed CHANGELOG.md
+
+  ## Rails 5.2.3 (March 27, 2019) ##
+  
+  *   Add `ActiveSupport::HashWithIndifferentAccess#assoc`.
+  
+      `assoc` can now be called with either a string or a symbol.
+  
+      *Stefan Schüßler*
+  
+  *   Fix `String#safe_constantize` throwing a `LoadError` for incorrectly 
cased constant references.
+  
+      *Keenan Brock*
+  
+  *   Allow Range#=== and Range#cover? on Range
+  
+      `Range#cover?` can now accept a range argument like `Range#include?` and
+      `Range#===`. `Range#===` works correctly on Ruby 2.6. `Range#include?` 
is moved
+      into a new file, with these two methods.
+  
+      *utilum*
+  
+  *   If the same block is `included` multiple times for a Concern, an 
exception is no longer raised.
+  
+      *Mark J. Titorenko*, *Vlad Bokov*
+
+-------------------------------------------------------------------

Old:
----
  activesupport-5.2.2.1.gem

New:
----
  activesupport-5.2.3.gem

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

Other differences:
------------------
++++++ rubygem-activesupport-5.2.spec ++++++
--- /var/tmp/diff_new_pack.IUn5MW/_old  2019-04-01 12:37:11.037880383 +0200
+++ /var/tmp/diff_new_pack.IUn5MW/_new  2019-04-01 12:37:11.037880383 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-activesupport-5.2
-Version:        5.2.2.1
+Version:        5.2.3
 Release:        0
 %define mod_name activesupport
 %define mod_full_name %{mod_name}-%{version}
@@ -36,10 +36,10 @@
 %endif
 # /MANUAL
 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.2.2.1.gem -> activesupport-5.2.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2019-03-13 17:46:53.000000000 +0100
+++ new/CHANGELOG.md    2019-03-28 03:59:21.000000000 +0100
@@ -1,3 +1,28 @@
+## Rails 5.2.3 (March 27, 2019) ##
+
+*   Add `ActiveSupport::HashWithIndifferentAccess#assoc`.
+
+    `assoc` can now be called with either a string or a symbol.
+
+    *Stefan Schüßler*
+
+*   Fix `String#safe_constantize` throwing a `LoadError` for incorrectly cased 
constant references.
+
+    *Keenan Brock*
+
+*   Allow Range#=== and Range#cover? on Range
+
+    `Range#cover?` can now accept a range argument like `Range#include?` and
+    `Range#===`. `Range#===` works correctly on Ruby 2.6. `Range#include?` is 
moved
+    into a new file, with these two methods.
+
+    *utilum*
+
+*   If the same block is `included` multiple times for a Concern, an exception 
is no longer raised.
+
+    *Mark J. Titorenko*, *Vlad Bokov*
+
+
 ## Rails 5.2.2.1 (March 11, 2019) ##
 
 *   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/concern.rb 
new/lib/active_support/concern.rb
--- old/lib/active_support/concern.rb   2019-03-13 17:46:53.000000000 +0100
+++ new/lib/active_support/concern.rb   2019-03-28 03:59:21.000000000 +0100
@@ -125,9 +125,13 @@
 
     def included(base = nil, &block)
       if base.nil?
-        raise MultipleIncludedBlocks if 
instance_variable_defined?(:@_included_block)
-
-        @_included_block = block
+        if instance_variable_defined?(:@_included_block)
+          if @_included_block.source_location != block.source_location
+            raise MultipleIncludedBlocks
+          end
+        else
+          @_included_block = block
+        end
       else
         super
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/core_ext/range/compare_range.rb 
new/lib/active_support/core_ext/range/compare_range.rb
--- old/lib/active_support/core_ext/range/compare_range.rb      1970-01-01 
01:00:00.000000000 +0100
+++ new/lib/active_support/core_ext/range/compare_range.rb      2019-03-28 
03:59:22.000000000 +0100
@@ -0,0 +1,61 @@
+# frozen_string_literal: true
+
+module ActiveSupport
+  module CompareWithRange #:nodoc:
+    # Extends the default Range#=== to support range comparisons.
+    #  (1..5) === (1..5) # => true
+    #  (1..5) === (2..3) # => true
+    #  (1..5) === (2..6) # => false
+    #
+    # The native Range#=== behavior is untouched.
+    #  ('a'..'f') === ('c') # => true
+    #  (5..9) === (11) # => false
+    def ===(value)
+      if value.is_a?(::Range)
+        # 1...10 includes 1..9 but it does not include 1..10.
+        operator = exclude_end? && !value.exclude_end? ? :< : :<=
+        super(value.first) && value.last.send(operator, last)
+      else
+        super
+      end
+    end
+
+    # Extends the default Range#include? to support range comparisons.
+    #  (1..5).include?(1..5) # => true
+    #  (1..5).include?(2..3) # => true
+    #  (1..5).include?(2..6) # => false
+    #
+    # The native Range#include? behavior is untouched.
+    #  ('a'..'f').include?('c') # => true
+    #  (5..9).include?(11) # => false
+    def include?(value)
+      if value.is_a?(::Range)
+        # 1...10 includes 1..9 but it does not include 1..10.
+        operator = exclude_end? && !value.exclude_end? ? :< : :<=
+        super(value.first) && value.last.send(operator, last)
+      else
+        super
+      end
+    end
+
+    # Extends the default Range#cover? to support range comparisons.
+    #  (1..5).cover?(1..5) # => true
+    #  (1..5).cover?(2..3) # => true
+    #  (1..5).cover?(2..6) # => false
+    #
+    # The native Range#cover? behavior is untouched.
+    #  ('a'..'f').cover?('c') # => true
+    #  (5..9).cover?(11) # => false
+    def cover?(value)
+      if value.is_a?(::Range)
+        # 1...10 covers 1..9 but it does not cover 1..10.
+        operator = exclude_end? && !value.exclude_end? ? :< : :<=
+        super(value.first) && value.last.send(operator, last)
+      else
+        super
+      end
+    end
+  end
+end
+
+Range.prepend(ActiveSupport::CompareWithRange)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/core_ext/range/include_range.rb 
new/lib/active_support/core_ext/range/include_range.rb
--- old/lib/active_support/core_ext/range/include_range.rb      2019-03-13 
17:46:53.000000000 +0100
+++ new/lib/active_support/core_ext/range/include_range.rb      2019-03-28 
03:59:22.000000000 +0100
@@ -1,25 +1,3 @@
 # frozen_string_literal: true
 
-module ActiveSupport
-  module IncludeWithRange #:nodoc:
-    # Extends the default Range#include? to support range comparisons.
-    #  (1..5).include?(1..5) # => true
-    #  (1..5).include?(2..3) # => true
-    #  (1..5).include?(2..6) # => false
-    #
-    # The native Range#include? behavior is untouched.
-    #  ('a'..'f').include?('c') # => true
-    #  (5..9).include?(11) # => false
-    def include?(value)
-      if value.is_a?(::Range)
-        # 1...10 includes 1..9 but it does not include 1..10.
-        operator = exclude_end? && !value.exclude_end? ? :< : :<=
-        super(value.first) && value.last.send(operator, last)
-      else
-        super
-      end
-    end
-  end
-end
-
-Range.prepend(ActiveSupport::IncludeWithRange)
+require "active_support/core_ext/range/compare_range"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/core_ext/range.rb 
new/lib/active_support/core_ext/range.rb
--- old/lib/active_support/core_ext/range.rb    2019-03-13 17:46:53.000000000 
+0100
+++ new/lib/active_support/core_ext/range.rb    2019-03-28 03:59:22.000000000 
+0100
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 require "active_support/core_ext/range/conversions"
-require "active_support/core_ext/range/include_range"
+require "active_support/core_ext/range/compare_range"
 require "active_support/core_ext/range/include_time_with_zone"
 require "active_support/core_ext/range/overlaps"
 require "active_support/core_ext/range/each"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/deprecation/method_wrappers.rb 
new/lib/active_support/deprecation/method_wrappers.rb
--- old/lib/active_support/deprecation/method_wrappers.rb       2019-03-13 
17:46:53.000000000 +0100
+++ new/lib/active_support/deprecation/method_wrappers.rb       2019-03-28 
03:59:22.000000000 +0100
@@ -53,27 +53,37 @@
         options = method_names.extract_options!
         deprecator = options.delete(:deprecator) || self
         method_names += options.keys
+        mod = Module.new
 
         method_names.each do |method_name|
-          aliased_method, punctuation = method_name.to_s.sub(/([?!=])$/, ""), 
$1
-          with_method = "#{aliased_method}_with_deprecation#{punctuation}"
-          without_method = 
"#{aliased_method}_without_deprecation#{punctuation}"
+          if target_module.method_defined?(method_name) || 
target_module.private_method_defined?(method_name)
+            aliased_method, punctuation = method_name.to_s.sub(/([?!=])$/, 
""), $1
+            with_method = "#{aliased_method}_with_deprecation#{punctuation}"
+            without_method = 
"#{aliased_method}_without_deprecation#{punctuation}"
 
-          target_module.send(:define_method, with_method) do |*args, &block|
-            deprecator.deprecation_warning(method_name, options[method_name])
-            send(without_method, *args, &block)
-          end
+            target_module.send(:define_method, with_method) do |*args, &block|
+              deprecator.deprecation_warning(method_name, options[method_name])
+              send(without_method, *args, &block)
+            end
 
-          target_module.send(:alias_method, without_method, method_name)
-          target_module.send(:alias_method, method_name, with_method)
+            target_module.send(:alias_method, without_method, method_name)
+            target_module.send(:alias_method, method_name, with_method)
 
-          case
-          when target_module.protected_method_defined?(without_method)
-            target_module.send(:protected, method_name)
-          when target_module.private_method_defined?(without_method)
-            target_module.send(:private, method_name)
+            case
+            when target_module.protected_method_defined?(without_method)
+              target_module.send(:protected, method_name)
+            when target_module.private_method_defined?(without_method)
+              target_module.send(:private, method_name)
+            end
+          else
+            mod.send(:define_method, method_name) do |*args, &block|
+              deprecator.deprecation_warning(method_name, options[method_name])
+              super(*args, &block)
+            end
           end
         end
+
+        target_module.prepend(mod) unless mod.instance_methods(false).empty?
       end
     end
   end
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       2019-03-13 17:46:53.000000000 
+0100
+++ new/lib/active_support/gem_version.rb       2019-03-28 03:59:22.000000000 
+0100
@@ -9,8 +9,8 @@
   module VERSION
     MAJOR = 5
     MINOR = 2
-    TINY  = 2
-    PRE   = "1"
+    TINY  = 3
+    PRE   = nil
 
     STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
   end
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      2019-03-13 
17:46:53.000000000 +0100
+++ new/lib/active_support/hash_with_indifferent_access.rb      2019-03-28 
03:59:22.000000000 +0100
@@ -163,6 +163,19 @@
       super(convert_key(key))
     end
 
+    # Same as <tt>Hash#assoc</tt> where the key passed as argument can be
+    # either a string or a symbol:
+    #
+    #   counters = ActiveSupport::HashWithIndifferentAccess.new
+    #   counters[:foo] = 1
+    #
+    #   counters.assoc('foo') # => ["foo", 1]
+    #   counters.assoc(:foo)  # => ["foo", 1]
+    #   counters.assoc(:zoo)  # => nil
+    def assoc(key)
+      super(convert_key(key))
+    end
+
     # Same as <tt>Hash#fetch</tt> where the key passed as argument can be
     # either a string or a symbol:
     #
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 2019-03-13 17:46:53.000000000 
+0100
+++ new/lib/active_support/inflector/methods.rb 2019-03-28 03:59:22.000000000 
+0100
@@ -329,6 +329,8 @@
         e.name.to_s == camel_cased_word.to_s)
     rescue ArgumentError => e
       raise unless /not missing constant 
#{const_regexp(camel_cased_word)}!$/.match?(e.message)
+    rescue LoadError => e
+      raise unless /Unable to autoload constant 
#{const_regexp(camel_cased_word)}/.match?(e.message)
     end
 
     # Returns the suffix that should be added to a number to denote the 
position
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_support/xml_mini.rb 
new/lib/active_support/xml_mini.rb
--- old/lib/active_support/xml_mini.rb  2019-03-13 17:46:53.000000000 +0100
+++ new/lib/active_support/xml_mini.rb  2019-03-28 03:59:22.000000000 +0100
@@ -75,7 +75,7 @@
             begin
               BigDecimal(number)
             rescue ArgumentError
-              BigDecimal("0")
+              BigDecimal(number.to_f.to_s)
             end
           else
             BigDecimal(number)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-03-13 17:46:53.000000000 +0100
+++ new/metadata        2019-03-28 03:59:21.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: activesupport
 version: !ruby/object:Gem::Version
-  version: 5.2.2.1
+  version: 5.2.3
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-03-13 00:00:00.000000000 Z
+date: 2019-03-28 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: i18n
@@ -197,6 +197,7 @@
 - lib/active_support/core_ext/object/try.rb
 - lib/active_support/core_ext/object/with_options.rb
 - lib/active_support/core_ext/range.rb
+- lib/active_support/core_ext/range/compare_range.rb
 - lib/active_support/core_ext/range/conversions.rb
 - lib/active_support/core_ext/range/each.rb
 - lib/active_support/core_ext/range/include_range.rb
@@ -331,8 +332,8 @@
 licenses:
 - MIT
 metadata:
-  source_code_uri: https://github.com/rails/rails/tree/v5.2.2.1/activesupport
-  changelog_uri: 
https://github.com/rails/rails/blob/v5.2.2.1/activesupport/CHANGELOG.md
+  source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activesupport
+  changelog_uri: 
https://github.com/rails/rails/blob/v5.2.3/activesupport/CHANGELOG.md
 post_install_message: 
 rdoc_options:
 - "--encoding"


Reply via email to