inci_score 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/inci_score/server.rb +2 -0
- data/lib/inci_score/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ebdee369644b8101b581422186444045721e4fe
|
|
4
|
+
data.tar.gz: e1415f118ec88be4a4c6e7dcf5326e54cb390669
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7eaede4cffde022ff2ca533a4658bcfa7735234549fcb35f66f8d2373bfb6998ba22171c897f0637f8520e2d8c4de2a369c9ef3d0ab043cb18dec5fa4032a632
|
|
7
|
+
data.tar.gz: 5a6a3adb64504755a04f22098c06037a5a6b9283a1509c0e26518ed4640f80c69c3bc69d678c04dd23593c23783babb4840a8eaa5266bdd01058372a933d6935
|
data/lib/inci_score/server.rb
CHANGED
|
@@ -3,6 +3,7 @@ require 'puma'
|
|
|
3
3
|
|
|
4
4
|
module InciScore
|
|
5
5
|
class Server
|
|
6
|
+
RACKUP_FILE = File.expand_path("../../../config.ru", __FILE__)
|
|
6
7
|
DEFAULT_HOST = "0.0.0.0"
|
|
7
8
|
|
|
8
9
|
def initialize(port: 9292, threads: "1:2", workers: Etc.nprocessors, preload: false,
|
|
@@ -25,6 +26,7 @@ module InciScore
|
|
|
25
26
|
|
|
26
27
|
private def config
|
|
27
28
|
@config_klass.new do |c|
|
|
29
|
+
c.rackup RACKUP_FILE
|
|
28
30
|
c.bind "tcp://#{DEFAULT_HOST}:#{@port}"
|
|
29
31
|
c.workers @workers if @workers > 1
|
|
30
32
|
c.threads *@threads
|
data/lib/inci_score/version.rb
CHANGED