bunny 2.6.7 → 2.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 727b9c4d8a415262c63dd5e6cc5d0a094b226a22
4
- data.tar.gz: 350d00428d1bff074671dfd28f4bf06881a8f6be
3
+ metadata.gz: f37583fb4c93085f91f358da46737f7e7e75db6a
4
+ data.tar.gz: 0e76e67996978dffa4c80a3b91225c494e2d2b55
5
5
  SHA512:
6
- metadata.gz: 96fb81234c1e1c346091be13a1fa98753ac50e5eedb1bba26d18f136f6e2e38480bc72b040f62bd18908c1d237297107af2a0f8bff7ad58779677d811227539b
7
- data.tar.gz: ba28ead502d9f8d07aeff8039f76c321216301d35001aef3d568b5284d9334d17bd36adec25145ac80d47f03e27d087fc2061b752de1d33fad8d30c8afcc85de
6
+ metadata.gz: 01caa52176c8bec67e35c26964bc4e2c8aa5eaddea0503bc6c6b6b8b2b289894343baa260f68367fb00e80985accd0e48c17587916968cc75af78611e760c752
7
+ data.tar.gz: ad6bf5194d91d866f340cc7688ac863d4062fed845a47c67794961f746dac8cd243fd634d5c552b3add73c1845f4f66a981cc51bbb88a62c22406f1a01a9666c
@@ -4,9 +4,10 @@ cache: bundler
4
4
  before_script: "./bin/ci/before_build"
5
5
  script: "bundle exec rake integration_without_recovery"
6
6
  rvm:
7
- - "2.4.0"
8
- - "2.3.3"
9
- - "2.2"
7
+ - ruby-head
8
+ - "2.4.1"
9
+ - "2.3.4"
10
+ - "2.2.7"
10
11
  notifications:
11
12
  email: michael@rabbitmq.com
12
13
  services:
@@ -16,4 +17,4 @@ branches:
16
17
  - master
17
18
  - 2.6.x-stable
18
19
  env:
19
- - CI=true
20
+ - CI=true
@@ -1,39 +1,15 @@
1
- ## Changes between Bunny 2.6.7 and 2.6.8 (unreleased)
1
+ ## Changes between Bunny 2.7.0 and 2.8.0 (unreleased)
2
2
 
3
3
  No changes yet.
4
4
 
5
5
 
