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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc70626b19fe445f4e51e6e8f27fe2e4cf4eebf77e4fadf2fd76979d5d15fc12
4
- data.tar.gz: 004bfd02dc556e5648c8d455cc0f04e73494f363d8894ba264ca833f859a9db8
3
+ metadata.gz: dbc000e1b98ddbd9b46f6447d12c01e6d0f0a3dac04208fe03d27d25541a1dd5
4
+ data.tar.gz: 427e5ab0f68260eecf551f4ea3543a05485f6349786f5d2cc4ca26277344f508
5
5
  SHA512:
6
- metadata.gz: cdda456976e29cf6a2bc073046e5c8ce00d8c6acf12629639555a66f4f9eeb48f097a7e86ecd8dbb01f0eff64ce68920398704afd3cf74ccda1763bf360817d7
7
- data.tar.gz: 10b17d9d3a1147d296f4310656e6cb1540f533cc559d3cdcdb6b5878779e11243c097b5511dccde824c1a49eafa8768c85010495897e0fa1db129a3bb8a058fc
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 !txtpur!jobly COMMAND --help!txtrst! for more information'
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 ? '!txtred!' : '!txtgrn!'
31
- say "#{key.to_s.rjust 20} #{color}#{value.to_s.strip}"
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
@@ -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
@@ -20,7 +20,7 @@ module Jobly
20
20
  job_class = Jobs.get_class! job
21
21
 
22
22
  if args['--later']
23
- say "Scheduling !txtgrn!#{job_class}"
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 !txtgrn!#{job_class}"
31
+ say "Running g`#{job_class}`"
32
32
  job_class.run params
33
33
  end
34
34
  end
@@ -25,7 +25,7 @@ module Jobly
25
25
 
26
26
  raise HTTPError, "#{response.code} #{response.reason}" unless response.status.ok?
27
27
 
28
- say "!txtgrn!#{response.code} #{response.reason}"
28
+ say "g`#{response.code} #{response.reason}`"
29
29
  puts response.parse.to_yaml
30
30
  end
31
31
 
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.12'
2
+ VERSION = '1.0.0'
3
3
  end
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.5.12
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-01-20 00:00:00.000000000 Z
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: '0.7'
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: '0.7'
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: '6.5'
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: '6.5'
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: '2.0'
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: '2.0'
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: '2.7'
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.4.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