Skip to content

Commit

Permalink
Merge branch 'main' into hm-ruby-tracker-interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Sep 10, 2024
2 parents 1a0e710 + e09dd95 commit e4e97a5
Show file tree
Hide file tree
Showing 514 changed files with 12,113 additions and 6,722 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.191.1/containers/ruby/.devcontainer/base.Dockerfile

# [Choice] Ruby version: 3, 3.3, 3.2, 3.1, 3.0, 2, 2.7, 2.6
ARG VARIANT="3.3.4"
ARG VARIANT="3.3.5"
FROM ghcr.io/rails/devcontainer/images/ruby:${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/devcontainer-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ jobs:
- name: Generate rails app sqlite3
run: bundle exec railties/exe/rails new myapp_sqlite --database="sqlite3" --dev --devcontainer

- name: Remove old deprecated docker-compose
run: |
sudo rm /usr/local/bin/docker-compose
- name: Test devcontainer sqlite3
uses: devcontainers/[email protected]
with:
Expand Down
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ AllCops:
- '**/tmp/**/*'
- '**/templates/**/*'
- '**/vendor/**/*'
- 'actionpack/lib/action_dispatch/journey/parser.rb'
- 'actionmailbox/test/dummy/**/*'
- 'activestorage/test/dummy/**/*'
- 'actiontext/test/dummy/**/*'
Expand Down Expand Up @@ -256,6 +255,9 @@ Lint/RedundantCopDisableDirective:
Lint/RedundantCopEnableDirective:
Enabled: true

Lint/RedundantRequireStatement:
Enabled: true

Lint/RedundantStringCoercion:
Enabled: true

Expand Down
13 changes: 8 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"
gemspec

gem "minitest", ">= 5.15.0"
gem "minitest"

# We need a newish Rake since Active Job sets its test tasks' descriptions.
gem "rake", ">= 13"
Expand All @@ -21,7 +21,10 @@ gem "cssbundling-rails"
gem "importmap-rails", ">= 1.2.3"
gem "tailwindcss-rails"
gem "dartsass-rails"
gem "solid_cache"
gem "solid_queue"
gem "kamal", require: false
gem "thruster", require: false
# require: false so bcrypt is loaded only when has_secure_password is used.
# This is to avoid Active Model (and by extension the entire framework)
# being dependent on a binary library.
Expand All @@ -37,6 +40,9 @@ gem "json", ">= 2.0.0", "!=2.7.0"
# Workaround until Ruby ships with cgi version 0.3.6 or higher.
gem "cgi", ">= 0.3.6", require: false

# Workaround until all supported Ruby versions ship with uri version 0.13.1 or higher.
gem "uri", ">= 0.13.1", require: false

gem "prism"

group :lint do
Expand Down Expand Up @@ -151,11 +157,8 @@ end
platforms :ruby, :windows do
gem "nokogiri", ">= 1.8.1", "!= 1.11.0"

# Needed for compiling the ActionDispatch::Journey parser.
gem "racc", ">=1.4.6", require: false

# Active Record.
gem "sqlite3", ">= 1.6.6"
gem "sqlite3", ">= 2.0"

group :db do
gem "pg", "~> 1.3"
Expand Down
63 changes: 43 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ PATH
actionview (= 8.0.0.alpha)
activesupport (= 8.0.0.alpha)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
Expand Down Expand Up @@ -95,7 +94,9 @@ PATH
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
rails (8.0.0.alpha)
actioncable (= 8.0.0.alpha)
actionmailbox (= 8.0.0.alpha)
Expand Down Expand Up @@ -183,7 +184,7 @@ GEM
cgi (0.4.1)
chef-utils (18.3.0)
concurrent-ruby
concurrent-ruby (1.3.1)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
crack (0.4.5)
rexml
Expand All @@ -210,8 +211,8 @@ GEM
dotenv (2.8.1)
drb (2.2.1)
ed25519 (1.3.0)
erubi (1.12.0)
et-orbi (1.2.7)
erubi (1.13.0)
et-orbi (1.2.11)
tzinfo
event_emitter (0.2.6)
execjs (2.9.1)
Expand Down Expand Up @@ -240,9 +241,11 @@ GEM
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
ffi (1.16.3)
fugit (1.9.0)
et-orbi (~> 1, >= 1.2.7)
ffi (1.17.0)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
fugit (1.11.1)
et-orbi (~> 1, >= 1.2.11)
raabro (~> 1.4)
globalid (1.2.1)
activesupport (>= 6.1)
Expand Down Expand Up @@ -345,7 +348,7 @@ GEM
mini_magick (4.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.23.1)
minitest (5.25.1)
minitest-bisect (1.7.0)
minitest-server (~> 1.0)
path_expander (~> 1.1)
Expand Down Expand Up @@ -383,12 +386,12 @@ GEM
net-protocol
net-ssh (7.2.3)
nio4r (2.7.0)
nokogiri (1.16.5)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.5-x86_64-darwin)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.5-x86_64-linux)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
os (1.1.4)
parallel (1.24.0)
Expand All @@ -412,8 +415,8 @@ GEM
queue_classic (4.0.0)
pg (>= 1.1, < 2.0)
raabro (1.4.0)
racc (1.8.0)
rack (3.1.3)
racc (1.8.1)
rack (3.1.7)
rack-cache (1.15.0)
rack (>= 0.4)
rack-session (2.0.0)
Expand Down Expand Up @@ -499,8 +502,9 @@ GEM
rubocop-performance
rubocop-rails
ruby-progressbar (1.13.0)
ruby-vips (2.2.0)
ruby-vips (2.2.2)
ffi (~> 1.12)
logger
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
rufus-scheduler (3.9.1)
Expand All @@ -512,6 +516,7 @@ GEM
google-protobuf (~> 3.25)
sass-embedded (1.69.6-x86_64-linux-gnu)
google-protobuf (~> 3.25)
securerandom (0.3.1)
selenium-webdriver (4.22.0)
base64 (~> 0.2)
logger (~> 1.4)
Expand Down Expand Up @@ -540,13 +545,24 @@ GEM
rake
serverengine (~> 2.0.5)
thor
solid_cache (1.0.4)
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
solid_queue (0.8.1)
activejob (>= 7.1)
activerecord (>= 7.1)
concurrent-ruby (>= 1.3.1)
fugit (~> 1.11.0)
railties (>= 7.1)
thor (~> 1.3.1)
sorted_set (1.0.3)
rbtree
set (~> 1.0)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.5.1)
sprockets-rails (3.5.2)
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
Expand Down Expand Up @@ -576,7 +592,10 @@ GEM
railties (>= 6.0.0)
terser (1.1.20)
execjs (>= 0.3.0, < 3)
thor (1.3.0)
thor (1.3.2)
thruster (0.1.7)
thruster (0.1.7-x86_64-darwin)
thruster (0.1.7-x86_64-linux)
timeout (0.4.1)
tomlrb (2.0.3)
trailblazer-option (0.1.2)
Expand All @@ -589,6 +608,7 @@ GEM
concurrent-ruby (~> 1.0)
uber (0.1.0)
unicode-display_width (2.5.0)
uri (0.13.1)
useragent (0.16.10)
w3c_validators (1.3.7)
json (>= 1.8)
Expand Down Expand Up @@ -646,7 +666,7 @@ DEPENDENCIES
libxml-ruby
listen (~> 3.3)
mdl (!= 0.13.0)
minitest (>= 5.15.0)
minitest
minitest-bisect
minitest-ci
minitest-retry
Expand All @@ -658,7 +678,6 @@ DEPENDENCIES
propshaft (>= 0.1.7)
puma (>= 5.0.3)
queue_classic (>= 4.0.0)
racc (>= 1.4.6)
rack (~> 3.0)
rack-cache (~> 1.2)
rails!
Expand All @@ -683,17 +702,21 @@ DEPENDENCIES
selenium-webdriver (>= 4.20.0)
sidekiq
sneakers
solid_cache
solid_queue
sprockets-rails (>= 2.0.0)
sqlite3 (>= 1.6.6)
sqlite3 (>= 2.0)
stackprof
stimulus-rails
sucker_punch
syntax_tree (= 6.1.1)
tailwindcss-rails
terser (>= 1.1.4)
thruster
trilogy (>= 2.7.0)
turbo-rails
tzinfo-data
uri (>= 0.13.1)
useragent
w3c_validators (~> 1.3.6)
wdm (>= 0.1.0)
Expand All @@ -703,4 +726,4 @@ DEPENDENCIES
websocket-client-simple!

BUNDLED WITH
2.5.4
2.5.16
4 changes: 2 additions & 2 deletions RELEASING_RAILS.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Add some context for users as to the purpose of this release (bugfix/security).
If this is a part of the latest release series, update `_data/version.yml` so
that the homepage points to the latest version.

### Post the announcement to the Rails Twitter account.
### Post the announcement to the Rails X account.

## Security releases

Expand All @@ -179,7 +179,7 @@ and links to each patch. Some people may not be able to upgrade right away,
so we need to give them the security fixes in patch form.

* Blog announcements
* Twitter announcements
* X announcements
* Merge the release branch to the stable branch
* Drink beer (or other cocktail)

Expand Down
3 changes: 3 additions & 0 deletions actioncable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
* Add an `identifier` to the event payload for the ActiveSupport::Notification `transmit_subscription_confirmation.action_cable` and `transmit_subscription_rejection.action_cable`.

*Keith Schacht*

Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actioncable/CHANGELOG.md) for previous changes.
4 changes: 2 additions & 2 deletions actioncable/lib/action_cable/channel/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def transmit_subscription_confirmation
unless subscription_confirmation_sent?
logger.debug "#{self.class.name} is transmitting the subscription confirmation"

ActiveSupport::Notifications.instrument("transmit_subscription_confirmation.action_cable", channel_class: self.class.name) do
ActiveSupport::Notifications.instrument("transmit_subscription_confirmation.action_cable", channel_class: self.class.name, identifier: @identifier) do
connection.transmit identifier: @identifier, type: ActionCable::INTERNAL[:message_types][:confirmation]
@subscription_confirmation_sent = true
end
Expand All @@ -324,7 +324,7 @@ def reject_subscription
def transmit_subscription_rejection
logger.debug "#{self.class.name} is transmitting the subscription rejection"

ActiveSupport::Notifications.instrument("transmit_subscription_rejection.action_cable", channel_class: self.class.name) do
ActiveSupport::Notifications.instrument("transmit_subscription_rejection.action_cable", channel_class: self.class.name, identifier: @identifier) do
connection.transmit identifier: @identifier, type: ActionCable::INTERNAL[:message_types][:rejection]
end
end
Expand Down
Loading

0 comments on commit e4e97a5

Please sign in to comment.