Skip to content

Commit dedc136

Browse files
authored
Merge pull request #965 from alphagov/dependabot/bundler/rails-8.1.3
Bump rails from 8.0.5 to 8.1.3
2 parents 602e804 + 0ba9219 commit dedc136

10 files changed

Lines changed: 172 additions & 180 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source "https://rubygems.org"
44

55
ruby "~> #{File.read(File.join(__dir__, '.ruby-version')).strip}"
66

7-
gem "rails", "8.0.5"
7+
gem "rails", "8.1.3"
88

99
gem "anthropic"
1010
gem "aws-sdk-bedrock"

Gemfile.lock

Lines changed: 72 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -10,72 +10,75 @@ GIT
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actioncable (8.0.5)
14-
actionpack (= 8.0.5)
15-
activesupport (= 8.0.5)
13+
action_text-trix (2.1.17)
14+
railties
15+
actioncable (8.1.3)
16+
actionpack (= 8.1.3)
17+
activesupport (= 8.1.3)
1618
nio4r (~> 2.0)
1719
websocket-driver (>= 0.6.1)
1820
zeitwerk (~> 2.6)
19-
actionmailbox (8.0.5)
20-
actionpack (= 8.0.5)
21-
activejob (= 8.0.5)
22-
activerecord (= 8.0.5)
23-
activestorage (= 8.0.5)
24-
activesupport (= 8.0.5)
21+
actionmailbox (8.1.3)
22+
actionpack (= 8.1.3)
23+
activejob (= 8.1.3)
24+
activerecord (= 8.1.3)
25+
activestorage (= 8.1.3)
26+
activesupport (= 8.1.3)
2527
mail (>= 2.8.0)
26-
actionmailer (8.0.5)
27-
actionpack (= 8.0.5)
28-
actionview (= 8.0.5)
29-
activejob (= 8.0.5)
30-
activesupport (= 8.0.5)
28+
actionmailer (8.1.3)
29+
actionpack (= 8.1.3)
30+
actionview (= 8.1.3)
31+
activejob (= 8.1.3)
32+
activesupport (= 8.1.3)
3133
mail (>= 2.8.0)
3234
rails-dom-testing (~> 2.2)
33-
actionpack (8.0.5)
34-
actionview (= 8.0.5)
35-
activesupport (= 8.0.5)
35+
actionpack (8.1.3)
36+
actionview (= 8.1.3)
37+
activesupport (= 8.1.3)
3638
nokogiri (>= 1.8.5)
3739
rack (>= 2.2.4)
3840
rack-session (>= 1.0.1)
3941
rack-test (>= 0.6.3)
4042
rails-dom-testing (~> 2.2)
4143
rails-html-sanitizer (~> 1.6)
4244
useragent (~> 0.16)
43-
actiontext (8.0.5)
44-
actionpack (= 8.0.5)
45-
activerecord (= 8.0.5)
46-
activestorage (= 8.0.5)
47-
activesupport (= 8.0.5)
45+
actiontext (8.1.3)
46+
action_text-trix (~> 2.1.15)
47+
actionpack (= 8.1.3)
48+
activerecord (= 8.1.3)
49+
activestorage (= 8.1.3)
50+
activesupport (= 8.1.3)
4851
globalid (>= 0.6.0)
4952
nokogiri (>= 1.8.5)
50-
actionview (8.0.5)
51-
activesupport (= 8.0.5)
53+
actionview (8.1.3)
54+
activesupport (= 8.1.3)
5255
builder (~> 3.1)
5356
erubi (~> 1.11)
5457
rails-dom-testing (~> 2.2)
5558
rails-html-sanitizer (~> 1.6)
56-
activejob (8.0.5)
57-
activesupport (= 8.0.5)
59+
activejob (8.1.3)
60+
activesupport (= 8.1.3)
5861
globalid (>= 0.3.6)
59-
activemodel (8.0.5)
60-
activesupport (= 8.0.5)
61-
activerecord (8.0.5)
62-
activemodel (= 8.0.5)
63-
activesupport (= 8.0.5)
62+
activemodel (8.1.3)
63+
activesupport (= 8.1.3)
64+
activerecord (8.1.3)
65+
activemodel (= 8.1.3)
66+
activesupport (= 8.1.3)
6467
timeout (>= 0.4.0)
65-
activestorage (8.0.5)
66-
actionpack (= 8.0.5)
67-
activejob (= 8.0.5)
68-
activerecord (= 8.0.5)
69-
activesupport (= 8.0.5)
68+
activestorage (8.1.3)
69+
actionpack (= 8.1.3)
70+
activejob (= 8.1.3)
71+
activerecord (= 8.1.3)
72+
activesupport (= 8.1.3)
7073
marcel (~> 1.0)
71-
activesupport (8.0.5)
74+
activesupport (8.1.3)
7275
base64
73-
benchmark (>= 0.3)
7476
bigdecimal
7577
concurrent-ruby (~> 1.0, >= 1.3.1)
7678
connection_pool (>= 2.2.5)
7779
drb
7880
i18n (>= 1.6, < 2)
81+
json
7982
logger (>= 1.4.2)
8083
minitest (>= 5.1)
8184
securerandom (>= 0.3)
@@ -107,7 +110,6 @@ GEM
107110
aws-sigv4 (1.12.1)
108111
aws-eventstream (~> 1, >= 1.0.2)
109112
base64 (0.3.0)
110-
benchmark (0.5.0)
111113
better_html (2.1.1)
112114
actionview (>= 6.0)
113115
activesupport (>= 6.0)
@@ -673,30 +675,30 @@ GEM
673675
rack (>= 1.3)
674676
rackup (2.3.1)
675677
rack (>= 3)
676-
rails (8.0.5)
677-
actioncable (= 8.0.5)
678-
actionmailbox (= 8.0.5)
679-
actionmailer (= 8.0.5)
680-
actionpack (= 8.0.5)
681-
actiontext (= 8.0.5)
682-
actionview (= 8.0.5)
683-
activejob (= 8.0.5)
684-
activemodel (= 8.0.5)
685-
activerecord (= 8.0.5)
686-
activestorage (= 8.0.5)
687-
activesupport (= 8.0.5)
678+
rails (8.1.3)
679+
actioncable (= 8.1.3)
680+
actionmailbox (= 8.1.3)
681+
actionmailer (= 8.1.3)
682+
actionpack (= 8.1.3)
683+
actiontext (= 8.1.3)
684+
actionview (= 8.1.3)
685+
activejob (= 8.1.3)
686+
activemodel (= 8.1.3)
687+
activerecord (= 8.1.3)
688+
activestorage (= 8.1.3)
689+
activesupport (= 8.1.3)
688690
bundler (>= 1.15.0)
689-
railties (= 8.0.5)
691+
railties (= 8.1.3)
690692
rails-dom-testing (2.3.0)
691693
activesupport (>= 5.0.0)
692694
minitest
693695
nokogiri (>= 1.6)
694696
rails-html-sanitizer (1.7.0)
695697
loofah (~> 2.25)
696698
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
697-
railties (8.0.5)
698-
actionpack (= 8.0.5)
699-
activesupport (= 8.0.5)
699+
railties (8.1.3)
700+
actionpack (= 8.1.3)
701+
activesupport (= 8.1.3)
700702
irb (~> 1.13)
701703
rackup (>= 1.0.0)
702704
rake (>= 12.2)
@@ -950,7 +952,7 @@ DEPENDENCIES
950952
pry-byebug
951953
pry-rails
952954
rack-attack
953-
rails (= 8.0.5)
955+
rails (= 8.1.3)
954956
rspec-rails
955957
rubocop-govuk
956958
ruby-openai
@@ -963,17 +965,18 @@ DEPENDENCIES
963965
webmock
964966

