actionpack 6.0.1 → 6.0.2.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +7 -0
 - data/lib/action_controller/metal/request_forgery_protection.rb +1 -1
 - data/lib/action_dispatch/http/mime_type.rb +1 -1
 - data/lib/action_dispatch/http/request.rb +2 -1
 - data/lib/action_dispatch/journey/formatter.rb +1 -1
 - data/lib/action_dispatch/routing/mapper.rb +2 -2
 - data/lib/action_dispatch/system_test_case.rb +1 -0
 - data/lib/action_pack/gem_version.rb +2 -2
 - metadata +13 -13
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: d31660141b70bcd7bb7b0cfc5509b010e26f315746ac56393ed2efa2cf98f010
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 26ac4dc632509e7adc781b2934377e7688179b26f1f9ee03b0bc5c9e673ebee4
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 7a4ca7d05d7d16497b149ff4b24832c275ee35f6cd22c7a7498042c38cdce12db7922fc74f999851e40befe56fd5083474ea2046a3f789fb88295eaa339746d4
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8387a06f3516dbab37c2782a18351993626aa7b12ac021d0a837f37096a905911baaeb5b627679d50a1603c65ff43c2db670968c3826df052b14d87e5ae76588
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
| 
         @@ -282,7 +282,7 @@ module ActionController #:nodoc: 
     | 
|
| 
       282 
282 
     | 
    
         | 
| 
       283 
283 
     | 
    
         
             
                  # Check for cross-origin JavaScript responses.
         
     | 
| 
       284 
284 
     | 
    
         
             
                  def non_xhr_javascript_response? # :doc:
         
     | 
| 
       285 
     | 
    
         
            -
                    %r(\A(?:text|application)/javascript).match?(media_type) && !request.xhr?
         
     | 
| 
      
 285 
     | 
    
         
            +
                    media_type && %r(\A(?:text|application)/javascript).match?(media_type) && !request.xhr?
         
     | 
| 
       286 
286 
     | 
    
         
             
                  end
         
     | 
| 
       287 
287 
     | 
    
         | 
| 
       288 
288 
     | 
    
         
             
                  AUTHENTICITY_TOKEN_LENGTH = 32
         
     | 
| 
         @@ -231,7 +231,7 @@ module Mime 
     | 
|
| 
       231 
231 
     | 
    
         
             
                class InvalidMimeType < StandardError; end
         
     | 
| 
       232 
232 
     | 
    
         | 
| 
       233 
233 
     | 
    
         
             
                def initialize(string, symbol = nil, synonyms = [])
         
     | 
| 
       234 
     | 
    
         
            -
                   
     | 
| 
      
 234 
     | 
    
         
            +
                  if string.nil? || ! MIME_REGEXP.match?(string)
         
     | 
| 
       235 
235 
     | 
    
         
             
                    raise InvalidMimeType, "#{string.inspect} is not a valid MIME type"
         
     | 
| 
       236 
236 
     | 
    
         
             
                  end
         
     | 
| 
       237 
237 
     | 
    
         
             
                  @symbol, @synonyms = symbol, synonyms
         
     | 
| 
         @@ -264,7 +264,8 @@ module ActionDispatch 
     | 
|
| 
       264 
264 
     | 
    
         
             
                # (case-insensitive), which may need to be manually added depending on the
         
     | 
| 
       265 
265 
     | 
    
         
             
                # choice of JavaScript libraries and frameworks.
         
     | 
| 
       266 
266 
     | 
    
         
             
                def xml_http_request?
         
     | 
| 
       267 
     | 
    
         
            -
                  get_header("HTTP_X_REQUESTED_WITH") 
     | 
| 
      
 267 
     | 
    
         
            +
                  header = get_header("HTTP_X_REQUESTED_WITH")
         
     | 
| 
      
 268 
     | 
    
         
            +
                  header && /XMLHttpRequest/i.match?(header)
         
     | 
| 
       268 
269 
     | 
    
         
             
                end
         
     | 
| 
       269 
270 
     | 
    
         
             
                alias :xhr? :xml_http_request?
         
     | 
| 
       270 
271 
     | 
    
         | 
| 
         @@ -341,7 +341,7 @@ module ActionDispatch 
     | 
|
| 
       341 
341 
     | 
    
         
             
                      end
         
     | 
| 
       342 
342 
     | 
    
         | 
| 
       343 
343 
     | 
    
         
             
                      def split_to(to)
         
     | 
| 
       344 
     | 
    
         
            -
                        if /#/.match?(to)
         
     | 
| 
      
 344 
     | 
    
         
            +
                        if to && /#/.match?(to)
         
     | 
| 
       345 
345 
     | 
    
         
             
                          to.split("#")
         
     | 
| 
       346 
346 
     | 
    
         
             
                        else
         
     | 
| 
       347 
347 
     | 
    
         
             
                          []
         
     | 
| 
         @@ -350,7 +350,7 @@ module ActionDispatch 
     | 
|
| 
       350 
350 
     | 
    
         | 
| 
       351 
351 
     | 
    
         
             
                      def add_controller_module(controller, modyoule)
         
     | 
| 
       352 
352 
     | 
    
         
             
                        if modyoule && !controller.is_a?(Regexp)
         
     | 
| 
       353 
     | 
    
         
            -
                          if  
     | 
| 
      
 353 
     | 
    
         
            +
                          if controller && controller.start_with?("/")
         
     | 
| 
       354 
354 
     | 
    
         
             
                            controller[1..-1]
         
     | 
| 
       355 
355 
     | 
    
         
             
                          else
         
     | 
| 
       356 
356 
     | 
    
         
             
                            [modyoule, controller].compact.join("/")
         
     | 
