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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 420c1bf7f76544267cbc6ef605b62ed7e006acaf
4
- data.tar.gz: 5fd92ef99df38d4154e161948416b59675e1472d
3
+ metadata.gz: 1ebdee369644b8101b581422186444045721e4fe
4
+ data.tar.gz: e1415f118ec88be4a4c6e7dcf5326e54cb390669
5
5
  SHA512:
6
- metadata.gz: e6ec0d833f3ddddcb4e23887281e2aea0aefb3f21170330dd57212a557e1e34ad9fd2e439fb7f7533abaf9c2d2583f1a0e5bb86bf54f09baa2450b42d2ef462c
7
- data.tar.gz: 427161a1ebbd5b69695a2d34da17dc88b7e750355a75237d99535e7f5dfd35688ea19201ae8f5e3cce580093b4f6a3b35ff8a6241b828dc699bf4f725dfe54a4
6
+ metadata.gz: 7eaede4cffde022ff2ca533a4658bcfa7735234549fcb35f66f8d2373bfb6998ba22171c897f0637f8520e2d8c4de2a369c9ef3d0ab043cb18dec5fa4032a632
7
+ data.tar.gz: 5a6a3adb64504755a04f22098c06037a5a6b9283a1509c0e26518ed4640f80c69c3bc69d678c04dd23593c23783babb4840a8eaa5266bdd01058372a933d6935
@@ -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
@@ -1,3 +1,3 @@
1
1
  module InciScore
2
- VERSION = "2.1.3"
2
+ VERSION = "2.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inci_score
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - costajob