965967
CHECKSUMS
966-
actioncable (8.0.5) sha256=01a1d1a48b63b1a643fae6b7b4eb2859af55f507b335fca9ab869a5c6742bb8b
967-
actionmailbox (8.0.5) sha256=2651a87c0cc3dd1243a3afe64c052e71138f99006b3a5d3fa519198735500054
968-
actionmailer (8.0.5) sha256=7918fac842cfe985ed21692f3d212c914a0c816e30e6fa68633177bb22f38561
969-
actionpack (8.0.5) sha256=c9de868975dd124a0956499140bd5e63c367865deca01292df7c3195c8da4b35
970-
actiontext (8.0.5) sha256=12f3ce3d6326230728316ba14eeac27b2100d6e7d9bfcb4b01fb27b187a812e1
971-
actionview (8.0.5) sha256=6d0fa9e63df0cf2729b1f54d0988336c149eb2bbc6049f4c2834d7b62f351413
972-
activejob (8.0.5) sha256=2dabe5c3bfe284aba4687c52b930564335435dde3a60b047821f9d3bd0d2ea10
973-
activemodel (8.0.5) sha256=c796813d46dc1373f4c6c0ec91dfc520b53683ea773c3b3f9a12c4b3eb145bc2
974-
activerecord (8.0.5) sha256=89b261b6cd910c9431cf2475f3f6e5e2f5ce589805043a33ef2b004376a129e6
975-
activestorage (8.0.5) sha256=25898a3f8f8aced15ea6a8578cb56955acf3a96ad931e000b2e77e9c8db43df3
976-
activesupport (8.0.5) sha256=37f213ff6a37cf3fadfa1a28c1a9678e2cb73b59bb9ebd0eeeca653cccadcb23
968+
action_text-trix (2.1.17) sha256=b44691639d77e67169dc054ceacd1edc04d44dc3e4c6a427aa155a2beb4cc951
969+
actioncable (8.1.3) sha256=e5bc7f75e44e6a22de29c4f43176927c3a9ce4824464b74ed18d8226e75a80f0
970+
actionmailbox (8.1.3) sha256=df7da474eaa0e70df4ed5a6fef66eb3b3b0f2dbf7f14518deee8d77f1b4aae59
971+
actionmailer (8.1.3) sha256=831f724891bb70d0aaa4d76581a6321124b6a752cb655c9346aae5479318448d
972+
actionpack (8.1.3) sha256=af998cae4d47c5d581a2cc363b5c77eb718b7c4b45748d81b1887b25621c29a3
973+
actiontext (8.1.3) sha256=d291019c00e1ea9e6463011fa214f6081a56d7b9a1d224e7d3f6384c1dafc7d2
974+
actionview (8.1.3) sha256=1347c88c7f3edb38100c5ce0e9fb5e62d7755f3edc1b61cce2eb0b2c6ea2fd5d
975+
activejob (8.1.3) sha256=a149b1766aa8204c3c3da7309e4becd40fcd5529c348cffbf6c9b16b565fe8d3
976+
activemodel (8.1.3) sha256=90c05cbe4cef3649b8f79f13016191ea94c4525ce4a5c0fb7ef909c4b91c8219
977+
activerecord (8.1.3) sha256=8003be7b2466ba0a2a670e603eeb0a61dd66058fccecfc49901e775260ac70ab
978+
activestorage (8.1.3) sha256=0564ce9309143951a67615e1bb4e090ee54b8befed417133cae614479b46384d
979+
activesupport (8.1.3) sha256=21a5e0dfbd4c3ddd9e1317ec6a4d782fa226e7867dc70b0743acda81a1dca20e
977980
addressable (2.8.9) sha256=cc154fcbe689711808a43601dee7b980238ce54368d23e127421753e46895485
978981
amq-protocol (2.7.0) sha256=a798da91f076cf8225193739d09785201f72acbc5293282a3592ad3eda5b3afc
979982
anthropic (1.30.0) sha256=21674cf5c64a2072380e0c73a5cd62663b15c44b85e9d26ae6cecae47f10dcd2
@@ -985,7 +988,6 @@ CHECKSUMS
985988
aws-sdk-core (3.244.0) sha256=3e458c078b0c5bdee95bc370c3a483374b3224cf730c1f9f0faf849a5d9a18ea
986989
aws-sigv4 (1.12.1) sha256=6973ff95cb0fd0dc58ba26e90e9510a2219525d07620c8babeb70ef831826c00
987990
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
988-
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
989991
better_html (2.1.1) sha256=046c3551d1488a3f2939a7cac6fabf2bde08c32e135c91fcd683380118e5af55
990992
bigdecimal (3.3.1) sha256=eaa01e228be54c4f9f53bf3cc34fe3d5e845c31963e7fcc5bedb05a4e7d52218
991993
blueprinter (1.2.1) sha256=11b534060b0b548f7c7d2084f891742fe12760d8df77cb9a1cffe502a9ceca10
@@ -1207,10 +1209,10 @@ CHECKSUMS
12071209
rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
12081210
rack-test (2.2.0) sha256=005a36692c306ac0b4a9350355ee080fd09ddef1148a5f8b2ac636c720f5c463
12091211
rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
1210-
rails (8.0.5) sha256=4cb40f90948be292fa15cc7cb37757b97266585145c6e76957464b40edfd5be6
1212+
rails (8.1.3) sha256=6d017ba5348c98fc909753a8169b21d44de14d2a0b92d140d1a966834c3c9cd3
12111213
rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
12121214
rails-html-sanitizer (1.7.0) sha256=28b145cceaf9cc214a9874feaa183c3acba036c9592b19886e0e45efc62b1e89
1213-
railties (8.0.5) sha256=ad98c6e9a096b7e8cf63c70872b60ec6c1d4152be2a4ffa63483ec02a837a9d5
1215+
railties (8.1.3) sha256=913eb0e0cb520aac687ffd74916bd726d48fa21f47833c6292576ef6a286de22
12141216
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
12151217
rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
12161218
rake-compiler-dock (1.11.0) sha256=eab51f2cd533eb35cea6b624a75281f047123e70a64c58b607471bb49428f8c2

