From d76e981d1359d1013fe5f191775aaf54bf5cf97a Mon Sep 17 00:00:00 2001 From: Hexaitos Date: Mon, 11 Nov 2024 23:31:18 +0100 Subject: [PATCH] Add bundler --- Gemfile | 7 +++++++ Gemfile.lock | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ server.rb | 3 +++ 3 files changed, 67 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..71f5b3b --- /dev/null +++ b/Gemfile @@ -0,0 +1,7 @@ +source 'https://rubygems.org' + +gem 'json' +gem 'faraday' +gem 'sinatra' +gem 'sinatra-namespace' +gem 'thin' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..f909fbf --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,57 @@ +GEM + remote: https://rubygems.org/ + specs: + base64 (0.2.0) + daemons (1.4.1) + eventmachine (1.2.7) + faraday (2.12.0) + faraday-net_http (>= 2.0, < 3.4) + json + logger + faraday-net_http (3.3.0) + net-http + json (2.8.1) + logger (1.6.1) + multi_json (1.15.0) + mustermann (3.0.3) + ruby2_keywords (~> 0.0.1) + net-http (0.5.0) + uri + rack (2.2.10) + rack-protection (3.2.0) + base64 (>= 0.1.0) + rack (~> 2.2, >= 2.2.4) + ruby2_keywords (0.0.5) + sinatra (3.2.0) + mustermann (~> 3.0) + rack (~> 2.2, >= 2.2.4) + rack-protection (= 3.2.0) + tilt (~> 2.0) + sinatra-contrib (3.2.0) + multi_json (>= 0.0.2) + mustermann (~> 3.0) + rack-protection (= 3.2.0) + sinatra (= 3.2.0) + tilt (~> 2.0) + sinatra-namespace (1.0) + sinatra-contrib + thin (1.8.2) + daemons (~> 1.0, >= 1.0.9) + eventmachine (~> 1.0, >= 1.0.4) + rack (>= 1, < 3) + tilt (2.4.0) + uri (1.0.1) + +PLATFORMS + arm64-darwin-24 + ruby + +DEPENDENCIES + faraday + json + sinatra + sinatra-namespace + thin + +BUNDLED WITH + 2.5.19 diff --git a/server.rb b/server.rb index 62cda88..258fd6c 100644 --- a/server.rb +++ b/server.rb @@ -1,7 +1,10 @@ +require 'bundler/setup' + require 'json' require 'faraday' require 'sinatra' require 'sinatra/namespace' +require 'thin' require_relative 'get_images_by_category.rb' require_relative 'get_random_image.rb'