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 427ded0 commit baa73c8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gem "rake", "~> 13.2"
gem "redis", "~> 5.3"
gem "rspec", "~> 3.12"
gem "sentry-ruby", "~> 5.19"
gem "sinatra", "~> 4.0"
gem "sinatra", "~> 4.1"
gem "sinatra-activerecord", "~> 2.0.27"
gem "sinatra-contrib", "~> 4.0"
gem "sinatra-cross_origin", "~> 0.4.0"
Expand Down
16 changes: 9 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ GEM
nio4r (~> 2.0)
racc (1.8.1)
rack (3.1.7)
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 @@ -155,20 +156,21 @@ GEM
sentry-ruby (5.19.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-activerecord (2.0.27)
activerecord (>= 4.1)
sinatra (>= 1.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)
sinatra-cross_origin (0.4.0)
snaky_hash (2.0.1)
Expand Down Expand Up @@ -217,7 +219,7 @@ DEPENDENCIES
rubocop-govuk (~> 5.0)
rubocop-performance (~> 1.21)
sentry-ruby (~> 5.19)
sinatra (~> 4.0)
sinatra (~> 4.1)
sinatra-activerecord (~> 2.0.27)
sinatra-contrib (~> 4.0)
sinatra-cross_origin (~> 0.4.0)
Expand Down
4 changes: 4 additions & 0 deletions lib/controller/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

module Controller
class BaseController < Sinatra::Base
configure :development do
set :host_authorization, { permitted_hosts: [] }
end

helpers do
def container
Container.new
Expand Down

0 comments on commit baa73c8

Please sign in to comment.