bin/rubocop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require "rubygems"
33
require "bundler/setup"
44

5-
# explicit rubocop config increases performance slightly while avoiding config confusion.
5+
# Explicit RuboCop config increases performance slightly while avoiding config confusion.
66
ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__))
77

88
load Gem.bin_path("rubocop", "rubocop")

bin/setup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ FileUtils.chdir APP_ROOT do
1111
# This script is a way to set up or update your development environment automatically.
1212
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
1313

14+
puts "== Installing dependencies =="
15+
system("bundle check") || system!("bundle install")
16+
1417
# only run this on local machine, never on govuk-docker
1518
system! "bin/export-aws-credentials"
1619

config/application.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
require "action_cable/engine"
1515
# require "rails/test_unit/railtie"
1616

17+
# If we don't require this here then it will not be added to the middleware stack by
18+
# the time we add our own custom middleware that depends on it. It will blow up when
19+
# we try to insert the Api::AuthMiddleware before it, and even if it didn't blow up there,
20+
# when the Api::RateLimit::Middleware runs the throttles wouldn't be defined.
21+
require "rack/attack"
22+
1723
# Require the gems listed in Gemfile, including any gems
1824
# you've limited to :test, :development, or :production.
1925
Bundler.require(*Rails.groups)
@@ -23,7 +29,7 @@
2329
module GovukChat
2430
class Application < Rails::Application
2531
# Initialize configuration defaults for originally generated Rails version.
26-
config.load_defaults 8.0
32+
config.load_defaults 8.1
2733

