Skip to content

Commit 4305488

Browse files
committed
Starting sinatra with Puma
1 parent aebbf4c commit 4305488

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
33
gem 'sinatra'
44
gem 'octokit'
55
gem 'eldritch'
6+
gem 'puma'

lib/pairing_matrix/server/server.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'sinatra/base'
2+
require 'puma'
23
require 'json'
34
require_relative '../../pairing_matrix'
45
require_relative '../config/config_reader'
@@ -9,6 +10,7 @@
910
module PairingMatrix
1011
class Server < Sinatra::Base
1112
set :bind, '0.0.0.0'
13+
set :server, :puma
1214

1315
logging_file = File.new('app.log', 'a+')
1416
logging_file.sync = true
@@ -36,4 +38,4 @@ class Server < Sinatra::Base
3638
File.read(File.join(File.dirname(__FILE__), 'public/index.html'))
3739
end
3840
end
39-
end
41+
end

lib/pairing_matrix/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module PairingMatrix
2-
VERSION = '2.1.1'
2+
VERSION = '2.2'
33
end

pairing_matrix.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
2222
spec.add_dependency 'sinatra', '~> 1.4.8'
2323
spec.add_dependency 'octokit', '~> 4.6.2'
2424
spec.add_dependency 'eldritch', '~> 1.1.2'
25+
spec.add_dependency 'puma', '~> 3.11.2'
2526
end

0 commit comments

Comments
 (0)