amqp 1.5.3 → 1.6.0

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: 874debae660cecf12b5b3ab56da8b3ecad56e8c2
4
- data.tar.gz: 8adca4a912463f82d37ed9674a7eb64a471a1d0c
3
+ metadata.gz: 295580888e256dddab5dd149bc16b54f367922cd
4
+ data.tar.gz: 25c9292b53dac56faf7f23d3ca225c3d22f31a64
5
5
  SHA512:
6
- metadata.gz: 583f5936ad4cf31153c113e34514ac898715cc6003100bdc0476fffbfcb5d3b8e2f6d379c7855bad7a12112ec7962ef2f78751061cdbaf1664b3e85ea53bad1b
7
- data.tar.gz: aff6a45180b60e9a3d84444359b0f5baa2a4c3a3ff1b029655e5239d760e27f1f4e398b2d125d7aaa7018f96cc429e342f6911ad6be3e183d0c2e064754c15b8
6
+ metadata.gz: 02da49654ab2a957b28a3a14a613615aa41e7a1863af3c4d37d0c3743b0821d14c85b33ceef5dd4b597ac9d63dffc76a0379d5d5733dd8c0bd5cb3c3f4ecc88d
7
+ data.tar.gz: 829533a07552a181e202d782f442d7356a83e106c095f2a14a41279017f9db72940904df340d9ed9a5e559c2a8e7fe941e8b09256aa09b6515c35f8ecf2f1f61
@@ -1 +1 @@
1
- 2.0.0@rabbitmq
1
+ 2.2
@@ -1,13 +1,8 @@
1
- ## Changes Between 1.5.2 and 1.5.3 (Apr 4th, 2016)
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
- ## Changes Between 1.5.0 and 1.5.2 (Apr 4th, 2016)
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).
@@ -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
- # RubyGems will emit warnings if summary is the same as description. I have no idea why but lets trick it. MK.
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", "~> 1.9"
26
+ s.add_dependency "amq-protocol", ">= 2.0.1"
28
27
 
29
28
  s.rubyforge_project = "amqp"
30
29
  end
@@ -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 = self.class.next_channel_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 [Array<Exchange>] Collection of exchanges that were declared on this channel.
1188
+ # @return [Hash<Exchange>] Collection of exchanges that were declared on this channel.
1193
1189
  def exchanges
1194
- @exchanges.values
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
@@ -930,12 +930,9 @@ module AMQP
930
930
  @frames[frame.channel] << frame
931
931
 
932
932
  if frameset_complete?(@frames[frame.channel])
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
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
 
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '1.5.3'
9
+ VERSION = '1.6.0'
10
10
  end
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.3
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: '1.9'
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: '1.9'
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