6
- ## Changes between Bunny 2.6.6 and 2.6.7 (Jan 9th, 2018)
7
-
8
- ### amq-protocol Dependency
9
-
10
- This version depends on amq-protocol `2.2.x`.
11
-
12
- GitHub issue: [#538](https://github.com/ruby-amqp/bunny/issues/538).
13
-
14
-
15
- ## Changes between Bunny 2.6.5 and 2.6.6 (May 11th, 2017)
16
-
17
- ### Connection Recovery Improvements
18
-
19
- System call exceptions now will trigger connection recovery.
20
-
21
- Contributed by Alessandro Verlato.
22
-
23
- GitHub issue: [#491](https://github.com/ruby-amqp/bunny/issues/491).
24
-
25
-
26
- ## Changes between Bunny 2.6.4 and 2.6.5 (April 15th, 2017)
27
-
28
- ### Absolute Windows File Paths are No Longer treated as Inline Certs
29
-
30
- Contributed by Jared Smartt.
31
-
32
- GitHub issue: [#492](https://github.com/ruby-amqp/bunny/issues/492).
6
+ ## Changes between Bunny 2.6.0 and 2.7.0 (May 11th, 2017)
33
7
 
8
+ ### amq-protocol Update
34
9
 
10
+ Minimum `amq-protocol` version is now [`2.2.0`]](https://github.com/ruby-amqp/amq-protocol/blob/master/ChangeLog.md#changes-between-210-and-220-may-11th-2017) which includes
11
+ a change in [how timestamps are encoded](https://github.com/ruby-amqp/amq-protocol/issues/64).
35
12
 
36
- ## Changes between Bunny 2.6.3 and 2.6.4 (March 4th, 2017)
37
13
 
38
14
  ### `Bunny::ContinuationQueue#poll` Less Prone to Race Conditions
39
15
 
@@ -41,6 +17,7 @@ GitHub issue: [#492](https://github.com/ruby-amqp/bunny/issues/492).
41
17
 
42
18
  GitHub issue: [#462](https://github.com/ruby-amqp/bunny/issues/462)
43
19
 
20
+
44
21
  ### Recovery Attempt Counting Strategy Changed
45
22
 
46
23
  Previous behehavior is not unreasonable but is not what many users and
@@ -57,6 +34,14 @@ a hell of a lot more logging.
57
34
 
58
35
  GitHub issue: [#408](https://github.com/ruby-amqp/bunny/issues/408)
59
36
 
37
+
38
+ ### Absolute Windows File Paths are No Longer treated as Inline Certs
39
+
40
+ Contributed by Jared Smartt.
41
+
42
+ GitHub issue: [#492](https://github.com/ruby-amqp/bunny/issues/492).
43
+
44
+
60
45
  ### Opening a Channel on an Intentionally Closed Connection Immediately Raises an Exception
61
46
 
62
47
  Contributed by Alessandro Verlato.
@@ -64,15 +49,20 @@ Contributed by Alessandro Verlato.
64
49
  GitHub issue: [#465](https://github.com/ruby-amqp/bunny/issues/465)
65
50
 
66
51
 
67
- ## Changes between Bunny 2.6.2 and 2.6.3 (January 19th, 2016)
52
+ ### Bunny::ConsumerWorkPool#shutdown Terminates Early When It's Safe to Do So
53
+
54
+ `Bunny::ConsumerWorkPool#shutdown(true)` waited for consumer shutdown
55
+ even if the pool wasn't active (there were no consumers on its
56
+ channel).
57
+
58
+ GitHub issue: [#438](https://github.com/ruby-amqp/bunny/issues/438).
59
+
68
60
 
69
61
  ### Retry on new Ruby 2.1+ variations of `EAGAIN`, `EWOULDBLOCK`
70
62
 
71
63
  GitHub issue: [#456](https://github.com/ruby-amqp/bunny/issues/456)
72
64
 
73
65
 
74
- ## Changes between Bunny 2.6.1 and 2.6.2 (December 17th, 2016)
75
-
76
66
  ### Do Not Modify Host Arrays
77
67
 
78
68
  Bunny now can work with frozen host arrays.
@@ -81,18 +71,6 @@ GitHub issue: [#446](https://github.com/ruby-amqp/bunny/issues/446)
81
71
 
82
72
 
83
73
 
84
- ## Changes between Bunny 2.6.0 and 2.6.1 (October 23rd, 2016)
85
-
86
- ### Bunny::ConsumerWorkPool#shutdown Terminates Early When It's Safe to Do So
87
-
88
- `Bunny::ConsumerWorkPool#shutdown(true)` waited for consumer shutdown
89
- even if the pool wasn't active (there were no consumers on its
90
- channel).
91
-
92
- GitHub issue: [#438](https://github.com/ruby-amqp/bunny/issues/438).
93
-
94
-
95
-
96
74
  ## Changes between Bunny 2.5.0 and 2.6.0 (October 15th, 2016)
97
75
 
98
76
  ### Graceful Shutdown of Consumers
data/Gemfile CHANGED
@@ -50,4 +50,4 @@ def custom_gem(name, options = Hash.new)
50
50
  end
51
51
  end
52
52
 
53
- custom_gem "amq-protocol", "~> 2.2.0"
53
+ custom_gem "amq-protocol", git: "https://github.com/ruby-amqp/amq-protocol", branch: "master"
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.email = ["michael.s.klishin@gmail.com"]
25
25
 
26
26
  # Dependencies
27
- s.add_dependency "amq-protocol", "~> 2.2.0"
27
+ s.add_dependency "amq-protocol", ">= 2.2.0"
28
28
 
29
29
  # Files.
30
30
  s.has_rdoc = true
@@ -58,7 +58,7 @@ module Bunny
58
58
  # @see http://rubybunny.info/articles/getting_started.html
59
59
  # @see http://rubybunny.info/articles/connecting.html
60
60
  # @api public
61
- def self.new(connection_string_or_opts = ENV['RABBITMQ_URL'], opts = {}, &block)
61
+ def self.new(connection_string_or_opts = ENV['RABBITMQ_URL'], opts = {})
62
62
  if connection_string_or_opts.respond_to?(:keys) && opts.empty?
63
63
  opts = connection_string_or_opts
64
64
  end
@@ -73,6 +73,10 @@ module Bunny
73
73
  def self.run(connection_string_or_opts = ENV['RABBITMQ_URL'], opts = {}, &block)
74
74
  raise ArgumentError, 'Bunny#run requires a block' unless block
75
75
 
76
+ if connection_string_or_opts.respond_to?(:keys) && opts.empty?
77
+ opts = connection_string_or_opts
78
+ end
79
+
76
80
  client = Session.new(connection_string_or_opts, opts)
77
81
 
78
82
  begin
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Bunny
4
4
  # @return [String] Version of the library
5
- VERSION = "2.6.7"
5
+ VERSION = "2.7.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.7
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan
@@ -12,20 +12,20 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-01-09 00:00:00.000000000 Z
15
+ date: 2017-05-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: amq-protocol
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - "~>"
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: 2.2.0
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - "~>"
28
+ - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: 2.2.0
31
31
  description: Easy to use, feature complete Ruby client for RabbitMQ 3.3 and later
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  requirements: []
233
233
  rubyforge_project:
234
- rubygems_version: 2.6.13
234
+ rubygems_version: 2.6.11
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Popular easy to use Ruby client for RabbitMQ