opener-tokenizer 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: fcf7f5ea8023ba15ef71ca6fb82839f7404cf1bf
4
- data.tar.gz: 021f76b37d483bea54bc3f41ccb1c85a35432003
3
+ metadata.gz: 07977da1fd3a94d9a88697f43235d2c7202bbe33
4
+ data.tar.gz: e86a4ca7440d2e2b1ed8bfa8851e90d842c5eaab
5
5
  SHA512:
6
- metadata.gz: d359e3fdfc7f5792958df137725fcdb02192f52e8a321654628bb5ed4a954b09ef461f5f6a69ed2215e813cad663b945c61cf8a262a80775d882dba98cc185a3
7
- data.tar.gz: 77d3ab3fd86a8dd12d8fe4210f36d40e1fb1185cfaab0e5fe40eba34b44b84e62ffe80e042e14b6c90aa67f2b58feaf4fcffd6e8aac85339d6dae9ba7564d22a
6
+ metadata.gz: dd20250047b206a9df53fc462fd27fc9e0d826baa07584edbf87d2afbc63a68e398b4a729755ffab04c467231645153ac8f0dee2c6b2719902eeee23b420a79b
7
+ data.tar.gz: 286ceb3f33edf03e2db5ea0fd123aaca4a46a39e5c3afd6d0157af73cbf912e4cc680c1bfb73c53598159fad6fae5dd512e1855d02c0d27b1a547d690f6ed0c9
data/bin/tokenizer-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 Tokenizer
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -28,6 +28,7 @@ Gem::Specification.new do |gem|
28
28
  gem.add_dependency 'sinatra', '~>1.4.2'
29
29
  gem.add_dependency 'httpclient'
30
30
  gem.add_dependency 'opener-daemons'
31
+ gem.add_dependency 'puma'
31
32
 
32
33
  gem.add_development_dependency 'rspec'
33
34
  gem.add_development_dependency 'cucumber'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-tokenizer
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
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: puma
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement