Hello community,
here is the log from the commit of package rubygem-actionpack-6.0 for
openSUSE:Factory checked in at 2019-11-13 13:24:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actionpack-6.0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-actionpack-6.0.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-actionpack-6.0"
Wed Nov 13 13:24:59 2019 rev:2 rq:747681 version:6.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-actionpack-6.0/rubygem-actionpack-6.0.changes
2019-08-19 21:40:19.620302963 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-actionpack-6.0.new.2990/rubygem-actionpack-6.0.changes
2019-11-13 13:25:08.307498397 +0100
@@ -1,0 +2,19 @@
+Tue Nov 12 13:28:17 UTC 2019 - Manuel Schnitzer <[email protected]>
+
+- updated to version 6.0.1
+
+* `ActionDispatch::SystemTestCase` now inherits from
`ActiveSupport::TestCase`
+ rather than `ActionDispatch::IntegrationTest`. This permits running jobs in
+ system tests.
+
+ *George Claghorn*, *Edouard Chin*
+
+* Registered MIME types may contain extra flags:
+
+ ```ruby
+ Mime::Type.register "text/html; fragment", :html_fragment
+ ```
+
+ *Aaron Patterson*
+
+-------------------------------------------------------------------
Old:
----
actionpack-6.0.0.gem
New:
----
actionpack-6.0.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-actionpack-6.0.spec ++++++
--- /var/tmp/diff_new_pack.edcjip/_old 2019-11-13 13:25:08.771498880 +0100
+++ /var/tmp/diff_new_pack.edcjip/_new 2019-11-13 13:25:08.771498880 +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-6.0
-Version: 6.0.0
+Version: 6.0.1
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.5.0}
BuildRequires: %{rubygem gem2rpm}
+BuildRequires: ruby-macros >= 5
Url: https://rubyonrails.org
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
++++++ actionpack-6.0.0.gem -> actionpack-6.0.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-08-16 19:58:59.000000000 +0200
+++ new/CHANGELOG.md 2019-11-05 15:37:45.000000000 +0100
@@ -1,3 +1,20 @@
+## Rails 6.0.1 (November 5, 2019) ##
+
+* `ActionDispatch::SystemTestCase` now inherits from
`ActiveSupport::TestCase`
+ rather than `ActionDispatch::IntegrationTest`. This permits running jobs in
+ system tests.
+
+ *George Claghorn*, *Edouard Chin*
+
+* Registered MIME types may contain extra flags:
+
+ ```ruby
+ Mime::Type.register "text/html; fragment", :html_fragment
+ ```
+
+ *Aaron Patterson*
+
+
## Rails 6.0.0 (August 16, 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/action_controller/metal/exceptions.rb
new/lib/action_controller/metal/exceptions.rb
--- old/lib/action_controller/metal/exceptions.rb 2019-08-16
19:58:59.000000000 +0200
+++ new/lib/action_controller/metal/exceptions.rb 2019-11-05
15:37:45.000000000 +0100
@@ -27,7 +27,7 @@
class MethodNotAllowed < ActionControllerError #:nodoc:
def initialize(*allowed_methods)
- super("Only #{allowed_methods.to_sentence(locale: :en)} requests are
allowed.")
+ super("Only #{allowed_methods.to_sentence} requests are allowed.")
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_controller/metal/params_wrapper.rb
new/lib/action_controller/metal/params_wrapper.rb
--- old/lib/action_controller/metal/params_wrapper.rb 2019-08-16
19:58:59.000000000 +0200
+++ new/lib/action_controller/metal/params_wrapper.rb 2019-11-05
15:37:45.000000000 +0100
@@ -115,7 +115,7 @@
if m.respond_to?(:nested_attributes_options) &&
m.nested_attributes_options.keys.any?
self.include += m.nested_attributes_options.keys.map do |key|
- key.to_s.concat("_attributes")
+ (+key.to_s).concat("_attributes")
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_controller/test_case.rb
new/lib/action_controller/test_case.rb
--- old/lib/action_controller/test_case.rb 2019-08-16 19:58:59.000000000
+0200
+++ new/lib/action_controller/test_case.rb 2019-11-05 15:37:45.000000000
+0100
@@ -457,6 +457,7 @@
def process(action, method: "GET", params: nil, session: nil, body: nil,
flash: {}, format: nil, xhr: false, as: nil)
check_required_ivars
+ action = +action.to_s
http_method = method.to_s.upcase
@html_document = nil
@@ -488,11 +489,11 @@
parameters[:format] = format
end
- generated_extras =
@routes.generate_extras(parameters.merge(controller: controller_class_name,
action: action.to_s))
+ generated_extras =
@routes.generate_extras(parameters.merge(controller: controller_class_name,
action: action))
generated_path = generated_path(generated_extras)
query_string_keys = query_parameter_names(generated_extras)
- @request.assign_parameters(@routes, controller_class_name,
action.to_s, parameters, generated_path, query_string_keys)
+ @request.assign_parameters(@routes, controller_class_name, action,
parameters, generated_path, query_string_keys)
@request.session.update(session) if session
@request.flash.update(flash || {})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_controller.rb new/lib/action_controller.rb
--- old/lib/action_controller.rb 2019-08-16 19:58:59.000000000 +0200
+++ new/lib/action_controller.rb 2019-11-05 15:37:45.000000000 +0100
@@ -3,7 +3,6 @@
require "active_support/rails"
require "abstract_controller"
require "action_dispatch"
-require "action_controller/metal/live"
require "action_controller/metal/strong_parameters"
module ActionController
@@ -21,6 +20,10 @@
end
autoload_under "metal" do
+ eager_autoload do
+ autoload :Live
+ end
+
autoload :ConditionalGet
autoload :ContentSecurityPolicy
autoload :Cookies
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_dispatch/http/response.rb
new/lib/action_dispatch/http/response.rb
--- old/lib/action_dispatch/http/response.rb 2019-08-16 19:58:59.000000000
+0200
+++ new/lib/action_dispatch/http/response.rb 2019-11-05 15:37:45.000000000
+0100
@@ -82,7 +82,6 @@
SET_COOKIE = "Set-Cookie"
LOCATION = "Location"
NO_CONTENT_CODES = [100, 101, 102, 204, 205, 304]
- CONTENT_TYPE_PARSER =
/\A(?<type>[^;\s]+)?(?:.*;\s*charset=(?<quote>"?)(?<charset>[^;\s]+)\k<quote>)?/
# :nodoc:
cattr_accessor :default_charset, default: "utf-8"
cattr_accessor :default_headers
@@ -420,13 +419,18 @@
end
private
-
ContentTypeHeader = Struct.new :mime_type, :charset
NullContentTypeHeader = ContentTypeHeader.new nil, nil
+ CONTENT_TYPE_PARSER = /
+ \A
+ (?<mime_type>[^;\s]+\s*(?:;\s*(?:(?!charset)[^;\s])+)*)?
+ (?:;\s*charset=(?<quote>"?)(?<charset>[^;\s]+)\k<quote>)?
+ /x # :nodoc:
+
def parse_content_type(content_type)
if content_type && match = CONTENT_TYPE_PARSER.match(content_type)
- ContentTypeHeader.new(match[:type], match[:charset])
+ ContentTypeHeader.new(match[:mime_type], match[:charset])
else
NullContentTypeHeader
end
@@ -531,4 +535,6 @@
end
end
end
+
+ ActiveSupport.run_load_hooks(:action_dispatch_response, Response)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_dispatch/middleware/remote_ip.rb
new/lib/action_dispatch/middleware/remote_ip.rb
--- old/lib/action_dispatch/middleware/remote_ip.rb 2019-08-16
19:58:59.000000000 +0200
+++ new/lib/action_dispatch/middleware/remote_ip.rb 2019-11-05
15:37:45.000000000 +0100
@@ -8,13 +8,13 @@
# contain the address, and then picking the last-set address that is not
# on the list of trusted IPs. This follows the precedent set by e.g.
# {the Tomcat
server}[https://issues.apache.org/bugzilla/show_bug.cgi?id=50453],
- # with {reasoning explained at
length}[http://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection]
+ # with {reasoning explained at
length}[https://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection]
# by @gingerlime. A more detailed explanation of the algorithm is given
# at GetIp#calculate_ip.
#
# Some Rack servers concatenate repeated headers, like {HTTP RFC
2616}[https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2]
# requires. Some Rack servers simply drop preceding headers, and only report
- # the value that was {given in the last
header}[http://andre.arko.net/2011/12/26/repeated-headers-and-ruby-web-servers].
+ # the value that was {given in the last
header}[https://andre.arko.net/2011/12/26/repeated-headers-and-ruby-web-servers].
# If you are behind multiple proxy servers (like NGINX to HAProxy to Unicorn)
# then you should test your Rack server to make sure your data is good.
#
@@ -102,7 +102,7 @@
# proxies, that header may contain a list of IPs. Other proxy services
# set the Client-Ip header instead, so we check that too.
#
- # As discussed in {this post about Rails IP
Spoofing}[http://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection/],
+ # As discussed in {this post about Rails IP
Spoofing}[https://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection/],
# while the first IP in the list is likely to be the "originating" IP,
# it could also have been set by the client maliciously.
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_dispatch/railtie.rb
new/lib/action_dispatch/railtie.rb
--- old/lib/action_dispatch/railtie.rb 2019-08-16 19:58:59.000000000 +0200
+++ new/lib/action_dispatch/railtie.rb 2019-11-05 15:37:45.000000000 +0100
@@ -42,9 +42,11 @@
ActionDispatch::Http::URL.tld_length =
app.config.action_dispatch.tld_length
ActionDispatch::Request.ignore_accept_header =
app.config.action_dispatch.ignore_accept_header
ActionDispatch::Request::Utils.perform_deep_munge =
app.config.action_dispatch.perform_deep_munge
- ActionDispatch::Response.default_charset =
app.config.action_dispatch.default_charset || app.config.encoding
- ActionDispatch::Response.default_headers =
app.config.action_dispatch.default_headers
- ActionDispatch::Response.return_only_media_type_on_content_type =
app.config.action_dispatch.return_only_media_type_on_content_type
+ ActiveSupport.on_load(:action_dispatch_response) do
+ self.default_charset = app.config.action_dispatch.default_charset ||
app.config.encoding
+ self.default_headers = app.config.action_dispatch.default_headers
+ self.return_only_media_type_on_content_type =
app.config.action_dispatch.return_only_media_type_on_content_type
+ end
ActionDispatch::ExceptionWrapper.rescue_responses.merge!(config.action_dispatch.rescue_responses)
ActionDispatch::ExceptionWrapper.rescue_templates.merge!(config.action_dispatch.rescue_templates)
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 2019-08-16 19:58:59.000000000
+0200
+++ new/lib/action_dispatch/routing/mapper.rb 2019-11-05 15:37:45.000000000
+0100
@@ -2074,7 +2074,7 @@
# of routing helpers, e.g:
#
# direct :homepage do
- # "http://www.rubyonrails.org"
+ # "https://rubyonrails.org"
# end
#
# direct :commentable do |model|
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/action_dispatch/system_test_case.rb
new/lib/action_dispatch/system_test_case.rb
--- old/lib/action_dispatch/system_test_case.rb 2019-08-16 19:58:59.000000000
+0200
+++ new/lib/action_dispatch/system_test_case.rb 2019-11-05 15:37:45.000000000
+0100
@@ -11,7 +11,6 @@
require "action_dispatch/system_testing/server"
require "action_dispatch/system_testing/test_helpers/screenshot_helper"
require "action_dispatch/system_testing/test_helpers/setup_and_teardown"
-require "action_dispatch/system_testing/test_helpers/undef_methods"
module ActionDispatch
# = System Testing
@@ -111,16 +110,26 @@
# Because <tt>ActionDispatch::SystemTestCase</tt> is a shim between Capybara
# and Rails, any driver that is supported by Capybara is supported by system
# tests as long as you include the required gems and files.
- class SystemTestCase < IntegrationTest
+ class SystemTestCase < ActiveSupport::TestCase
include Capybara::DSL
include Capybara::Minitest::Assertions
include SystemTesting::TestHelpers::SetupAndTeardown
include SystemTesting::TestHelpers::ScreenshotHelper
- include SystemTesting::TestHelpers::UndefMethods
def initialize(*) # :nodoc:
super
self.class.driver.use
+ @proxy_route = if ActionDispatch.test_app
+ Class.new do
+ include ActionDispatch.test_app.routes.url_helpers
+
+ def url_options
+ default_url_options.merge(host: Capybara.app_host)
+ end
+ end.new
+ else
+ nil
+ end
end
def self.start_application # :nodoc:
@@ -161,6 +170,14 @@
driven_by :selenium
+ def method_missing(method, *args, &block)
+ if @proxy_route.respond_to?(method)
+ @proxy_route.send(method, *args, &block)
+ else
+ super
+ end
+ end
+
ActiveSupport.run_load_hooks(:action_dispatch_system_test_case, self)
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
2019-08-16 19:58:59.000000000 +0200
+++ new/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
2019-11-05 15:37:45.000000000 +0100
@@ -7,7 +7,6 @@
DEFAULT_HOST = "http://127.0.0.1"
def host!(host)
- super
Capybara.app_host = host
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
new/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
--- old/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
2019-08-16 19:58:59.000000000 +0200
+++ new/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
1970-01-01 01:00:00.000000000 +0100
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-module ActionDispatch
- module SystemTesting
- module TestHelpers
- module UndefMethods # :nodoc:
- extend ActiveSupport::Concern
- included do
- METHODS = %i(get post put patch delete).freeze
-
- METHODS.each do |verb|
- undef_method verb
- end
-
- def method_missing(method, *args, &block)
- if METHODS.include?(method)
- raise NoMethodError, "System tests cannot make direct requests
via ##{method}; use #visit and #click_on instead. See
http://www.rubydoc.info/github/teamcapybara/capybara/master#The_DSL for more
information."
- else
- super
- end
- end
- end
- end
- end
- end
-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 2019-08-16 19:58:59.000000000 +0200
+++ new/lib/action_pack/gem_version.rb 2019-11-05 15:37:45.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 6
MINOR = 0
- TINY = 0
+ TINY = 1
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-08-16 19:58:59.000000000 +0200
+++ new/metadata 2019-11-05 15:37:45.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: actionpack
version: !ruby/object:Gem::Version
- version: 6.0.0
+ version: 6.0.1
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-08-16 00:00:00.000000000 Z
+date: 2019-11-05 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.0
+ version: 6.0.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.0
+ version: 6.0.1
- !ruby/object:Gem::Dependency
name: rack
requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.0
+ version: 6.0.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.0
+ version: 6.0.1
- !ruby/object:Gem::Dependency
name: activemodel
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.0
+ version: 6.0.1
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 6.0.0
+ version: 6.0.1
description: Web apps on Rails. Simple, battle-tested conventions for building
and
testing MVC web applications. Works with any Rack-compatible server.
email: [email protected]
@@ -287,7 +287,6 @@
- lib/action_dispatch/system_testing/server.rb
- lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb
- lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
-- lib/action_dispatch/system_testing/test_helpers/undef_methods.rb
- lib/action_dispatch/testing/assertion_response.rb
- lib/action_dispatch/testing/assertions.rb
- lib/action_dispatch/testing/assertions/response.rb
@@ -304,8 +303,11 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v6.0.0/actionpack
- changelog_uri:
https://github.com/rails/rails/blob/v6.0.0/actionpack/CHANGELOG.md
+ bug_tracker_uri: https://github.com/rails/rails/issues
+ changelog_uri:
https://github.com/rails/rails/blob/v6.0.1/actionpack/CHANGELOG.md
+ documentation_uri: https://api.rubyonrails.org/v6.0.1/
+ mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.1/actionpack
post_install_message:
rdoc_options: []
require_paths:
@@ -322,7 +324,7 @@
version: '0'
requirements:
- none
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Web-flow and rendering framework putting the VC in MVC (part of
Rails).