From 6e4477f9cdba394e7a1625b1c480d1ad1be36d8d Mon Sep 17 00:00:00 2001 From: Vyacheslav Litvinov Date: Mon, 13 Nov 2023 09:34:55 +0300 Subject: [PATCH] added simple page --- Gemfile | 3 +++ Gemfile.lock | 17 +++++++++++++++++ myapp.rb | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 myapp.rb diff --git a/Gemfile b/Gemfile index 9a45184..f8bf6e4 100644 --- a/Gemfile +++ b/Gemfile @@ -6,3 +6,6 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '3.1.2' gem 'rubocop' +gem 'sinatra' +gem 'puma' + diff --git a/Gemfile.lock b/Gemfile.lock index c88105a..092ea43 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,11 +4,19 @@ GEM ast (2.4.2) json (2.6.3) language_server-protocol (3.17.0.3) + mustermann (3.0.0) + ruby2_keywords (~> 0.0.1) + nio4r (2.5.9) parallel (1.23.0) parser (3.2.2.4) ast (~> 2.4.1) racc + puma (6.4.0) + nio4r (~> 2.0) racc (1.7.3) + rack (2.2.8) + rack-protection (3.1.0) + rack (~> 2.2, >= 2.2.4) rainbow (3.1.1) regexp_parser (2.8.2) rexml (3.2.6) @@ -26,6 +34,13 @@ GEM rubocop-ast (1.30.0) parser (>= 3.2.1.0) ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) + sinatra (3.1.0) + mustermann (~> 3.0) + rack (~> 2.2, >= 2.2.4) + rack-protection (= 3.1.0) + tilt (~> 2.0) + tilt (2.3.0) unicode-display_width (2.5.0) PLATFORMS @@ -35,7 +50,9 @@ PLATFORMS x86_64-linux DEPENDENCIES + puma rubocop + sinatra RUBY VERSION ruby 3.1.2p20 diff --git a/myapp.rb b/myapp.rb new file mode 100644 index 0000000..142ae70 --- /dev/null +++ b/myapp.rb @@ -0,0 +1,6 @@ +require 'sinatra' + +get '/' do + 'Hello world!' +end +