opener-scorer 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c7f17022140c8d6b926ea397e425080cd5e2649
4
- data.tar.gz: 94e0ff7ab67c6c207cef8fcbbbecf7ea61b6e7e7
3
+ metadata.gz: c523b9bdb95d9bade67318bd9bbbf323a72dffc3
4
+ data.tar.gz: 440ece97c32c502539fbc253144159a9da2e5876
5
5
  SHA512:
6
- metadata.gz: 77ef8845ae7ddb33c92f920b431bcda6e966c7dbbfe3356f13495fd292911c68f84232671815268c0e1ed9bce1f42490437d965fccaa4b67da496177820e9149
7
- data.tar.gz: c9a81adb19075b963e9bf52983be175f2e99a87640f7943123f12a42adfd8117123d541e7d4ddbbdcd1855b25d45f6bd35c3bbb8c8e2e41f1661a8abd6d60a07
6
+ metadata.gz: 88d6f4fe28d608d0e5beec296603284a5f84831b6e9d4b0233e3ddc6ebcc62d5e6d5854c1531f0cd180e5553fbda0483925e25463d15459dde54575c71def83a
7
+ data.tar.gz: cb0ccd806e33cabf1ca017cf1d59552c2ad9b74d46681588cd1ad06ec944927b1bf4624b134d62cb88c0eab03134562dff5ad72bb97b84755eed9444410754e0
data/bin/scorer-server CHANGED
@@ -1,10 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rack'
3
+ require 'puma/cli'
4
4
 
5
- # Without calling `Rack::Server#options` manually the CLI arguments will never
6
- # be passed, thus the application can't be specified as a constructor argument.
7
- server = Rack::Server.new
8
- server.options[:config] = File.expand_path('../../config.ru', __FILE__)
5
+ rack_config = File.expand_path('../../config.ru', __FILE__)
9
6
 
10
- server.start
7
+ cli = Puma::CLI.new([rack_config] + ARGV)
8
+ cli.run
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Scorer
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -25,6 +25,7 @@ Gem::Specification.new do |gem|
25
25
  gem.add_dependency 'nokogiri'
26
26
  gem.add_dependency 'httpclient'
27
27
  gem.add_dependency 'uuidtools'
28
+ gem.add_dependency 'puma'
28
29
  gem.add_dependency 'jdbc-mysql'
29
30
  gem.add_dependency 'activerecord-jdbcmysql-adapter'
30
31
  gem.add_dependency 'activerecord', '~>3.2'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-scorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: puma
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: jdbc-mysql
85
99
  requirement: !ruby/object:Gem::Requirement