bunny 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bunny.rb +2 -2
- data/lib/bunny/version.rb +1 -1
- data/lib/qrack/queue.rb +1 -1
- metadata +2 -2
data/lib/bunny.rb
CHANGED
@@ -27,8 +27,8 @@ module Bunny
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Print deprecation warning.
|
30
|
-
def self.deprecation_warning(method, version)
|
31
|
-
warn "~ #{method} will be removed in Bunny #{version}."
|
30
|
+
def self.deprecation_warning(method, version, explanation)
|
31
|
+
warn "~ #{method} will be removed in Bunny #{version}. #{explanation}"
|
32
32
|
end
|
33
33
|
|
34
34
|
# Instantiates new Bunny::Client
|
data/lib/bunny/version.rb
CHANGED
data/lib/qrack/queue.rb
CHANGED
@@ -31,7 +31,7 @@ module Qrack
|
|
31
31
|
# @deprecated
|
32
32
|
# @note This method will be removed before 0.8 release.
|
33
33
|
def publish(data, opts = {})
|
34
|
-
Bunny.deprecation_warning("Qrack::Queue#publish", "0.8")
|
34
|
+
Bunny.deprecation_warning("Qrack::Queue#publish", "0.8", "Use direct_exchange = bunny.exchange(''); direct_exchange.publish('message', key: queue.name) if you want to publish directly to one given queue. For more informations see https://github.com/ruby-amqp/bunny/issues/15 and for more theoretical explanation check http://bit.ly/nOF1CK")
|
35
35
|
exchange.publish(data, opts)
|
36
36
|
end
|
37
37
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: bunny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version:
|
5
|
+
version: 0.7.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Chris Duncan
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-07-
|
17
|
+
date: 2011-07-19 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|