jobly 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
  SHA256:
3
- metadata.gz: dbc000e1b98ddbd9b46f6447d12c01e6d0f0a3dac04208fe03d27d25541a1dd5
4
- data.tar.gz: 427e5ab0f68260eecf551f4ea3543a05485f6349786f5d2cc4ca26277344f508
3
+ metadata.gz: ed1e811ab5810313532f1fb9ad971794e432f6098461e9fca0e2a3015d3f7236
4
+ data.tar.gz: f7d804168e00cf68a1ed85e848222344eac3410b3485a41dc6b35f82a3e54ab4
5
5
  SHA512:
6
- metadata.gz: c3c0b7ed3c2248bab533305af637f17c58f8690e5699ccf7f2755eb5de9f85c8229b2539238f1f14b0cb5b2f22f8dc17df8b4543f4220f913123fb8a8f142ff8
7
- data.tar.gz: 3f7737a7248503a3cc979a2c0bfcfdf1dc766a3fe7dae0cfcb074f173899507a8be484471bff06a3418b79c96ef1ca83dbf39e456330266bc9f7d1519766ce4c
6
+ metadata.gz: d0c909014e963b2f9301c03c150f79d01376ce85fe13f02865289e46da34397294add643ccbb211a1d2efa75ef3251b63148e0d5657811e29dcc94acca142287
7
+ data.tar.gz: 9ca9dbe87e58ea46d45f0a3360ee1229f94c4aeb1abf85580bcfe6b6b38225c74bed1ce1eff011bde7600fbe3dfbccb22e547e5ab27d5d41d9d0cfad2234e171
@@ -2,14 +2,16 @@ module Jobly
2
2
  module Commands
3
3
  class ServerCmd < Base
4
4
  summary 'Start the server'
5
- usage 'jobly server [--port NUMBER]'
5
+ usage 'jobly server [--host ADDRESS --port NUMBER]'
6
6
  usage 'jobly server (-h|--help)'
7
+ option '-o --host ADDRESS', 'Set the bind address [default: 0.0.0.0]'
7
8
  option '-p --port NUMBER', 'Set the port number [default: 3000]'
8
9
 
9
10
  def run
11
+ host = args['--host']
10
12
  port = args['--port']
11
13
  say 'Starting server'
12
- exec "rackup --env #{Jobly.environment} --port #{port} --host 0.0.0.0 #{rackup_file}"
14
+ exec 'rackup', '--env', Jobly.environment, '--port', port, '--host', host, rackup_file
13
15
  end
14
16
 
15
17
  private
data/lib/jobly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jobly
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobly
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
  - Danny Ben Shitrit
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-25 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole
@@ -298,7 +298,7 @@ metadata:
298
298
  documentation_uri: https://jobly.dannyb.co/
299
299
  source_code_uri: https://github.com/dannyben/jobly
300
300
  rubygems_mfa_required: 'true'
301
- post_install_message:
301
+ post_install_message:
302
302
  rdoc_options: []
303
303
  require_paths:
304
304
  - lib
@@ -313,8 +313,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
315
  requirements: []
316
- rubygems_version: 3.3.26
317
- signing_key:
316
+ rubygems_version: 3.4.17
317
+ signing_key:
318
318
  specification_version: 4
319
319
  summary: Compact job server with API, CLI, Web UI and a Sidekiq heart
320
320
  test_files: []