jobly 0.5.12 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jobly/cli.rb +1 -1
- data/lib/jobly/commands/config.rb +2 -2
- data/lib/jobly/commands/init.rb +1 -1
- data/lib/jobly/commands/run.rb +2 -2
- data/lib/jobly/commands/send.rb +1 -1
- data/lib/jobly/jobs.rb +2 -2
- data/lib/jobly/version.rb +1 -1
- metadata +18 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc000e1b98ddbd9b46f6447d12c01e6d0f0a3dac04208fe03d27d25541a1dd5
|
4
|
+
data.tar.gz: 427e5ab0f68260eecf551f4ea3543a05485f6349786f5d2cc4ca26277344f508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c0b7ed3c2248bab533305af637f17c58f8690e5699ccf7f2755eb5de9f85c8229b2539238f1f14b0cb5b2f22f8dc17df8b4543f4220f913123fb8a8f142ff8
|
7
|
+
data.tar.gz: 3f7737a7248503a3cc979a2c0bfcfdf1dc766a3fe7dae0cfcb074f173899507a8be484471bff06a3418b79c96ef1ca83dbf39e456330266bc9f7d1519766ce4c
|
data/lib/jobly/cli.rb
CHANGED
@@ -9,7 +9,7 @@ module Jobly
|
|
9
9
|
def self.router
|
10
10
|
router = MisterBin::Runner.new version: Jobly::VERSION,
|
11
11
|
header: 'Jobly',
|
12
|
-
footer: 'Run
|
12
|
+
footer: 'Run m`jobly COMMAND --help` for more information'
|
13
13
|
|
14
14
|
router.route 'init', to: Commands::InitCmd
|
15
15
|
router.route 'server', to: Commands::ServerCmd
|
@@ -27,8 +27,8 @@ module Jobly
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def line(key, value, attention: false)
|
30
|
-
color = attention ? '
|
31
|
-
say "#{key.to_s.rjust 20} #{color}
|
30
|
+
color = attention ? 'r' : 'g'
|
31
|
+
say "#{key.to_s.rjust 20} #{color}`#{value.to_s.strip}`"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
data/lib/jobly/commands/init.rb
CHANGED
data/lib/jobly/commands/run.rb
CHANGED
@@ -20,7 +20,7 @@ module Jobly
|
|
20
20
|
job_class = Jobs.get_class! job
|
21
21
|
|
22
22
|
if args['--later']
|
23
|
-
say "Scheduling
|
23
|
+
say "Scheduling g`#{job_class}`"
|
24
24
|
if params.empty?
|
25
25
|
job_class.run_later
|
26
26
|
else
|
@@ -28,7 +28,7 @@ module Jobly
|
|
28
28
|
end
|
29
29
|
|
30
30
|
else
|
31
|
-
say "Running
|
31
|
+
say "Running g`#{job_class}`"
|
32
32
|
job_class.run params
|
33
33
|
end
|
34
34
|
end
|
data/lib/jobly/commands/send.rb
CHANGED
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"].
|
17
|
-
Dir["#{Jobly.full_jobs_path}/**/*.rb"].
|
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
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jobly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.8.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 0.8.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: http
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,28 +126,28 @@ dependencies:
|
|
120
126
|
requirements:
|
121
127
|
- - "~>"
|
122
128
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
129
|
+
version: '7.0'
|
124
130
|
type: :runtime
|
125
131
|
prerelease: false
|
126
132
|
version_requirements: !ruby/object:Gem::Requirement
|
127
133
|
requirements:
|
128
134
|
- - "~>"
|
129
135
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
136
|
+
version: '7.0'
|
131
137
|
- !ruby/object:Gem::Dependency
|
132
138
|
name: sidekiq-status
|
133
139
|
requirement: !ruby/object:Gem::Requirement
|
134
140
|
requirements:
|
135
141
|
- - "~>"
|
136
142
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
143
|
+
version: '3.0'
|
138
144
|
type: :runtime
|
139
145
|
prerelease: false
|
140
146
|
version_requirements: !ruby/object:Gem::Requirement
|
141
147
|
requirements:
|
142
148
|
- - "~>"
|
143
149
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
150
|
+
version: '3.0'
|
145
151
|
- !ruby/object:Gem::Dependency
|
146
152
|
name: sinatra
|
147
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -300,14 +306,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
300
306
|
requirements:
|
301
307
|
- - ">="
|
302
308
|
- !ruby/object:Gem::Version
|
303
|
-
version: '
|
309
|
+
version: '3.0'
|
304
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
305
311
|
requirements:
|
306
312
|
- - ">="
|
307
313
|
- !ruby/object:Gem::Version
|
308
314
|
version: '0'
|
309
315
|
requirements: []
|
310
|
-
rubygems_version: 3.
|
316
|
+
rubygems_version: 3.3.26
|
311
317
|
signing_key:
|
312
318
|
specification_version: 4
|
313
319
|
summary: Compact job server with API, CLI, Web UI and a Sidekiq heart
|