pechkin 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pechkin.rb +3 -1
- data/lib/pechkin/cli.rb +2 -0
- data/lib/pechkin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6a85ac81ee32154705d92319c32e7706eb4af5d7a741bebcc4fee1ce64004b3
|
4
|
+
data.tar.gz: 4f36119f5bca18893aed4cdfa69ee4e1426291f2ac585b8b970d12ee604a62b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85742668000030821d0bc05ac5531144d2a34ff890c788ff568c309e4dc9020b808a64ffdb9f84b3346247af8de14bad70f3a6a915d1df3cc5aaf6e682f5628d
|
7
|
+
data.tar.gz: e5a3ab2a6fb85241223d589aed03603bf2e1295825200cfc2f4eb8adac89eb9780d40f578e84ab1657ff45e521738c83f15ca9ef7df867964a2e30cac547cc77
|
data/lib/pechkin.rb
CHANGED
@@ -59,7 +59,9 @@ module Pechkin # :nodoc:
|
|
59
59
|
|
60
60
|
def run_server
|
61
61
|
Rack::Server.start(app: AppBuilder.new.build(handler, options),
|
62
|
-
Port: options.port,
|
62
|
+
Port: options.port,
|
63
|
+
pid: options.pid_file,
|
64
|
+
Host: options.bind_address)
|
63
65
|
end
|
64
66
|
|
65
67
|
def send_data
|
data/lib/pechkin/cli.rb
CHANGED
@@ -101,6 +101,8 @@ module Pechkin
|
|
101
101
|
desc: 'Path to configuration file'
|
102
102
|
|
103
103
|
opt :port, names: ['--port PORT'], default: 9292, type: Integer
|
104
|
+
opt :bind_address, names: ['--address ADDRESS'], default: '127.0.0.1',
|
105
|
+
desc: 'The host address to bind to '
|
104
106
|
|
105
107
|
opt :pid_file, names: ['-p', '--pid-file [FILE]'],
|
106
108
|
desc: 'Path to output PID file'
|
data/lib/pechkin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pechkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Arkhanhelsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape
|