From 4305488f8759fceb0bc4429086faff061c085fb3 Mon Sep 17 00:00:00 2001 From: AjitSingh Date: Mon, 5 Mar 2018 12:05:06 +0530 Subject: [PATCH] Starting sinatra with Puma --- Gemfile | 1 + lib/pairing_matrix/server/server.rb | 4 +++- lib/pairing_matrix/version.rb | 2 +- pairing_matrix.gemspec | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index b5cd034..bfee33e 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,4 @@ source 'https://rubygems.org' gem 'sinatra' gem 'octokit' gem 'eldritch' +gem 'puma' diff --git a/lib/pairing_matrix/server/server.rb b/lib/pairing_matrix/server/server.rb index 38bbf98..47962f1 100644 --- a/lib/pairing_matrix/server/server.rb +++ b/lib/pairing_matrix/server/server.rb @@ -1,4 +1,5 @@ require 'sinatra/base' +require 'puma' require 'json' require_relative '../../pairing_matrix' require_relative '../config/config_reader' @@ -9,6 +10,7 @@ module PairingMatrix class Server < Sinatra::Base set :bind, '0.0.0.0' + set :server, :puma logging_file = File.new('app.log', 'a+') logging_file.sync = true @@ -36,4 +38,4 @@ class Server < Sinatra::Base File.read(File.join(File.dirname(__FILE__), 'public/index.html')) end end -end \ No newline at end of file +end diff --git a/lib/pairing_matrix/version.rb b/lib/pairing_matrix/version.rb index 1c66ba2..91b4ae2 100644 --- a/lib/pairing_matrix/version.rb +++ b/lib/pairing_matrix/version.rb @@ -1,3 +1,3 @@ module PairingMatrix - VERSION = '2.1.1' + VERSION = '2.2' end diff --git a/pairing_matrix.gemspec b/pairing_matrix.gemspec index e3aa1c7..e2afed7 100644 --- a/pairing_matrix.gemspec +++ b/pairing_matrix.gemspec @@ -22,4 +22,5 @@ Gem::Specification.new do |spec| spec.add_dependency 'sinatra', '~> 1.4.8' spec.add_dependency 'octokit', '~> 4.6.2' spec.add_dependency 'eldritch', '~> 1.1.2' + spec.add_dependency 'puma', '~> 3.11.2' end