Hello community,

here is the log from the commit of package rubygem-actionpack-5.2 for 
openSUSE:Factory checked in at 2019-01-21 10:27:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actionpack-5.2 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-actionpack-5.2.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-actionpack-5.2"

Mon Jan 21 10:27:32 2019 rev:4 rq:656406 version:5.2.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-actionpack-5.2/rubygem-actionpack-5.2.changes
    2018-12-06 12:18:02.353473276 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-actionpack-5.2.new.28833/rubygem-actionpack-5.2.changes
 2019-01-21 10:27:34.509604288 +0100
@@ -1,0 +2,50 @@
+Sat Dec  8 16:12:29 UTC 2018 - Stephan Kulow <co...@suse.com>
+
+- updated to version 5.2.2
+ see installed CHANGELOG.md
+
+  ## Rails 5.2.2 (December 04, 2018) ##
+  
+  *   Reset Capybara sessions if failed system test screenshot raising an 
exception.
+  
+      Reset Capybara sessions if `take_failed_screenshot` raise exception
+      in system test `after_teardown`.
+  
+      *Maxim Perepelitsa*
+  
+  *   Use request object for context if there's no controller
+  
+      There is no controller instance when using a redirect route or a
+      mounted rack application so pass the request object as the context
+      when resolving dynamic CSP sources in this scenario.
+  
+      Fixes #34200.
+  
+      *Andrew White*
+  
+  *   Apply mapping to symbols returned from dynamic CSP sources
+  
+      Previously if a dynamic source returned a symbol such as :self it
+      would be converted to a string implicity, e.g:
+  
+          policy.default_src -> { :self }
+  
+      would generate the header:
+  
+          Content-Security-Policy: default-src self
+  
+      and now it generates:
+  
+          Content-Security-Policy: default-src 'self'
+  
+      *Andrew White*
+  
+  *   Fix `rails routes -c` for controller name consists of multiple word.
+  
+      *Yoshiyuki Kinjo*
+  
+  *   Call the `#redirect_to` block in controller context.
+  
+      *Steven Peckins*
+
+-------------------------------------------------------------------

Old:
----
  actionpack-5.2.1.1.gem

New:
----
  actionpack-5.2.2.gem

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

Other differences:
------------------
++++++ rubygem-actionpack-5.2.spec ++++++
--- /var/tmp/diff_new_pack.2i9Bb5/_old  2019-01-21 10:27:34.977603775 +0100
+++ /var/tmp/diff_new_pack.2i9Bb5/_new  2019-01-21 10:27:34.981603771 +0100
@@ -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-actionpack-5.2
-Version:        5.2.1.1
+Version:        5.2.2
 Release:        0
 %define mod_name actionpack
 %define mod_full_name %{mod_name}-%{version}
@@ -36,9 +36,9 @@
 %endif
 # /MANUAL
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 5
 BuildRequires:  %{ruby >= 2.2.2}
 BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  ruby-macros >= 5
 Url:            http://rubyonrails.org
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml

++++++ actionpack-5.2.1.1.gem -> actionpack-5.2.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2018-11-27 21:12:20.000000000 +0100
+++ new/CHANGELOG.md    2018-12-04 19:12:06.000000000 +0100
@@ -1,3 +1,48 @@
+## Rails 5.2.2 (December 04, 2018) ##
+
+*   Reset Capybara sessions if failed system test screenshot raising an 
exception.
+
+    Reset Capybara sessions if `take_failed_screenshot` raise exception
+    in system test `after_teardown`.
+
+    *Maxim Perepelitsa*
+
+*   Use request object for context if there's no controller
+
+    There is no controller instance when using a redirect route or a
+    mounted rack application so pass the request object as the context
+    when resolving dynamic CSP sources in this scenario.
+
+    Fixes #34200.
+
+    *Andrew White*
+
+*   Apply mapping to symbols returned from dynamic CSP sources
+
+    Previously if a dynamic source returned a symbol such as :self it
+    would be converted to a string implicity, e.g:
+
+        policy.default_src -> { :self }
+
+    would generate the header:
+
+        Content-Security-Policy: default-src self
+
+    and now it generates:
+
+        Content-Security-Policy: default-src 'self'
+
+    *Andrew White*
+
+*   Fix `rails routes -c` for controller name consists of multiple word.
+
+    *Yoshiyuki Kinjo*
+
+*   Call the `#redirect_to` block in controller context.
+
+    *Steven Peckins*
+
+
 ## Rails 5.2.1.1 (November 27, 2018) ##
 
 *   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/abstract_controller.rb 
new/lib/abstract_controller.rb
--- old/lib/abstract_controller.rb      2018-11-27 21:12:20.000000000 +0100
+++ new/lib/abstract_controller.rb      2018-12-04 19:12:06.000000000 +0100
@@ -7,6 +7,7 @@
 module AbstractController
   extend ActiveSupport::Autoload
 
+  autoload :ActionNotFound, "abstract_controller/base"
   autoload :Base
   autoload :Caching
   autoload :Callbacks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_controller/metal/redirecting.rb 
new/lib/action_controller/metal/redirecting.rb
--- old/lib/action_controller/metal/redirecting.rb      2018-11-27 
21:12:20.000000000 +0100
+++ new/lib/action_controller/metal/redirecting.rb      2018-12-04 
19:12:06.000000000 +0100
@@ -105,7 +105,7 @@
       when String
         request.protocol + request.host_with_port + options
       when Proc
-        _compute_redirect_to_location request, options.call
+        _compute_redirect_to_location request, instance_eval(&options)
       else
         url_for(options)
       end.delete("\0\r\n")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_dispatch/http/content_security_policy.rb 
