From f958347563522e2022ace808f8a6d2e2061db817 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 10 May 2023 14:31:40 +0400 Subject: [PATCH] Add more gems --- diversipub.gemspec | 3 +++ lib/diversipub.rb | 18 +++--------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/diversipub.gemspec b/diversipub.gemspec index 09409d4..e23d847 100644 --- a/diversipub.gemspec +++ b/diversipub.gemspec @@ -43,8 +43,11 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename f } + spec.add_runtime_dependency 'connection_pool', '~> 2.4' spec.add_runtime_dependency 'erb', '~> 4.0', '>= 4.0.2' spec.add_runtime_dependency 'json', '~> 2.6', '>= 2.6.3' + spec.add_runtime_dependency 'logger', '~> 1.5', '>= 1.5.3' + spec.add_runtime_dependency 'pathname', '~> 0.2.1' spec.add_runtime_dependency 'puma', '~> 6.2', '>= 6.2.2' spec.add_runtime_dependency 'rack', '~> 2.2', '>= 2.2.7' spec.add_runtime_dependency 'rack-protection', '~> 3.0', '>= 3.0.6' diff --git a/lib/diversipub.rb b/lib/diversipub.rb index 963c749..f6c0529 100644 --- a/lib/diversipub.rb +++ b/lib/diversipub.rb @@ -1,27 +1,15 @@ # frozen_string_literal: true -#################### -# Standard library # -#################### - -require 'logger' -require 'pathname' - -######## -# Gems # -######## - +require 'connection_pool' require 'erb' require 'json' +require 'logger' +require 'pathname' require 'puma' require 'rack' require 'rack/handler/puma' require 'rack/protection' -################ -# Own requires # -################ - require_relative 'diversipub/main' require_relative 'diversipub/puma_task' require_relative 'diversipub/rack_app'