activestorage 7.0.8 → 7.0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -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: f6b85af188d7d97bd6eca314f880feae2eaa5a601ab9d56913aa682cee59c745
|
4
|
+
data.tar.gz: fff5aacc0c2ca287ba04a0ac21ac58e497a90fd1a760734decf62de3014ebdb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd7ac065a1308592dc65d95ad46ebfe98bd7b1b661ba676906e1290858a7473ea18a971e9250912af59f54a839f5e2728a285b5f83cd87f35df6a8c05a68b659
|
7
|
+
data.tar.gz: 696e64f857204b0d9010966999335d34062d78f843a6420233f55abb374a4f5517e1184b833d02f0e9738b036d1f67f641f0ab0a31882e362264d0e104d9b647
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
## Rails 7.0.8.4 (June 04, 2024) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 7.0.8.3 (May 17, 2024) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
11
|
+
## Rails 7.0.8.2 (May 16, 2024) ##
|
12
|
+
|
13
|
+
* No changes.
|
14
|
+
|
15
|
+
|
16
|
+
## Rails 7.0.8.1 (February 21, 2024) ##
|
17
|
+
|
18
|
+
* Disables the session in `ActiveStorage::Blobs::ProxyController`
|
19
|
+
and `ActiveStorage::Representations::ProxyController`
|
20
|
+
in order to allow caching by default in some CDNs as CloudFlare
|
21
|
+
|
22
|
+
Fixes #44136
|
23
|
+
|
24
|
+
*Bruno Prieto*
|
25
|
+
|
1
26
|
## Rails 7.0.8 (September 09, 2023) ##
|
2
27
|
|
3
28
|
* No changes.
|
@@ -8,6 +8,7 @@
|
|
8
8
|
# {Authenticated Controllers}[https://guides.rubyonrails.org/active_storage_overview.html#authenticated-controllers].
|
9
9
|
class ActiveStorage::Representations::ProxyController < ActiveStorage::Representations::BaseController
|
10
10
|
include ActiveStorage::Streaming
|
11
|
+
include ActiveStorage::DisableSession
|
11
12
|
|
12
13
|
def show
|
13
14
|
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: 7.0.8
|
4
|
+
version: 7.0.8.4
|
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-06-04 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: 7.0.8
|
19
|
+
version: 7.0.8.4
|
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.8
|
26
|
+
version: 7.0.8.4
|
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: 7.0.8
|
33
|
+
version: 7.0.8.4
|
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: 7.0.8
|
40
|
+
version: 7.0.8.4
|
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: 7.0.8
|
47
|
+
version: 7.0.8.4
|
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: 7.0.8
|
54
|
+
version: 7.0.8.4
|
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: 7.0.8
|
61
|
+
version: 7.0.8.4
|
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: 7.0.8
|
68
|
+
version: 7.0.8.4
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: marcel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- app/controllers/active_storage/representations/base_controller.rb
|
114
114
|
- app/controllers/active_storage/representations/proxy_controller.rb
|
115
115
|
- app/controllers/active_storage/representations/redirect_controller.rb
|
116
|
+
- app/controllers/concerns/active_storage/disable_session.rb
|
116
117
|
- app/controllers/concerns/active_storage/file_server.rb
|
117
118
|
- app/controllers/concerns/active_storage/set_blob.rb
|
118
119
|
- app/controllers/concerns/active_storage/set_current.rb
|
@@ -198,10 +199,10 @@ licenses:
|
|
198
199
|
- MIT
|
199
200
|
metadata:
|
200
201
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
201
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.8/activestorage/CHANGELOG.md
|
202
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.8/
|
202
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.8.4/activestorage/CHANGELOG.md
|
203
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.8.4/
|
203
204
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
204
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.8/activestorage
|
205
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.8.4/activestorage
|
205
206
|
rubygems_mfa_required: 'true'
|
206
207
|
post_install_message:
|
207
208
|
rdoc_options: []
|
@@ -218,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
219
|
- !ruby/object:Gem::Version
|
219
220
|
version: '0'
|
220
221
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
222
|
+
rubygems_version: 3.3.27
|
222
223
|
signing_key:
|
223
224
|
specification_version: 4
|
224
225
|
summary: Local and cloud file storage framework.
|