amqp 1.5.1 → 1.5.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 +4 -4
- data/ChangeLog.md +32 -0
- data/amqp.gemspec +3 -3
- data/lib/amqp/session.rb +7 -4
- data/lib/amqp/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ec0a613ab870bffc1ca41abce1779aea7c4b7da
|
4
|
+
data.tar.gz: 21ef32d64e0a21d4edb54ea0d8fdbad3f031f829
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c123a3ecaef80e81b88702496542975ca1c557d387085132ae7c48f5fb21a18ebbab5f5d6cf5ec3b0d03fccc447b9dcc9c33ce1256a9a0e5f2258b1c9e87e2b
|
7
|
+
data.tar.gz: 30cbf61736f23ebc6ff7a2e2d4a1f36f1dc46460ecc1f974eb7f835030c767fd06f0b7e2471533ce8c9f113bac8c37ffa46372c054e45f4c82b1d2808cd090ee
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,35 @@
|
|
1
|
+
## Changes Between 1.5.0 and 1.5.2 (Apr 4th, 2016)
|
2
|
+
|
3
|
+
### Provide More Details in TCP Connection Failure Exception
|
4
|
+
|
5
|
+
Contributed by Neil Hooey.
|
6
|
+
|
7
|
+
GH issue: [#222](https://github.com/ruby-amqp/amqp/issues/222).
|
8
|
+
|
9
|
+
|
10
|
+
### Ensures frameset is cleared after an unhandled exception
|
11
|
+
|
12
|
+
Ensures frameset is cleared after an unhandled exception.
|
13
|
+
This avoids confusing exceptions such as
|
14
|
+
|
15
|
+
```
|
16
|
+
undefined method `method_class' for #<AMQ::Protocol::BodyFrame:0x0000001e8a60b0>
|
17
|
+
```
|
18
|
+
|
19
|
+
Contributed by Michael Lutsiuk.
|
20
|
+
|
21
|
+
GH issue: [#218](https://github.com/ruby-amqp/amqp/issues/218)
|
22
|
+
|
23
|
+
|
24
|
+
## Changes Betweem 1.5.0 and 1.5.1 (Aug 26th, 2015)
|
25
|
+
|
26
|
+
### Upgrade amq-protocol to 1.9
|
27
|
+
|
28
|
+
This library now depends on amq-protocol `~> 1.9`.
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
1
33
|
## Changes Between 1.4.x and 1.5.0
|
2
34
|
|
3
35
|
### Only Await basic.consume-ok If nowait is false
|
data/amqp.gemspec
CHANGED
@@ -9,9 +9,9 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.version = AMQP::VERSION
|
10
10
|
s.authors = ["Aman Gupta", "Jakub Stastny aka botanicus", "Michael S. Klishin"]
|
11
11
|
s.homepage = "http://rubyamqp.info"
|
12
|
-
s.summary = "
|
12
|
+
s.summary = "Mature EventMachine-based RabbitMQ client"
|
13
13
|
# RubyGems will emit warnings if summary is the same as description. I have no idea why but lets trick it. MK.
|
14
|
-
s.description = "
|
14
|
+
s.description = "Mature EventMachine-based RabbitMQ client"
|
15
15
|
s.email = ["bWljaGFlbEBub3ZlbWJlcmFpbi5jb20=\n", "c3Rhc3RueUAxMDFpZGVhcy5jeg==\n"].map { |i| Base64.decode64(i) }
|
16
16
|
s.licenses = ["Ruby"]
|
17
17
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
# Dependencies
|
26
26
|
s.add_dependency "eventmachine"
|
27
|
-
s.add_dependency "amq-protocol", "~> 1
|
27
|
+
s.add_dependency "amq-protocol", "~> 2.0.1"
|
28
28
|
|
29
29
|
s.rubyforge_project = "amqp"
|
30
30
|
end
|
data/lib/amqp/session.rb
CHANGED
@@ -635,7 +635,7 @@ module AMQP
|
|
635
635
|
def unbind(exception = nil)
|
636
636
|
if !@tcp_connection_established && !@had_successfully_connected_before && !@intentionally_closing_connection
|
637
637
|
@tcp_connection_failed = true
|
638
|
-
logger.error "[amqp] Detected TCP connection failure"
|
638
|
+
logger.error "[amqp] Detected TCP connection failure: #{exception}"
|
639
639
|
self.tcp_connection_failed
|
640
640
|
end
|
641
641
|
|
@@ -930,9 +930,12 @@ module AMQP
|
|
930
930
|
@frames[frame.channel] << frame
|
931
931
|
|
932
932
|
if frameset_complete?(@frames[frame.channel])
|
933
|
-
|
934
|
-
|
935
|
-
|
933
|
+
begin
|
934
|
+
receive_frameset(@frames[frame.channel])
|
935
|
+
ensure # Ensure that frames always will be cleared
|
936
|
+
# for channel.close, frame.channel will be nil. MK.
|
937
|
+
clear_frames_on(frame.channel) if @frames[frame.channel]
|
938
|
+
end
|
936
939
|
end
|
937
940
|
end
|
938
941
|
|
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.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aman Gupta
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: eventmachine
|
@@ -32,16 +32,15 @@ dependencies:
|
|
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:
|
44
|
-
included.
|
42
|
+
version: 2.0.1
|
43
|
+
description: Mature EventMachine-based RabbitMQ client
|
45
44
|
email:
|
46
45
|
- michael@novemberain.com
|
47
46
|
- stastny@101ideas.cz
|
@@ -327,6 +326,6 @@ rubyforge_project: amqp
|
|
327
326
|
rubygems_version: 2.4.8
|
328
327
|
signing_key:
|
329
328
|
specification_version: 4
|
330
|
-
summary:
|
329
|
+
summary: Mature EventMachine-based RabbitMQ client
|
331
330
|
test_files: []
|
332
331
|
has_rdoc:
|