| 
         @@ -122,6 +122,7 @@ module ActionDispatch 
     | 
|
| 
       122 
122 
     | 
    
         
             
                  @proxy_route = if ActionDispatch.test_app
         
     | 
| 
       123 
123 
     | 
    
         
             
                    Class.new do
         
     | 
| 
       124 
124 
     | 
    
         
             
                      include ActionDispatch.test_app.routes.url_helpers
         
     | 
| 
      
 125 
     | 
    
         
            +
                      include ActionDispatch.test_app.routes.mounted_helpers
         
     | 
| 
       125 
126 
     | 
    
         | 
| 
       126 
127 
     | 
    
         
             
                      def url_options
         
     | 
| 
       127 
128 
     | 
    
         
             
                        default_url_options.merge(host: Capybara.app_host)
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: actionpack
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 6.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 6.0.2.rc1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - David Heinemeier Hansson
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2019-11- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2019-11-27 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: activesupport
         
     | 
| 
         @@ -16,14 +16,14 @@ dependencies: 
     | 
|
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - '='
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version: 6.0. 
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 6.0.2.rc1
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
24 
     | 
    
         
             
                - - '='
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version: 6.0. 
     | 
| 
      
 26 
     | 
    
         
            +
                    version: 6.0.2.rc1
         
     | 
| 
       27 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
28 
     | 
    
         
             
              name: rack
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -92,28 +92,28 @@ dependencies: 
     | 
|
| 
       92 
92 
     | 
    
         
             
                requirements:
         
     | 
| 
       93 
93 
     | 
    
         
             
                - - '='
         
     | 
| 
       94 
94 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       95 
     | 
    
         
            -
                    version: 6.0. 
     | 
| 
      
 95 
     | 
    
         
            +
                    version: 6.0.2.rc1
         
     | 
| 
       96 
96 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       97 
97 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       98 
98 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       99 
99 
     | 
    
         
             
                requirements:
         
     | 
| 
       100 
100 
     | 
    
         
             
                - - '='
         
     | 
| 
       101 
101 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       102 
     | 
    
         
            -
                    version: 6.0. 
     | 
| 
      
 102 
     | 
    
         
            +
                    version: 6.0.2.rc1
         
     | 
| 
       103 
103 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       104 
104 
     | 
    
         
             
              name: activemodel
         
     | 
| 
       105 
105 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       106 
106 
     | 
    
         
             
                requirements:
         
     | 
| 
       107 
107 
     | 
    
         
             
                - - '='
         
     | 
| 
       108 
108 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       109 
     | 
    
         
            -
                    version: 6.0. 
     | 
| 
      
 109 
     | 
    
         
            +
                    version: 6.0.2.rc1
         
     | 
| 
       110 
110 
     | 
    
         
             
              type: :development
         
     | 
| 
       111 
111 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       112 
112 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       113 
113 
     | 
    
         
             
                requirements:
         
     | 
| 
       114 
114 
     | 
    
         
             
                - - '='
         
     | 
| 
       115 
115 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       116 
     | 
    
         
            -
                    version: 6.0. 
     | 
| 
      
 116 
     | 
    
         
            +
                    version: 6.0.2.rc1
         
     | 
| 
       117 
117 
     | 
    
         
             
            description: Web apps on Rails. Simple, battle-tested conventions for building and
         
     | 
| 
       118 
118 
     | 
    
         
             
              testing MVC web applications. Works with any Rack-compatible server.
         
     | 
| 
       119 
119 
     | 
    
         
             
            email: david@loudthinking.com
         
     | 
| 
         @@ -304,10 +304,10 @@ licenses: 
     | 
|
| 
       304 
304 
     | 
    
         
             
            - MIT
         
     | 
| 
       305 
305 
     | 
    
         
             
            metadata:
         
     | 
| 
       306 
306 
     | 
    
         
             
              bug_tracker_uri: https://github.com/rails/rails/issues
         
     | 
| 
       307 
     | 
    
         
            -
              changelog_uri: https://github.com/rails/rails/blob/v6.0. 
     | 
| 
       308 
     | 
    
         
            -
              documentation_uri: https://api.rubyonrails.org/v6.0. 
     | 
| 
      
 307 
     | 
    
         
            +
              changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc1/actionpack/CHANGELOG.md
         
     | 
| 
      
 308 
     | 
    
         
            +
              documentation_uri: https://api.rubyonrails.org/v6.0.2.rc1/
         
     | 
| 
       309 
309 
     | 
    
         
             
              mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
         
     | 
| 
       310 
     | 
    
         
            -
              source_code_uri: https://github.com/rails/rails/tree/v6.0. 
     | 
| 
      
 310 
     | 
    
         
            +
              source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc1/actionpack
         
     | 
| 
       311 
311 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       312 
312 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       313 
313 
     | 
    
         
             
            require_paths:
         
     | 
| 
         @@ -319,9 +319,9 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       319 
319 
     | 
    
         
             
                  version: 2.5.0
         
     | 
| 
       320 
320 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       321 
321 
     | 
    
         
             
              requirements:
         
     | 
| 
       322 
     | 
    
         
            -
              - - " 
     | 
| 
      
 322 
     | 
    
         
            +
              - - ">"
         
     | 
| 
       323 
323 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       324 
     | 
    
         
            -
                  version:  
     | 
| 
      
 324 
     | 
    
         
            +
                  version: 1.3.1
         
     | 
| 
       325 
325 
     | 
    
         
             
            requirements:
         
     | 
| 
       326 
326 
     | 
    
         
             
            - none
         
     | 
| 
       327 
327 
     | 
    
         
             
            rubygems_version: 3.0.3
         
     |