rabbit_jobs 0.11.1 → 0.11.2

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: e3b674193fb517cd1f0f7c316e6b1fd24ff9bcc1
4
- data.tar.gz: 27c398776f9bca3adefe436052eda826b5e8f443
3
+ metadata.gz: 8d4a58dc128a14b5144faf0c170798cf0d12d6df
4
+ data.tar.gz: ac9ec25b01a051bd63aa20ab1f118b004aea4c0d
5
5
  SHA512:
6
- metadata.gz: 692636217286fc981d082d2376779cf8646fdcb97259bd026158949ecaf76afcaf008458d58ffbe6faa9bc4f6ccea683e9ddc25d886c67ef3b59551f1fdf81fc
7
- data.tar.gz: ae1c39fa5306d0ad1c7d6863f90757cb419f424735e3087fe865362c2961a4fe0be9c0d5a1b4d1edbe5302e2c2d0f43d7751b41bffd3e6563596d49d081459a8
6
+ metadata.gz: d3b8c9fe040e2c5ac634fd78fc51480d64009389be92fe67001eb7562119ec67c55f1768b1901b8a844a11a620da7b34b84e48b583f3d393e0f976a6035874fb
7
+ data.tar.gz: 3fb4803eae1ac51cc52262d409209f7d2210ae631dcaf126094728ca896835157b75a5f512f5bdee7fb17a03901c4cf5e56ba6920a11b4957f33534d1b90033c
data/lib/rabbit_jobs.rb CHANGED
@@ -7,6 +7,7 @@ require 'yaml'
7
7
  require 'active_support/core_ext/object/blank'
8
8
  require 'active_support/core_ext/hash'
9
9
  require 'active_support/core_ext/string/inflections'
10
+ require 'active_support/core_ext/module/delegation'
10
11
 
11
12
  require 'rabbit_jobs/version'
12
13
  require 'rabbit_jobs/configuration'
@@ -66,8 +66,8 @@ module RabbitJobs
66
66
 
67
67
  def connection
68
68
  unless settings[:connection]
69
- settings[:connection] = Bunny.new(RabbitJobs.config.server)
70
- settings[:connection].start
69
+ settings[:connection] = Bunny.new(RabbitJobs.config.server,
70
+ properties: Bunny::Session::DEFAULT_CLIENT_PROPERTIES.merge(product: "rj_scheduler #{Process.pid}")).start
71
71
  end
72
72
  settings[:connection]
73
73
  end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.11.1"
4
+ VERSION = "0.11.2"
5
5
  end
@@ -13,7 +13,8 @@ module RabbitJobs
13
13
  end
14
14
 
15
15
  def amqp_connection
16
- Thread.current[:rj_worker_connection] ||= Bunny.new(RabbitJobs.config.server, automatically_recover: false).start
16
+ Thread.current[:rj_worker_connection] ||= Bunny.new(RabbitJobs.config.server, automatically_recover: false,
17
+ properties: Bunny::Session::DEFAULT_CLIENT_PROPERTIES.merge(product: "rj_worker #{Process.pid}")).start
17
18
  end
18
19
 
19
20
  def self.cleanup
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Lazureykis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-26 00:00:00.000000000 Z
11
+ date: 2014-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny