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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59912e94ce5225522475cb9f77b3bbb83c398a5dada6b1f937c02c0a886e2e8f
4
- data.tar.gz: dcf67693f3ecaa7de96ef00ee3e4bfc0347d6ee45f546a3c8e7ae9e5d39b34b0
3
+ metadata.gz: a6a85ac81ee32154705d92319c32e7706eb4af5d7a741bebcc4fee1ce64004b3
4
+ data.tar.gz: 4f36119f5bca18893aed4cdfa69ee4e1426291f2ac585b8b970d12ee604a62b4
5
5
  SHA512:
6
- metadata.gz: d071d69449005cf0dfae928a148391ea1247876bcc06cd52c588ca84d5210e37a66a0838e10511ed0a6554b1ecf6904961467e6d1fef916676a4296f34687367
7
- data.tar.gz: d59c5fcbf1c97be064075bf012ca0d760d65edd911bd4cd551efcc64468292ed213423fcfb893823aa57191b38433bb803a09158cd3da2da18558f8a7bd5d795
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, pid: options.pid_file)
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'
@@ -1,7 +1,7 @@
1
1
  module Pechkin
2
2
  # Keeps actual version
3
3
  module Version
4
- VERSION = [1, 1, 0].freeze
4
+ VERSION = [1, 2, 0].freeze
5
5
  class << self
6
6
  def version_string
7
7
  VERSION.join('.')
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.1.0
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: 2019-12-27 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape