Skip to content

Commit

Permalink
Merge pull request #889 from isucon/feature-update-gemfile-lock-logge…
Browse files Browse the repository at this point in the history
…r-and-sinatra-versions

update Gemfile.lock for sinatra
  • Loading branch information
catatsuy authored Nov 24, 2024
2 parents df7db00 + 3b53a7b commit fd520eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 9 additions & 6 deletions webapp/ruby/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ GEM
specs:
base64 (0.2.0)
bcrypt (3.1.20)
logger (1.6.1)
multi_json (1.15.0)
mustermann (3.0.3)
ruby2_keywords (~> 0.0.1)
Expand All @@ -13,25 +14,27 @@ GEM
puma (6.5.0)
nio4r (~> 2.0)
rack (3.1.8)
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)
rackup (2.2.1)
rack (>= 3)
ruby2_keywords (0.0.5)
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)
tilt (2.4.0)

Expand Down
3 changes: 3 additions & 0 deletions webapp/ruby/lib/isucari/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class Web < Sinatra::Base
set :session_secret, 'tagomoris' * 8
set :sessions, 'key' => 'isucari_session', 'expire_after' => 3600

# refs: https://github.com/advisories/GHSA-hxx2-7vcw-mqr3
set :host_authorization, { permitted_hosts: [] }

helpers do
def db
Thread.current[:db] ||= Mysql2::Client.new(
Expand Down

0 comments on commit fd520eb

Please sign in to comment.