hot_bunnies 1.4.0.pre4-java → 1.5.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  pkg/*
5
5
  .DS_Store
6
6
  .rvmrc
7
+ bin/*
data/.travis.yml CHANGED
@@ -7,3 +7,6 @@ rvm:
7
7
  notifications:
8
8
  recipients:
9
9
  - michaelklishin@me.com
10
+
11
+ services:
12
+ - rabbitmq
data/ChangeLog.md ADDED
@@ -0,0 +1,46 @@
1
+ # Changes Between 1.5.0 and 1.6.0
2
+
3
+ No changes yet.
4
+
5
+
6
+ # Changes Between 1.4.0 and 1.5.0
7
+
8
+ ## RabbitMQ Java Client Upgrade
9
+
10
+ Hot Bunnies now uses RabbitMQ Java client 3.0.x.
11
+
12
+
13
+
14
+ # Changes Between 1.3.0 and 1.4.0
15
+
16
+ ## RabbitMQ Java Client Upgrade
17
+
18
+ Hot Bunnies now uses RabbitMQ Java client 2.8.7.
19
+
20
+
21
+ ## TLS Support
22
+
23
+ `HotBunnies.connect` now supports a new `:tls` option:
24
+
25
+ ``` ruby
26
+ HotBunnies.connect(:tls => true)
27
+
28
+ HotBunnies.connect(:tls => "SSLv3")
29
+ HotBunnies.connect(:tls => "SSLv2")
30
+
31
+ HotBunnies.connect(:tls => "SSLv3", :trust_manager => custom_trust_manager)
32
+ ```
33
+
34
+
35
+ ## Consumer Back Pressure Improvements
36
+
37
+ * The async consumer will not attempt to add tasks when its executor is shutting down.
38
+
39
+ * The blocking consumer got a buffer size option that makes it create a bounded blocking queue instead of an unbounded.
40
+
41
+
42
+ ## Consumer Improvements
43
+
44
+ `HotBunnies::Queue#subscribe` is now more resilient to exceptions and uses a new
45
+ executor task for each delivery. When a consumer is cancelled, any remaining messages
46
+ will be delivered instead of being ignored.
data/README.md CHANGED
@@ -25,6 +25,22 @@ Hot Bunnies is not
25
25
  * A cure for cancer
26
26
 
27
27
 
28
+ ## Installation, Dependency
29
+
30
+ ### With Rubygems
31
+
32
+ gem install hot_bunnies
33
+
34
+ ### With Bundler
35
+
36
+ gem "hot_bunnies", "~> 1.4.0"
37
+
38
+
39
+ ## Change Log
40
+
41
+ See ChangeLog.md.
42
+
43
+
28
44
  ## Continuous Integration
29
45
 
30
46
  [![Continuous Integration status](https://secure.travis-ci.org/ruby-amqp/hot_bunnies.png)](http://travis-ci.org/ruby-amqp/hot_bunnies)
@@ -39,4 +55,4 @@ MIT, see LICENSE in the repository root
39
55
 
40
56
  ## Copyright
41
57
 
42
- Theo Hultberg, Michael Klishin, 2011-2012.
58
+ Theo Hultberg, Michael Klishin, 2011-2012.
Binary file
data/lib/hot_bunnies.rb CHANGED
@@ -26,6 +26,18 @@ module HotBunnies
26
26
  cf.requested_heartbeat = heartbeat_from(options) if include_heartbeat?(options)
27
27
  cf.connection_timeout = connection_timeout_from(options) if include_connection_timeout?(options)
28
28
 
29
+ tls = (options[:ssl] || options[:tls])
30
+ case tls
31
+ when true then
32
+ cf.use_ssl_protocol
33
+ when String then
34
+ if options[:trust_manager]
35
+ cf.use_ssl_protocol(tls, options[:trust_manager])
36
+ else
37
+ cf.use_ssl_protocol(tls)
38
+ end
39
+ end
40
+
29
41
  cf.new_connection
30
42
  end
31
43
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module HotBunnies
4
- VERSION = '1.4.0.pre4'
4
+ VERSION = '1.5.0'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
 
4
- describe "HotBunnies" do
4
+ describe "HotBunnies.connect" do
5
5
 
6
6
  #
7
7
  # Examples
@@ -16,4 +16,11 @@ describe "HotBunnies" do
16
16
  c1 = HotBunnies.connect(:connection_timeout => 3)
17
17
  c1.close
18
18
  end
19
+
20
+ if !ENV["CI"] && ENV["TLS_TESTS"]
21
+ it "supports TLS w/o custom protocol or trust manager" do
22
+ c1 = HotBunnies.connect(:tls => true, :port => 5671)
23
+ c1.close
24
+ end
25
+ end
19
26
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hot_bunnies
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 1.4.0.pre4
4
+ version: 1.5.0
5
+ prerelease:
6
6
  platform: java
7
7
  authors:
8
8
  - Theo Hultberg
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-17 00:00:00.000000000 Z
13
+ date: 2013-03-05 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A object oriented interface to RabbitMQ that uses the Java driver under the hood
16
16
  email:
@@ -19,9 +19,10 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - .gitignore
23
- - .rvmrc
24
- - .travis.yml
22
+ - ".gitignore"
23
+ - ".rvmrc"
24
+ - ".travis.yml"
25
+ - ChangeLog.md
25
26
  - Gemfile
26
27
  - LICENSE
27
28
  - README.md
@@ -60,18 +61,17 @@ require_paths:
60
61
  - lib
61
62
  required_ruby_version: !ruby/object:Gem::Requirement
62
63
  requirements:
63
- - - ! '>='
64
+ - - ">="
64
65
  - !ruby/object:Gem::Version
65
- segments:
66
- - 0
67
- hash: 2
68
- version: '0'
66
+ version: !binary |-
67
+ MA==
69
68
  none: false
70
69
  required_rubygems_version: !ruby/object:Gem::Requirement
71
70
  requirements:
72
- - - ! '>'
71
+ - - ">="
73
72
  - !ruby/object:Gem::Version
74
- version: 1.3.1
73
+ version: !binary |-
74
+ MA==
75
75
  none: false
76
76
  requirements: []
77
77
  rubyforge_project: hot_bunnies
@@ -80,4 +80,3 @@ signing_key:
80
80
  specification_version: 3
81
81
  summary: Ruby wrapper for the RabbitMQ Java driver
82
82
  test_files: []
83
- ...