Skip to content

Commit

Permalink
Make work with modern ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
kirs committed Jan 22, 2025
1 parent a777e18 commit 57b9eb3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.5
3.3.4
3 changes: 2 additions & 1 deletion map/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ source "https://rubygems.org"

gem 'sinatra'
gem 'sinatra-contrib'
gem 'pry'
gem 'base64'
gem 'webrick'
14 changes: 5 additions & 9 deletions map/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
GEM
remote: https://rubygems.org/
specs:
coderay (1.1.1)
method_source (0.8.2)
base64 (0.2.0)
multi_json (1.15.0)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rack (2.2.3)
rack-protection (2.2.0)
rack
Expand All @@ -25,16 +20,17 @@ GEM
rack-protection (= 2.2.0)
sinatra (= 2.2.0)
tilt (~> 2.0)
slop (3.6.0)
tilt (2.0.10)
webrick (1.8.1)

PLATFORMS
ruby

DEPENDENCIES
pry
base64
sinatra
sinatra-contrib
webrick

BUNDLED WITH
1.17.2
2.5.11
5 changes: 4 additions & 1 deletion map/server.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
require "bundler/setup"
require "sinatra"
require "sinatra/json"
require "pry"
require "json"
require "yaml"
require "erb"

require_relative './helpers'

set :public_folder, 'public'

get "/" do
send_file "public/admin.html"
end
Expand Down Expand Up @@ -38,3 +39,5 @@

status 200
end

Sinatra::Application.run!

0 comments on commit 57b9eb3

Please sign in to comment.