2834
# Please, add to the `ignore` list any other `lib` subdirectories that do
2935
# not contain `.rb` files, or that should not be reloaded or eager loaded.

config/environments/development.rb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
# Allow requests for all domains e.g. <app>.dev.gov.uk
1616
config.hosts.clear
1717

18-
# Enable server timing
18+
# Enable server timing.
1919
config.server_timing = true
2020

2121
# Enable/disable Action Controller caching. By default Action Controller caching is disabled.
2222
# Run rails dev:cache to toggle Action Controller caching.
2323
if Rails.root.join("tmp/caching-dev.txt").exist?
2424
config.action_controller.perform_caching = true
2525
config.action_controller.enable_fragment_cache_logging = true
26-
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" }
26+
config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
2727
else
2828
config.action_controller.perform_caching = false
2929
end
@@ -43,26 +43,29 @@
4343
# Append comments with runtime information tags to SQL queries in logs.
4444
config.active_record.query_log_tags_enabled = true
4545

46-
# Highlight code that enqueued background job in logs.
47-
config.active_job.verbose_enqueue_logs = true
48-
4946
# Send log notifications to the Sidekiq logger rather than using the Rails
5047
# default
5148
config.active_job.logger = Sidekiq.logger
5249

5350
# Suppress logger output for asset requests.
5451
config.assets.quiet = true
5552

53+
# Highlight code that enqueued background job in logs.
54+
config.active_job.verbose_enqueue_logs = true
55+
56+
# Highlight code that triggered redirect in logs.
57+
config.action_dispatch.verbose_redirect_logs = true
58+
5659
# Raises error for missing translations.
5760
# config.i18n.raise_on_missing_translations = true
5861

5962
# Annotate rendered view with file names.
60-
# config.action_view.annotate_rendered_view_with_filenames = true
63+
config.action_view.annotate_rendered_view_with_filenames = true
6164

6265
# Uncomment if you wish to allow Action Cable access from any origin.
6366
# config.action_cable.disable_request_forgery_protection = true
6467

65-
# Raise error when a before_action's only/except options reference missing actions
68+
# Raise error when a before_action's only/except options reference missing actions.
6669
config.action_controller.raise_on_missing_callback_actions = true
6770

6871
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.

config/environments/production.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
config.log_tags = [:request_id]
4242
config.logger = ActiveSupport::TaggedLogging.logger($stdout)
4343

44-
# Change to "debug" to log everything (including potentially personally-identifiable information!)
44+
# Change to "debug" to log everything (including potentially personally-identifiable information!).
4545
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
4646

4747
# Don't log any deprecations.
@@ -67,14 +67,6 @@
6767
# default
6868
config.active_job.logger = Sidekiq.logger
6969

70-
# Disable caching for Action Mailer templates even if Action Controller
71-
# caching is enabled.
72-
# config.action_mailer.perform_caching = false
73-
74-
# Ignore bad email addresses and do not raise email delivery errors.
75-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
76-
# config.action_mailer.raise_delivery_errors = false
77-
7870
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
7971
# the I18n.default_locale when a translation cannot be found).
8072
config.i18n.fallbacks = true

config/environments/test.rb

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
# loading is working properly before deploying your code.
1616
config.eager_load = ENV["CI"].present?
1717

18-
# Configure public file server for tests with Cache-Control for performance.
18+
# Configure public file server for tests with cache-control for performance.
1919
config.public_file_server.headers = { "cache-control" => "public, max-age=3600" }
2020

2121
# Don't show error reports and disable caching.
2222
config.consider_all_requests_local = false
23-
config.action_controller.perform_caching = false
2423
config.cache_store = :null_store
2524

2625
# Render exception templates for rescuable exceptions and raise for other exceptions.
@@ -29,14 +28,6 @@
2928
# Disable request forgery protection in test environment.
3029
config.action_controller.allow_forgery_protection = false
3130

32-
# Tell Action Mailer not to deliver emails to the real world.
33-
# The :test delivery method accumulates sent emails in the
34-
# ActionMailer::Base.deliveries array.
35-
# config.action_mailer.delivery_method = :test
36-
37-
# Set host to be used by links generated in mailer templates.
38-
# config.action_mailer.default_url_options = { host: "example.com" }
39-
4031
# Print deprecation notices to the stderr.
4132
config.active_support.deprecation = :stderr
4233

@@ -46,7 +37,7 @@
4637
# Annotate rendered view with file names.
4738
# config.action_view.annotate_rendered_view_with_filenames = true
4839

49-
# Raise error when a before_action's only/except options reference missing actions
40+
# Raise error when a before_action's only/except options reference missing actions.
5041
config.action_controller.raise_on_missing_callback_actions = true
5142

5243
# Use a hardcoded config value for testing

0 commit comments

Comments
 (0)