rabbit_jobs 0.8.13 → 0.8.14

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
  SHA1:
3
- metadata.gz: 30070350000176518b8d5fbd7a21218f53435401
4
- data.tar.gz: aa41a3e52db8ac1884725ab38f43a9c581ff3aac
3
+ metadata.gz: b36bac6d10a75651ca967f661fb7d309d243c4fb
4
+ data.tar.gz: 008abc62612381f00de048bf8173384636f81215
5
5
  SHA512:
6
- metadata.gz: 26dca9eed2630d1242097a8df69ae8b7b0eda657ee9649bd9cc57a4bd22749e5ea6eead34c255a64ca1f832f4f54e848983c24880aa645e59ea38ac3ac784d65
7
- data.tar.gz: 519e1e0481fec96b00543365ad6446ddbb8c82bcaa875bc0ef398892da54d7b4035de63eae24695189f66fb55c78b077bf50e951cc616dda012d8b666ec0da74
6
+ metadata.gz: eb972896e3792069dfa00eaedd5f2371e78fbfd617d6d500b89ff9feb5d00a8664cf53c2c22f5b6d5fcae84f88630fe024eb1248990e5594b63549a34380a680
7
+ data.tar.gz: b1186445bb437099c472870b6b948b13b265c0c6e36d6f3240102dd1fe2cc3cf0315718089954ffa6b8f14a130aaad3c965b8ce85c6468b84925d6c992e35fad
@@ -68,7 +68,7 @@ module RabbitJobs
68
68
  def check_connection
69
69
  unless connection.connected?
70
70
  connection.start if connection.status == :disconnected
71
- raise "Disconnected from #{RJ.config.server}. Connection status: #{connection.try(:status).inspect}"
71
+ raise "Disconnected from #{RJ.config.server}. Connection status: #{connection.try(:status).inspect}" unless connection.connected?
72
72
  end
73
73
  end
74
74
  end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.8.13"
4
+ VERSION = "0.8.14"
5
5
  end
@@ -60,7 +60,7 @@ module RabbitJobs
60
60
 
61
61
  begin
62
62
  amqp_channel = amqp_connection.create_channel
63
- # amqp_channel.prefetch(1)
63
+ amqp_channel.prefetch(1)
64
64
 
65
65
  queues.each do |routing_key|
66
66
  consume_queue(amqp_channel, routing_key)
data/rabbit_jobs.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.require_paths = ["lib"]
17
17
  gem.version = RabbitJobs::VERSION
18
18
 
19
- gem.add_dependency "bunny", "0.9.0.pre12"
19
+ gem.add_dependency "bunny", "0.9.0"
20
20
  gem.add_dependency "rake"
21
21
  gem.add_dependency "rufus-scheduler", "~> 2.0"
22
22
  gem.add_dependency "rails", "~> 3.2"
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.8.13
4
+ version: 0.8.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Lazureykis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-12 00:00:00.000000000 Z
11
+ date: 2013-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0.pre12
19
+ version: 0.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.0.pre12
26
+ version: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement