postjob 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/postjob/cli/job.rb +1 -2
- data/lib/postjob/registry.rb +17 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e65c5b538677925c9fafa3774b5fc372ceaa7954
|
4
|
+
data.tar.gz: abbb379b6126ba5dea3bef0af94de21f560c20d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4aedf8ca25e4219cfb8647ceaa6a77d47619974f6904ed5e011fd3c7be89d9493571efe55ba7ef4354b5b866400f99270c8a86dd97f753bc9a246e6a931afc4
|
7
|
+
data.tar.gz: 5a7ff20629d0a60b478c5d3367ca2c7614c0fa970a7b877afb4a9ca6d4e65cc54c9c71cf0ba95b5c88363b213bd84d82af8d81f4122085e052d7c0bfee84cfe5
|
data/lib/postjob/cli/job.rb
CHANGED
data/lib/postjob/registry.rb
CHANGED
@@ -71,6 +71,23 @@ class Postjob::Registry
|
|
71
71
|
@cron_interval = options[:cron_interval]
|
72
72
|
@queue = options[:queue]
|
73
73
|
end
|
74
|
+
|
75
|
+
def inspect
|
76
|
+
r = {}
|
77
|
+
r[:version] = @version
|
78
|
+
r[:max_attempts] = @max_attempts
|
79
|
+
r[:timeout] = @timeout
|
80
|
+
r[:sticky] = @sticky
|
81
|
+
r[:cron_interval] = @cron_interval
|
82
|
+
r[:queue] = @queue
|
83
|
+
|
84
|
+
m = []
|
85
|
+
r.each do |k, v|
|
86
|
+
next if DEFAULTS[k] == v
|
87
|
+
m << "#{k}: #{v.inspect}"
|
88
|
+
end
|
89
|
+
m.join(", ")
|
90
|
+
end
|
74
91
|
end
|
75
92
|
|
76
93
|
attr_reader :workflow
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postjob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -322,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
322
|
version: '0'
|
323
323
|
requirements: []
|
324
324
|
rubyforge_project:
|
325
|
-
rubygems_version: 2.
|
325
|
+
rubygems_version: 2.5.1
|
326
326
|
signing_key:
|
327
327
|
specification_version: 4
|
328
328
|
summary: restartable, asynchronous, and distributed processes
|