actionpack 6.0.4.7 → 6.0.4.8

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: 213a459ff493890e40a2510039f5e29f798b85cab380d1b77cefce8d0f681414
4
- data.tar.gz: 59505d298cb01f0a745d4b86c45020dd86665351ef1b6b4b806b180d4e75aa03
3
+ metadata.gz: 40cba0f49157393794f8a9b5322c71bc87e11462a0986d53212519fc1140cbe8
4
+ data.tar.gz: a0c7f97dea9ecb2cee14ce51acdd4d39c941cfc08c19be1b4e3e1a00cafc63f1
5
5
  SHA512:
6
- metadata.gz: b4db02c335d2ca6b1943528fbee44eb56620df4aab8f588d7080d40b98e9bf939641ffca2e45d7f9a6a369f4ce0419159e7081f0f19986d4710d0f99be68cc3c
7
- data.tar.gz: 89a187c97a99648dc49eeffaa28069fb5269b02e91e79bdb0ce3c203582482986a3756230d5b7da4e26941b7af483533a5c6e48eadedd42731595e49f04e1112
6
+ metadata.gz: 33fff13bf2347eacd58a37c1d5e3994796fdc86acde4dc348f2621df10fa6d68821c49845764c502f3fa9b2837967f0267ff12c32e07eb5cadc9eb7daa7c9372
7
+ data.tar.gz: beaca9ff7d16bdcf706d4358944db344efe56553626bc78a696c332a451e5266b1175760e108c59a2622ac24b103379dc6c37f33301f7f91fd378d7e2e13a57a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Rails 6.0.4.8 (April 26, 2022) ##
2
+
3
+ * Allow Content Security Policy DSL to generate for API responses.
4
+
5
+ *Tim Wade*
6
+
1
7
  ## Rails 6.0.4.7 (March 08, 2022) ##
2
8
 
3
9
  * No changes.
@@ -17,7 +17,6 @@ module ActionDispatch #:nodoc:
17
17
  request = ActionDispatch::Request.new env
18
18
  _, headers, _ = response = @app.call(env)
19
19
 
20
- return response unless html_response?(headers)
21
20
  return response if policy_present?(headers)
22
21
 
23
22
  if policy = request.content_security_policy
@@ -31,12 +30,6 @@ module ActionDispatch #:nodoc:
31
30
  end
32
31
 
33
32
  private
34
- def html_response?(headers)
35
- if content_type = headers[CONTENT_TYPE]
36
- content_type =~ /html/
37
- end
38
- end
39
-
40
33
  def header_name(request)
41
34
  if request.content_security_policy_report_only
42
35
  POLICY_REPORT_ONLY
@@ -10,7 +10,7 @@ module ActionPack
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
12
  TINY = 4
13
- PRE = "7"
13
+ PRE = "8"
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.0.4.7
4
+ version: 6.0.4.8
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: 2022-03-08 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.0.4.7
19
+ version: 6.0.4.8
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.4.7
26
+ version: 6.0.4.8
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.0.4.7
101
+ version: 6.0.4.8
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.0.4.7
108
+ version: 6.0.4.8
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.0.4.7
115
+ version: 6.0.4.8
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.0.4.7
122
+ version: 6.0.4.8
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/v6.0.4.7/actionpack/CHANGELOG.md
314
- documentation_uri: https://api.rubyonrails.org/v6.0.4.7/
313
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.4.8/actionpack/CHANGELOG.md
314
+ documentation_uri: https://api.rubyonrails.org/v6.0.4.8/
315
315
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
316
- source_code_uri: https://github.com/rails/rails/tree/v6.0.4.7/actionpack
316
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.4.8/actionpack
317
317
  post_install_message:
318
318
  rdoc_options: []
319
319
  require_paths: