resqued 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c29c9729084c7b55ed2bed11f71f1083c88b0ba8
4
- data.tar.gz: cbbbdd94116fffad8ec09bba65319b3499017446
3
+ metadata.gz: 89da54f881dc0d8497fd7aa06d7e045e670a6bfc
4
+ data.tar.gz: 0098cea4233d83032ad681b1ac2456420acad260
5
5
  SHA512:
6
- metadata.gz: 0984ea77d172f109264c8b8a34fe0997f7ab4ec19293cec77588c5ccf918752524cbec37c6bd9dac93462d84c75b3a86873cce7b9dd4cd1e3790ee4e88867356
7
- data.tar.gz: 88484776caa1bf5faf77281f9f9c55d111e96eb955f1293b94c2f801b19203fe509be1b5d86a57948ded1e7282660df94f1169c7a908001a31f1da661ab0e03b
6
+ metadata.gz: 00a6cc29af1db18f2616adad16ea585cd84a452e6398b41df926c14276a30bc2503d6b0ed355f83ba945951668226f523143407b6bdd3e09af4647a694700f8e
7
+ data.tar.gz: 18e7a6dd7575e8f9ecb1c83b2f349519df125965a9ffcdaad207fafc68ea2eb0638bd0cf9e463230b7596c087f6e7fe9998722ec864d8a1271b4112276a1a8b0
@@ -2,6 +2,7 @@ require 'socket'
2
2
 
3
3
  require 'resqued/config'
4
4
  require 'resqued/logging'
5
+ require 'resqued/procline_version'
5
6
  require 'resqued/sleepy'
6
7
  require 'resqued/worker'
7
8
 
@@ -9,6 +10,7 @@ module Resqued
9
10
  # A listener process. Watches resque queues and forks workers.
10
11
  class Listener
11
12
  include Resqued::Logging
13
+ include Resqued::ProclineVersion
12
14
  include Resqued::Sleepy
13
15
 
14
16
  # Configure a new listener object.
@@ -203,7 +205,7 @@ module Resqued
203
205
 
204
206
  # Private.
205
207
  def write_procline(status)
206
- procline = "resqued listener"
208
+ procline = "#{procline_version} listener"
207
209
  procline << " #{@listener_id}" if @listener_id
208
210
  procline << " [#{status}]"
209
211
  procline << " #{@config_paths.join(' ')}"
@@ -2,6 +2,7 @@ require 'resqued/backoff'
2
2
  require 'resqued/listener_proxy'
3
3
  require 'resqued/logging'
4
4
  require 'resqued/pidfile'
5
+ require 'resqued/procline_version'
5
6
  require 'resqued/sleepy'
6
7
 
7
8
  module Resqued
@@ -12,6 +13,7 @@ module Resqued
12
13
  class Master
13
14
  include Resqued::Logging
14
15
  include Resqued::Pidfile
16
+ include Resqued::ProclineVersion
15
17
  include Resqued::Sleepy
16
18
 
17
19
  def initialize(options)
@@ -199,7 +201,7 @@ module Resqued
199
201
  end
200
202
 
201
203
  def write_procline
202
- $0 = "resqued master [gen #{@listeners_created}] [#{listener_pids.size} running] #{ARGV.join(' ')}"
204
+ $0 = "#{procline_version} master [gen #{@listeners_created}] [#{listener_pids.size} running] #{ARGV.join(' ')}"
203
205
  end
204
206
  end
205
207
  end
@@ -0,0 +1,17 @@
1
+ require 'resqued/version'
2
+
3
+ module Resqued
4
+ module ProclineVersion
5
+ def procline_version
6
+ @version ||=
7
+ begin
8
+ # If we've built a custom version, this should show the custom version.
9
+ Gem.loaded_specs['resqued'].version.to_s
10
+ rescue Object
11
+ # If this isn't a gem, fall back to the version in resqued/version.rb.
12
+ Resqued::VERSION
13
+ end
14
+ "resqued-#{@version}"
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Resqued
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resqued
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Burke
@@ -143,6 +143,7 @@ files:
143
143
  - lib/resqued/logging.rb
144
144
  - lib/resqued/master.rb
145
145
  - lib/resqued/pidfile.rb
146
+ - lib/resqued/procline_version.rb
146
147
  - lib/resqued/sleepy.rb
147
148
  - lib/resqued/version.rb
148
149
  - lib/resqued/worker.rb