activestorage 6.1.7.5 → 6.1.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/app/controllers/active_storage/blobs/proxy_controller.rb +1 -0
- data/app/controllers/active_storage/representations/proxy_controller.rb +1 -0
- data/app/controllers/concerns/active_storage/disable_session.rb +12 -0
- data/lib/active_storage/gem_version.rb +1 -1
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 032d6dd88c8ee643447422778483da60fcc5ec8094fc6bdfe8bf1566c6774165
|
4
|
+
data.tar.gz: 25dd755d0ca9a307ec6c333c1334be8dacaa587af0201310fde12631b9b4f6ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82828df0a37a96491207d0bfa3039d5c69901508844ecb55482b22671231e226bbc27a29f46d5034696b15e3e08948964a168314a895679572fb45db28096ad8
|
7
|
+
data.tar.gz: 27a05d7b52844b94f3148395fda1aaf7f5a4739f66e9ae5786ce5f038f13b062b2646538c9b1d6a4c5e6bbf8468e0f32f5690b5ab1feaa00ec823c496d23b682
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## Rails 6.1.7.7 (February 21, 2024) ##
|
2
|
+
|
3
|
+
* Disables the session in `ActiveStorage::Blobs::ProxyController`
|
4
|
+
and `ActiveStorage::Representations::ProxyController`
|
5
|
+
in order to allow caching by default in some CDNs as CloudFlare
|
6
|
+
|
7
|
+
Fixes #44136
|
8
|
+
|
9
|
+
*Bruno Prieto*
|
10
|
+
|
11
|
+
## Rails 6.1.7.6 (August 22, 2023) ##
|
12
|
+
|
13
|
+
* No changes.
|
14
|
+
|
15
|
+
|
1
16
|
## Rails 6.1.7.5 (August 22, 2023) ##
|
2
17
|
|
3
18
|
* No changes.
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# Proxy files through application. This avoids having a redirect and makes files easier to cache.
|
4
4
|
class ActiveStorage::Representations::ProxyController < ActiveStorage::Representations::BaseController
|
5
5
|
include ActiveStorage::SetHeaders
|
6
|
+
include ActiveStorage::DisableSession
|
6
7
|
|
7
8
|
def show
|
8
9
|
http_cache_forever public: true do
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This concern disables the session in order to allow caching by default in some CDNs as CloudFlare.
|
4
|
+
module ActiveStorage::DisableSession
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
7
|
+
included do
|
8
|
+
before_action do
|
9
|
+
request.session_options[:skip] = true
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.7.
|
4
|
+
version: 6.1.7.7
|
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:
|
11
|
+
date: 2024-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.1.7.
|
19
|
+
version: 6.1.7.7
|
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.7.
|
26
|
+
version: 6.1.7.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 6.1.7.
|
33
|
+
version: 6.1.7.7
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 6.1.7.
|
40
|
+
version: 6.1.7.7
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activejob
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 6.1.7.
|
47
|
+
version: 6.1.7.7
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 6.1.7.
|
54
|
+
version: 6.1.7.7
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activerecord
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 6.1.7.
|
61
|
+
version: 6.1.7.7
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 6.1.7.
|
68
|
+
version: 6.1.7.7
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: marcel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- app/controllers/active_storage/representations/base_controller.rb
|
113
113
|
- app/controllers/active_storage/representations/proxy_controller.rb
|
114
114
|
- app/controllers/active_storage/representations/redirect_controller.rb
|
115
|
+
- app/controllers/concerns/active_storage/disable_session.rb
|
115
116
|
- app/controllers/concerns/active_storage/file_server.rb
|
116
117
|
- app/controllers/concerns/active_storage/set_blob.rb
|
117
118
|
- app/controllers/concerns/active_storage/set_current.rb
|
@@ -188,10 +189,10 @@ licenses:
|
|
188
189
|
- MIT
|
189
190
|
metadata:
|
190
191
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
191
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.1.7.
|
192
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.7.
|
192
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.7.7/activestorage/CHANGELOG.md
|
193
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.7.7/
|
193
194
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
194
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.7.
|
195
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.7.7/activestorage
|
195
196
|
rubygems_mfa_required: 'true'
|
196
197
|
post_install_message:
|
197
198
|
rdoc_options: []
|
@@ -208,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
209
|
- !ruby/object:Gem::Version
|
209
210
|
version: '0'
|
210
211
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
212
|
+
rubygems_version: 3.2.22
|
212
213
|
signing_key:
|
213
214
|
specification_version: 4
|
214
215
|
summary: Local and cloud file storage framework.
|