new/lib/action_dispatch/http/content_security_policy.rb
--- old/lib/action_dispatch/http/content_security_policy.rb     2018-11-27 
21:12:20.000000000 +0100
+++ new/lib/action_dispatch/http/content_security_policy.rb     2018-12-04 
19:12:07.000000000 +0100
@@ -22,7 +22,8 @@
 
         if policy = request.content_security_policy
           nonce = request.content_security_policy_nonce
-          headers[header_name(request)] = 
policy.build(request.controller_instance, nonce)
+          context = request.controller_instance || request
+          headers[header_name(request)] = policy.build(context, nonce)
         end
 
         response
@@ -256,7 +257,8 @@
           if context.nil?
             raise RuntimeError, "Missing context for the dynamic content 
security policy source: #{source.inspect}"
           else
-            context.instance_exec(&source)
+            resolved = context.instance_exec(&source)
+            resolved.is_a?(Symbol) ? apply_mapping(resolved) : resolved
           end
         else
           raise RuntimeError, "Unexpected content security policy source: 
#{source.inspect}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_dispatch/request/utils.rb 
new/lib/action_dispatch/request/utils.rb
--- old/lib/action_dispatch/request/utils.rb    2018-11-27 21:12:20.000000000 
+0100
+++ new/lib/action_dispatch/request/utils.rb    2018-12-04 19:12:07.000000000 
+0100
@@ -1,5 +1,7 @@
 # frozen_string_literal: true
 
+require "active_support/core_ext/hash/indifferent_access"
+
 module ActionDispatch
   class Request
     class Utils # :nodoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_dispatch/routing/inspector.rb 
new/lib/action_dispatch/routing/inspector.rb
--- old/lib/action_dispatch/routing/inspector.rb        2018-11-27 
21:12:20.000000000 +0100
+++ new/lib/action_dispatch/routing/inspector.rb        2018-12-04 
19:12:07.000000000 +0100
@@ -84,7 +84,7 @@
 
         def normalize_filter(filter)
           if filter.is_a?(Hash) && filter[:controller]
-            { controller: 
/#{filter[:controller].downcase.sub(/_?controller\z/, '').sub('::', '/')}/ }
+            { controller: 
/#{filter[:controller].underscore.sub(/_?controller\z/, "")}/ }
           elsif filter
             { controller: /#{filter}/, action: /#{filter}/, verb: /#{filter}/, 
name: /#{filter}/, path: /#{filter}/ }
           end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_dispatch/routing/mapper.rb 
new/lib/action_dispatch/routing/mapper.rb
--- old/lib/action_dispatch/routing/mapper.rb   2018-11-27 21:12:20.000000000 
+0100
+++ new/lib/action_dispatch/routing/mapper.rb   2018-12-04 19:12:07.000000000 
+0100
@@ -390,7 +390,7 @@
       # for root cases, where the latter is the correct one.
       def self.normalize_path(path)
         path = Journey::Router::Utils.normalize_path(path)
-        path.gsub!(%r{/(\(+)/?}, '\1/') unless path =~ %r{^/\(+[^)]+\)$}
+        path.gsub!(%r{/(\(+)/?}, '\1/') unless path =~ %r{^/(\(+[^)]+\)){1,}$}
         path
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb 
new/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
--- old/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb   
2018-11-27 21:12:20.000000000 +0100
+++ new/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb   
2018-12-04 19:12:07.000000000 +0100
@@ -17,8 +17,11 @@
         end
 
         def after_teardown
-          take_failed_screenshot
-          Capybara.reset_sessions!
+          begin
+            take_failed_screenshot
+          ensure
+            Capybara.reset_sessions!
+          end
         ensure
           super
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_pack/gem_version.rb 
new/lib/action_pack/gem_version.rb
--- old/lib/action_pack/gem_version.rb  2018-11-27 21:12:20.000000000 +0100
+++ new/lib/action_pack/gem_version.rb  2018-12-04 19:12:07.000000000 +0100
@@ -9,8 +9,8 @@
   module VERSION
     MAJOR = 5
     MINOR = 2
-    TINY  = 1
-    PRE   = "1"
+    TINY  = 2
+    PRE   = nil
 
     STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-11-27 21:12:20.000000000 +0100
+++ new/metadata        2018-12-04 19:12:06.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: actionpack
 version: !ruby/object:Gem::Version
-  version: 5.2.1.1
+  version: 5.2.2
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-11-27 00:00:00.000000000 Z
+date: 2018-12-04 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: activesupport
@@ -16,14 +16,14 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.2.1.1
+        version: 5.2.2
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.2.1.1
+        version: 5.2.2
 - !ruby/object:Gem::Dependency
   name: rack
   requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.2.1.1
+        version: 5.2.2
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.2.1.1
+        version: 5.2.2
 - !ruby/object:Gem::Dependency
   name: activemodel
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.2.1.1
+        version: 5.2.2
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.2.1.1
+        version: 5.2.2
 description: Web apps on Rails. Simple, battle-tested conventions for building 
and
   testing MVC web applications. Works with any Rack-compatible server.
 email: da...@loudthinking.com
@@ -293,8 +293,8 @@
 licenses:
 - MIT
 metadata:
-  source_code_uri: https://github.com/rails/rails/tree/v5.2.1.1/actionpack
-  changelog_uri: 
https://github.com/rails/rails/blob/v5.2.1.1/actionpack/CHANGELOG.md
+  source_code_uri: https://github.com/rails/rails/tree/v5.2.2/actionpack
+  changelog_uri: 
https://github.com/rails/rails/blob/v5.2.2/actionpack/CHANGELOG.md
 post_install_message: 
 rdoc_options: []
 require_paths:


Reply via email to