actionpack 6.1.5 → 6.1.5.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: c0459690ecc8372a1e4b623d82944649463857b673a5a14a5a6f3f421cb708e6
4
- data.tar.gz: 1df6ce6c492a5c1bd78195c4ede33dee3648bd72893cbd523b263344caea56e2
3
+ metadata.gz: 1842431d57ac4842ce3706adbb3cd808a3b2db1675ed4d3f43f7032c23c0eafd
4
+ data.tar.gz: 20b872750f9019a953194fb04bfb340a0b2b0a24d56e95ee351e98f46206d52b
5
5
  SHA512:
6
- metadata.gz: ce15e789ef79b1a60273afaa3db51f2c9ad550babdf3d566dddd3c36773c2b6643c4c5ecb6def64e5f45aa9a9c7adde7a2ad8e662a2633c05857c1ab3bb3836d
7
- data.tar.gz: 3cbae6f237bc166e8f0ec3cc85d54baa2086b76ec11317a06260797b454d6735519b9193b882dfa5a9950829d549b8e4f0acaea4196c5ec265987cea238e5efe
6
+ metadata.gz: 4394b84661f5515c93929d5d41f7341b0045b69d0e1f85ddd7e364ba287b0a4bb91e63adba2d7f273107b7d3e52b17de2fbedd2427e86a2e48b2896e95d985e1
7
+ data.tar.gz: 9a82df38556b6c5b5f11eb6ac65ace11400026afa5d817c82564bed806d3020caccb3e5ee78ff8d99c03168533ab33fc2e01ff468382d5b63eb6190cb300903a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Rails 6.1.5.1 (April 26, 2022) ##
2
+
3
+ * Allow Content Security Policy DSL to generate for API responses.
4
+
5
+ *Tim Wade*
6
+
1
7
  ## Rails 6.1.5 (March 09, 2022) ##
2
8
 
3
9
  * Fix `content_security_policy` returning invalid directives.
@@ -18,7 +18,6 @@ module ActionDispatch #:nodoc:
18
18
  request = ActionDispatch::Request.new env
19
19
  _, headers, _ = response = @app.call(env)
20
20
 
21
- return response unless html_response?(headers)
22
21
  return response if policy_present?(headers)
23
22
 
24
23
  if policy = request.content_security_policy
@@ -32,12 +31,6 @@ module ActionDispatch #:nodoc:
32
31
  end
33
32
 
34
33
  private
35
- def html_response?(headers)
36
- if content_type = headers[CONTENT_TYPE]
37
- /html/.match?(content_type)
38
- end
39
- end
40
-
41
34
  def header_name(request)
42
35
  if request.content_security_policy_report_only
43
36
  POLICY_REPORT_ONLY
@@ -10,7 +10,7 @@ module ActionPack
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
12
  TINY = 5
13
- PRE = nil
13
+ PRE = "1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
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.1.5
4
+ version: 6.1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-10 00:00:00.000000000 Z
11
+ date: 2022-04-26 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.1.5
19
+ version: 6.1.5.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: 6.1.5
26
+ version: 6.1.5.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: 6.1.5
101
+ version: 6.1.5.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: 6.1.5
108
+ version: 6.1.5.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: 6.1.5
115
+ version: 6.1.5.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: 6.1.5
122
+ version: 6.1.5.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
@@ -309,12 +309,12 @@ licenses:
309
309
  - MIT
310
310
  metadata:
311
311
  bug_tracker_uri: https://github.com/rails/rails/issues
312
- changelog_uri: https://github.com/rails/rails/blob/v6.1.5/actionpack/CHANGELOG.md
313
- documentation_uri: https://api.rubyonrails.org/v6.1.5/
312
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.5.1/actionpack/CHANGELOG.md
313
+ documentation_uri: https://api.rubyonrails.org/v6.1.5.1/
314
314
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
315
- source_code_uri: https://github.com/rails/rails/tree/v6.1.5/actionpack
315
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.5.1/actionpack
316
316
  rubygems_mfa_required: 'true'
317
- post_install_message:
317
+ post_install_message:
318
318
  rdoc_options: []
319
319
  require_paths:
320
320
  - lib
@@ -330,8 +330,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
330
  version: '0'
331
331
  requirements:
332
332
  - none
333
- rubygems_version: 3.3.7
334
- signing_key:
333
+ rubygems_version: 3.1.6
334
+ signing_key:
335
335
  specification_version: 4
336
336
  summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
337
337
  test_files: []