amqp 1.5.3 → 1.6.0
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 +4 -4
- data/.ruby-version +1 -1
- data/ChangeLog.md +3 -16
- data/README.md +0 -7
- data/amqp.gemspec +2 -3
- data/lib/amqp/channel.rb +4 -8
- data/lib/amqp/session.rb +3 -6
- data/lib/amqp/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 295580888e256dddab5dd149bc16b54f367922cd
|
4
|
+
data.tar.gz: 25c9292b53dac56faf7f23d3ca225c3d22f31a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02da49654ab2a957b28a3a14a613615aa41e7a1863af3c4d37d0c3743b0821d14c85b33ceef5dd4b597ac9d63dffc76a0379d5d5733dd8c0bd5cb3c3f4ecc88d
|
7
|
+
data.tar.gz: 829533a07552a181e202d782f442d7356a83e106c095f2a14a41279017f9db72940904df340d9ed9a5e559c2a8e7fe941e8b09256aa09b6515c35f8ecf2f1f61
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2
|
data/ChangeLog.md
CHANGED
@@ -1,13 +1,8 @@
|
|
1
|
-
## Changes Between 1.5.
|
2
|
-
|
3
|
-
### Correct amq-protocol Dependency
|
4
|
-
|
5
|
-
`1.5.2` was bumped to depend on `amq-protocol` 2.x, which
|
6
|
-
has a different Ruby version support matrix. This change has been
|
7
|
-
reverted in `1.5.3`.
|
1
|
+
## Changes Between 1.5.x and 1.6.0 (Apr 4th, 2016)
|
8
2
|
|
3
|
+
### amq-protocol Update
|
9
4
|
|
10
|
-
|
5
|
+
Minimum `amq-protocol` version is now `2.0.1`.
|
11
6
|
|
12
7
|
### Provide More Details in TCP Connection Failure Exception
|
13
8
|
|
@@ -30,14 +25,6 @@ Contributed by Michael Lutsiuk.
|
|
30
25
|
GH issue: [#218](https://github.com/ruby-amqp/amqp/issues/218)
|
31
26
|
|
32
27
|
|
33
|
-
## Changes Betweem 1.5.0 and 1.5.1 (Aug 26th, 2015)
|
34
|
-
|
35
|
-
### Upgrade amq-protocol to 1.9
|
36
|
-
|
37
|
-
This library now depends on amq-protocol `~> 1.9`.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
28
|
|
42
29
|
## Changes Between 1.4.x and 1.5.0
|
43
30
|
|
data/README.md
CHANGED
@@ -203,13 +203,6 @@ We cover Web application integration for multiple Ruby Web servers in [Connectin
|
|
203
203
|
|
204
204
|
|
205
205
|
|
206
|
-
## Migration from amqp gem 0.6.x and 0.7.x
|
207
|
-
|
208
|
-
Upgrading from amqp gem 0.6.x and 0.7.x to 0.8.0+ is straightforward, please see [amqp gem 0.8.0 migration guide](http://rubyamqp.info/articles/08_migration/).
|
209
|
-
The same guide explains amqp gem versions history and why you would want to upgrade.
|
210
|
-
|
211
|
-
|
212
|
-
|
213
206
|
## Maintainer Information
|
214
207
|
|
215
208
|
amqp gem is maintained by [Michael Klishin](http://twitter.com/michaelklishin).
|
data/amqp.gemspec
CHANGED
@@ -10,8 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ["Aman Gupta", "Jakub Stastny aka botanicus", "Michael S. Klishin"]
|
11
11
|
s.homepage = "http://rubyamqp.info"
|
12
12
|
s.summary = "Mature EventMachine-based RabbitMQ client"
|
13
|
-
|
14
|
-
s.description = "Mature EventMachine-based RabbitMQ client"
|
13
|
+
s.description = "Mature EventMachine-based RabbitMQ client."
|
15
14
|
s.email = ["bWljaGFlbEBub3ZlbWJlcmFpbi5jb20=\n", "c3Rhc3RueUAxMDFpZGVhcy5jeg==\n"].map { |i| Base64.decode64(i) }
|
16
15
|
s.licenses = ["Ruby"]
|
17
16
|
|
@@ -24,7 +23,7 @@ Gem::Specification.new do |s|
|
|
24
23
|
|
25
24
|
# Dependencies
|
26
25
|
s.add_dependency "eventmachine"
|
27
|
-
s.add_dependency "amq-protocol", "
|
26
|
+
s.add_dependency "amq-protocol", ">= 2.0.1"
|
28
27
|
|
29
28
|
s.rubyforge_project = "amqp"
|
30
29
|
end
|
data/lib/amqp/channel.rb
CHANGED
@@ -342,7 +342,7 @@ module AMQP
|
|
342
342
|
old_id = @id
|
343
343
|
# must release after we allocate a new id, otherwise we will end up
|
344
344
|
# with the same value. MK.
|
345
|
-
@id =
|
345
|
+
@id = @connection.next_channel_id
|
346
346
|
@connection.release_channel_id(old_id)
|
347
347
|
|
348
348
|
@channel_is_open_deferrable.fail
|
@@ -1184,14 +1184,10 @@ module AMQP
|
|
1184
1184
|
@consumers
|
1185
1185
|
end # consumers
|
1186
1186
|
|
1187
|
-
# @return [Array<Queue>] Collection of queues that were declared on this channel.
|
1188
|
-
def queues
|
1189
|
-
@queues.values
|
1190
|
-
end
|
1191
1187
|
|
1192
|
-
# @return [
|
1188
|
+
# @return [Hash<Exchange>] Collection of exchanges that were declared on this channel.
|
1193
1189
|
def exchanges
|
1194
|
-
@exchanges
|
1190
|
+
@exchanges
|
1195
1191
|
end
|
1196
1192
|
|
1197
1193
|
|
@@ -1414,7 +1410,7 @@ module AMQP
|
|
1414
1410
|
end
|
1415
1411
|
|
1416
1412
|
|
1417
|
-
RECOVERY_EVENTS = [:after_connection_interruption, :before_recovery, :after_recovery].freeze
|
1413
|
+
RECOVERY_EVENTS = [:after_connection_interruption, :before_recovery, :after_recovery, :error].freeze
|
1418
1414
|
|
1419
1415
|
|
1420
1416
|
# @api plugin
|
data/lib/amqp/session.rb
CHANGED
@@ -930,12 +930,9 @@ module AMQP
|
|
930
930
|
@frames[frame.channel] << frame
|
931
931
|
|
932
932
|
if frameset_complete?(@frames[frame.channel])
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
# for channel.close, frame.channel will be nil. MK.
|
937
|
-
clear_frames_on(frame.channel) if @frames[frame.channel]
|
938
|
-
end
|
933
|
+
receive_frameset(@frames[frame.channel])
|
934
|
+
# for channel.close, frame.channel will be nil. MK.
|
935
|
+
clear_frames_on(frame.channel) if @frames[frame.channel]
|
939
936
|
end
|
940
937
|
end
|
941
938
|
|
data/lib/amqp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aman Gupta
|
@@ -30,17 +30,17 @@ dependencies:
|
|
30
30
|
name: amq-protocol
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - "
|
33
|
+
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 2.0.1
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - "
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
43
|
-
description: Mature EventMachine-based RabbitMQ client
|
42
|
+
version: 2.0.1
|
43
|
+
description: Mature EventMachine-based RabbitMQ client.
|
44
44
|
email:
|
45
45
|
- michael@novemberain.com
|
46
46
|
- stastny@101ideas.cz
|