actionpack 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionpack might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d79cdcfed6867089ed24ecf0bc02b3d82b461df4de9e4c991ceadf17a63e73ef
4
- data.tar.gz: 9b9dde19de31d0f37ff14c4ffe053c2a3110cab6a68613a4c725e7a184cb0602
3
+ metadata.gz: 90c7cb80fe9cb8d9dde70d6c2dea7f7339b155fee696c0c2ec8d89c05afd35a5
4
+ data.tar.gz: 0ec4952401981893189821dfee3ac943a760dad3bdcaa2a620b8b1611aab9024
5
5
  SHA512:
6
- metadata.gz: 59f401a0ee0946d52261245762378ae29a5a13199e930a85b95c8891c2c02161757b763d4a780d571bec902db6f89f210664f2b1d06a91e98a811f27da52ba3f
7
- data.tar.gz: 827e05337ec713bc3f47c5bf16df5ecf0217f3e2a1d293b24c2bd28a797c6c455f1301670c1292e350c2646e9eca3e368f2ce65bf392dbbff88bd2e6a1fc19af
6
+ metadata.gz: a0c118c9e708b215c0a3d4f75a7d52e8e1d80ad68cb0fe0f6b57ca0a563fb6909d87ea0c38c08c28587cecb71198bc4f08239cb433a58f447b5902b3f2e2622f
7
+ data.tar.gz: c8c0935ff85af52c65513cc99879cf006aca10e13e1889015b7d4ea88bf1b215e81a54f94604e1d76f123d08ef0902835a8242247e84ba76dd792e00a2825ba5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## Rails 7.0.1 (January 06, 2022) ##
2
+
3
+ * Fix `ActionController::Parameters` methods to keep the original logger context when creating a new copy
4
+ of the original object.
5
+
6
+ *Yutaka Kamei*
7
+
8
+
1
9
  ## Rails 7.0.0 (December 15, 2021) ##
2
10
 
3
11
  * Deprecate `Rails.application.config.action_controller.urlsafe_csrf_tokens`. This config is now always enabled.
@@ -11,6 +19,7 @@
11
19
 
12
20
  *Alex Ghiculescu*
13
21
 
22
+
14
23
  ## Rails 7.0.0.rc3 (December 14, 2021) ##
15
24
 
16
25
  * No changes.
@@ -20,6 +29,7 @@
20
29
 
21
30
  * Fix X_FORWARDED_HOST protection. [CVE-2021-44528]
22
31
 
32
+
23
33
  ## Rails 7.0.0.rc1 (December 06, 2021) ##
24
34
 
25
35
  * `Rails.application.executor` hooks can now be called around every request in a `ActionController::TestCase`
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2004-2021 David Heinemeier Hansson
1
+ Copyright (c) 2004-2022 David Heinemeier Hansson
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -910,7 +910,7 @@ module ActionController
910
910
 
911
911
  # Returns duplicate of object including all parameters.
912
912
  def deep_dup
913
- self.class.new(@parameters.deep_dup).tap do |duplicate|
913
+ self.class.new(@parameters.deep_dup, @logging_context).tap do |duplicate|
914
914
  duplicate.permitted = @permitted
915
915
  end
916
916
  end
@@ -932,7 +932,7 @@ module ActionController
932
932
 
933
933
  private
934
934
  def new_instance_with_inherited_permitted_status(hash)
935
- self.class.new(hash).tap do |new_instance|
935
+ self.class.new(hash, @logging_context).tap do |new_instance|
936
936
  new_instance.permitted = @permitted
937
937
  end
938
938
  end
@@ -966,7 +966,7 @@ module ActionController
966
966
  converted_arrays << converted.dup
967
967
  converted
968
968
  when Hash
969
- self.class.new(value)
969
+ self.class.new(value, @logging_context)
970
970
  else
971
971
  value
972
972
  end
@@ -78,7 +78,7 @@ module ActionDispatch
78
78
  # Returns a hash with the \parameters used to form the \path of the request.
79
79
  # Returned hash keys are strings:
80
80
  #
81
- # {'action' => 'my_action', 'controller' => 'my_controller'}
81
+ # { action: "my_action", controller: "my_controller" }
82
82
  def path_parameters
83
83
  get_header(PARAMETERS_KEY) || set_header(PARAMETERS_KEY, {})
84
84
  end
@@ -596,14 +596,14 @@ module ActionDispatch
596
596
  if route.segment_keys.include?(:controller)
597
597
  ActiveSupport::Deprecation.warn(<<-MSG.squish)
598
598
  Using a dynamic :controller segment in a route is deprecated and
599
- will be removed in Rails 7.0.
599
+ will be removed in Rails 7.1.
600
600
  MSG
601
601
  end
602
602
 
603
603
  if route.segment_keys.include?(:action)
604
604
  ActiveSupport::Deprecation.warn(<<-MSG.squish)
605
605
  Using a dynamic :action segment in a route is deprecated and
606
- will be removed in Rails 7.0.
606
+ will be removed in Rails 7.1.
607
607
  MSG
608
608
  end
609
609
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  #--
4
- # Copyright (c) 2004-2021 David Heinemeier Hansson
4
+ # Copyright (c) 2004-2022 David Heinemeier Hansson
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining
7
7
  # a copy of this software and associated documentation files (the
@@ -9,7 +9,7 @@ module ActionPack
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 0
12
- TINY = 0
12
+ TINY = 1
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
data/lib/action_pack.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  #--
4
- # Copyright (c) 2004-2021 David Heinemeier Hansson
4
+ # Copyright (c) 2004-2022 David Heinemeier Hansson
5
5
  #
6
6
  # Permission is hereby granted, free of charge, to any person obtaining
7
7
  # a copy of this software and associated documentation files (the
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: 7.0.0
4
+ version: 7.0.1
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: 2021-12-15 00:00:00.000000000 Z
11
+ date: 2022-01-06 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: 7.0.0
19
+ version: 7.0.1
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: 7.0.0
26
+ version: 7.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,28 +98,28 @@ dependencies:
98
98
  requirements:
99
99
  - - '='
100
100
  - !ruby/object:Gem::Version
101
- version: 7.0.0
101
+ version: 7.0.1
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - '='
107
107
  - !ruby/object:Gem::Version
108
- version: 7.0.0
108
+ version: 7.0.1
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: activemodel
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - '='
114
114
  - !ruby/object:Gem::Version
115
- version: 7.0.0
115
+ version: 7.0.1
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - '='
121
121
  - !ruby/object:Gem::Version
122
- version: 7.0.0
122
+ version: 7.0.1
123
123
  description: Web apps on Rails. Simple, battle-tested conventions for building and
124
124
  testing MVC web applications. Works with any Rack-compatible server.
125
125
  email: david@loudthinking.com
@@ -310,10 +310,10 @@ licenses:
310
310
  - MIT
311
311
  metadata:
312
312
  bug_tracker_uri: https://github.com/rails/rails/issues
313
- changelog_uri: https://github.com/rails/rails/blob/v7.0.0/actionpack/CHANGELOG.md
314
- documentation_uri: https://api.rubyonrails.org/v7.0.0/
313
+ changelog_uri: https://github.com/rails/rails/blob/v7.0.1/actionpack/CHANGELOG.md
314
+ documentation_uri: https://api.rubyonrails.org/v7.0.1/
315
315
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
316
- source_code_uri: https://github.com/rails/rails/tree/v7.0.0/actionpack
316
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.1/actionpack
317
317
  rubygems_mfa_required: 'true'
318
318
  post_install_message:
319
319
  rdoc_options: []