jobly 0.5.13 → 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: 5c860954d5c2653992fd5fc659a505a245b12681f71a25a18f7c210cfdac922e
4
- data.tar.gz: 03712aba4241e0c1cf86563af58967232694389852ccce22534b9dcf1f86aa7e
3
+ metadata.gz: ed1e811ab5810313532f1fb9ad971794e432f6098461e9fca0e2a3015d3f7236
4
+ data.tar.gz: f7d804168e00cf68a1ed85e848222344eac3410b3485a41dc6b35f82a3e54ab4
5
5
  SHA512:
6
- metadata.gz: a18f724829f512e500db22020e4cc10417c8dd2f516eca092481e2aafef9d70d2ee0b7b34478b7e177e6c3073175a2262db9baab85b6a2f11e510f303bae613f
7
- data.tar.gz: ff389b4f52ad1c899f45b5cb095a683a6259c1b0b366ae10ab616716bf61f88d7c284fb4e136cb32389333efcf4215af485c1772240c22d610cd69cc9275898d
6
+ metadata.gz: d0c909014e963b2f9301c03c150f79d01376ce85fe13f02865289e46da34397294add643ccbb211a1d2efa75ef3251b63148e0d5657811e29dcc94acca142287
7
+ data.tar.gz: 9ca9dbe87e58ea46d45f0a3360ee1229f94c4aeb1abf85580bcfe6b6b38225c74bed1ce1eff011bde7600fbe3dfbccb22e547e5ab27d5d41d9d0cfad2234e171
@@ -35,7 +35,7 @@ module Jobly
35
35
  end
36
36
 
37
37
  def files
38
- Dir["#{target_dir}/**/{*,.*}"].sort.reject { |f| File.directory? f }
38
+ Dir["#{target_dir}/**/{*,.*}"].reject { |f| File.directory? f }
39
39
  end
40
40
  end
41
41
  end
@@ -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/jobs.rb CHANGED
@@ -13,8 +13,8 @@ module Jobly
13
13
  def self.load_all
14
14
  user_bootfile = "#{Jobly.full_app_path}/boot.rb"
15
15
  require user_bootfile if File.exist? user_bootfile
16
- Dir["#{Jobly.full_app_path}/**/*.rb"].sort.each { |file| require file }
17
- Dir["#{Jobly.full_jobs_path}/**/*.rb"].sort.each { |file| require file }
16
+ Dir["#{Jobly.full_app_path}/**/*.rb"].each { |file| require file }
17
+ Dir["#{Jobly.full_jobs_path}/**/*.rb"].each { |file| require file }
18
18
  end
19
19
 
20
20
  def self.full_job_name(job)
data/lib/jobly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jobly
2
- VERSION = '0.5.13'
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: 0.5.13
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-02-08 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
@@ -126,28 +126,28 @@ dependencies:
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '6.5'
129
+ version: '7.0'
130
130
  type: :runtime
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: '6.5'
136
+ version: '7.0'
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: sidekiq-status
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: '2.0'
143
+ version: '3.0'
144
144
  type: :runtime
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '2.0'
150
+ version: '3.0'
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: sinatra
153
153
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -306,15 +306,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
306
  requirements:
307
307
  - - ">="
308
308
  - !ruby/object:Gem::Version
309
- version: '2.7'
309
+ version: '3.0'
310
310
  required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  requirements:
312
312
  - - ">="
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
315
  requirements: []
316
- rubygems_version: 3.4.6
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: []