Skip to content

Commit

Permalink
EPBR-7843: Update Sinatra and set host_authorization in development mode
Browse files Browse the repository at this point in the history
So that we can run dev-tools locally.
  • Loading branch information
al01010 committed Dec 11, 2024
1 parent 321a18a commit be85234
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gem "rake", "~> 13.2.1"
gem "rubocop-govuk", "~> 5.0"
gem "rubocop-rspec", "~> 3.0"
gem "sentry-ruby", "~> 5.19"
gem "sinatra", "~> 4.0"
gem "sinatra", "~> 4.1"
gem "sinatra-contrib"
gem "unleash", "~> 5.0.5"
gem "zeitwerk", "~> 2.7.0"
16 changes: 9 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ GEM
rack (3.1.8)
rack-contrib (2.5.0)
rack (< 4)
rack-protection (4.0.0)
rack-protection (4.1.1)
base64 (>= 0.1.0)
logger (>= 1.6.0)
rack (>= 3.0.0, < 4)
rack-session (2.0.0)
rack (>= 3.0.0)
Expand Down Expand Up @@ -169,17 +170,18 @@ GEM
sentry-ruby (5.21.0)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
sinatra (4.0.0)
sinatra (4.1.1)
logger (>= 1.6.0)
mustermann (~> 3.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.0.0)
rack-protection (= 4.1.1)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
sinatra-contrib (4.0.0)
sinatra-contrib (4.1.1)
multi_json (>= 0.0.2)
mustermann (~> 3.0)
rack-protection (= 4.0.0)
sinatra (= 4.0.0)
rack-protection (= 4.1.1)
sinatra (= 4.1.1)
tilt (~> 2.0)
snaky_hash (2.0.1)
hashie
Expand Down Expand Up @@ -230,7 +232,7 @@ DEPENDENCIES
rubocop-rspec (~> 3.0)
selenium-webdriver (~> 4.27.0)
sentry-ruby (~> 5.19)
sinatra (~> 4.0)
sinatra (~> 4.1)
sinatra-contrib
timecop (~> 0.9.10)
unleash (~> 5.0.5)
Expand Down
1 change: 1 addition & 0 deletions lib/controller/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def initialize(*args)
require "sinatra/reloader"
register Sinatra::Reloader
also_reload "lib/**/*.rb"
set :host_authorization, { permitted_hosts: [] }
end

before do
Expand Down

0 comments on commit be85234

Please sign in to comment.