Skip to content

Commit

Permalink
Merge branch '6-1-sec' into 6-1-stable
Browse files Browse the repository at this point in the history
* 6-1-sec:
  Preparing for 6.1.7.7 release
  update changelog
  Merge pull request #48869 from brunoprietog/disable-session-active-storage-proxy-controllers
  • Loading branch information
tenderlove committed Feb 21, 2024
2 parents 517ff4b + ac87f58 commit 2fcc005
Show file tree
Hide file tree
Showing 35 changed files with 406 additions and 302 deletions.
588 changes: 304 additions & 284 deletions Gemfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion RAILS_VERSION
@@ -1 +1 @@
6.1.7.6
6.1.7.7
5 changes: 5 additions & 0 deletions actioncable/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion actioncable/lib/action_cable/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
2 changes: 1 addition & 1 deletion actioncable/package.json
@@ -1,6 +1,6 @@
{
"name": "@rails/actioncable",
"version": "6.1.7-6",
"version": "6.1.7-7",
"description": "WebSocket framework for Ruby on Rails.",
"main": "app/assets/javascripts/action_cable.js",
"files": [
Expand Down
5 changes: 5 additions & 0 deletions actionmailbox/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion actionmailbox/lib/action_mailbox/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
5 changes: 5 additions & 0 deletions actionmailer/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
5 changes: 5 additions & 0 deletions actionpack/CHANGELOG.md
Expand Up @@ -2,6 +2,11 @@

*Hartley McGuire*

## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_pack/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
5 changes: 5 additions & 0 deletions actiontext/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion actiontext/lib/action_text/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
2 changes: 1 addition & 1 deletion actiontext/package.json
@@ -1,6 +1,6 @@
{
"name": "@rails/actiontext",
"version": "6.1.7-6",
"version": "6.1.7-7",
"description": "Edit and display rich text in Rails applications",
"main": "app/javascript/actiontext/index.js",
"files": [
Expand Down
5 changes: 5 additions & 0 deletions actionview/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion actionview/lib/action_view/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
2 changes: 1 addition & 1 deletion actionview/package.json
@@ -1,6 +1,6 @@
{
"name": "@rails/ujs",
"version": "6.1.7-6",
"version": "6.1.7-7",
"description": "Ruby on Rails unobtrusive scripting adapter",
"main": "lib/assets/compiled/rails-ujs.js",
"files": [
Expand Down
5 changes: 5 additions & 0 deletions activejob/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
5 changes: 5 additions & 0 deletions activemodel/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
5 changes: 5 additions & 0 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
10 changes: 10 additions & 0 deletions activestorage/CHANGELOG.md
Expand Up @@ -7,6 +7,16 @@

*Haroon Ahmed*

## Rails 6.1.7.7 (February 21, 2024) ##

* Disables the session in `ActiveStorage::Blobs::ProxyController`
and `ActiveStorage::Representations::ProxyController`
in order to allow caching by default in some CDNs as CloudFlare

Fixes #44136

*Bruno Prieto*

## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
Expand Up @@ -4,6 +4,7 @@
class ActiveStorage::Blobs::ProxyController < ActiveStorage::BaseController
include ActiveStorage::SetBlob
include ActiveStorage::SetHeaders
include ActiveStorage::DisableSession

def show
http_cache_forever public: true do
Expand Down
Expand Up @@ -3,6 +3,7 @@
# Proxy files through application. This avoids having a redirect and makes files easier to cache.
class ActiveStorage::Representations::ProxyController < ActiveStorage::Representations::BaseController
include ActiveStorage::SetHeaders
include ActiveStorage::DisableSession

def show
http_cache_forever public: true do
Expand Down
@@ -0,0 +1,12 @@
# frozen_string_literal: true

# This concern disables the session in order to allow caching by default in some CDNs as CloudFlare.
module ActiveStorage::DisableSession
extend ActiveSupport::Concern

included do
before_action do
request.session_options[:skip] = true
end
end
end
2 changes: 1 addition & 1 deletion activestorage/lib/active_storage/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
2 changes: 1 addition & 1 deletion activestorage/package.json
@@ -1,6 +1,6 @@
{
"name": "@rails/activestorage",
"version": "6.1.7-6",
"version": "6.1.7-7",
"description": "Attach cloud and local files in Rails applications",
"main": "app/assets/javascripts/activestorage.js",
"files": [
Expand Down
5 changes: 5 additions & 0 deletions activesupport/CHANGELOG.md
Expand Up @@ -10,6 +10,11 @@

*Yasuo Honda*

## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
5 changes: 5 additions & 0 deletions guides/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
5 changes: 5 additions & 0 deletions railties/CHANGELOG.md
@@ -1,3 +1,8 @@
## Rails 6.1.7.7 (February 21, 2024) ##

* No changes.


## Rails 6.1.7.6 (August 22, 2023) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/gem_version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down
2 changes: 1 addition & 1 deletion version.rb
Expand Up @@ -10,7 +10,7 @@ module VERSION
MAJOR = 6
MINOR = 1
TINY = 7
PRE = "6"
PRE = "7"

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
Expand Down

0 comments on commit 2fcc005

Please sign in to comment.