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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 574e3a114fa762835314b2e72a2d12b73840569661d9ff8ab06f1ba08d95fb92
4
- data.tar.gz: e922e1f1116423b4895a4725107f0456260fa6382edcb308e220fdf62622b528
2
+ SHA1:
3
+ metadata.gz: e65c5b538677925c9fafa3774b5fc372ceaa7954
4
+ data.tar.gz: abbb379b6126ba5dea3bef0af94de21f560c20d5
5
5
  SHA512:
6
- metadata.gz: 9d7a61a2298c1fc15efc9ce424111d1baf102326b4f73a8314b3e42085a3929443390df44f8e721ef9bac0d4d2273d57a21c8252a4e30a140c6c523ee3766939
7
- data.tar.gz: 782b95ae3ab74ad021772b7eb4f3886b8c92835ef3484fa34f1c4ba84792db80e5448273a8318661004d4a36229f554674b87ee00e453882388a27a72d7403be
6
+ metadata.gz: e4aedf8ca25e4219cfb8647ceaa6a77d47619974f6904ed5e011fd3c7be89d9493571efe55ba7ef4354b5b866400f99270c8a86dd97f753bc9a246e6a931afc4
7
+ data.tar.gz: 5a7ff20629d0a60b478c5d3367ca2c7614c0fa970a7b877afb4a9ca6d4e65cc54c9c71cf0ba95b5c88363b213bd84d82af8d81f4122085e052d7c0bfee84cfe5
@@ -94,8 +94,7 @@ module Postjob::CLI
94
94
  spec = Postjob::Registry.lookup! name: name, version: version
95
95
  {
96
96
  name: name,
97
- version: version.inspect,
98
- options: spec.options.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")
97
+ options: spec.options.inspect
99
98
  }
100
99
  end
101
100
 
@@ -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.6
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-10 00:00:00.000000000 Z
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.7.7
325
+ rubygems_version: 2.5.1
326
326
  signing_key:
327
327
  specification_version: 4
328
328
  summary: restartable, asynchronous, and distributed processes