right_amqp 0.2.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.
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format=nested
@@ -0,0 +1,56 @@
1
+ #
2
+ # Copyright (c) 2012 RightScale Inc
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+
23
+ require 'rubygems'
24
+ require 'bundler/setup'
25
+
26
+ require 'flexmock'
27
+ require 'rspec'
28
+
29
+ RSpec.configure do |c|
30
+ c.mock_with(:flexmock)
31
+ end
32
+
33
+ $TESTING = true
34
+ $VERBOSE = nil # Disable constant redefined warning
35
+
36
+ module RightAMQP
37
+
38
+ module SpecHelper
39
+
40
+ # Setup mocking of logger such that need to override :error and :warning
41
+ # in specs that are expected to require use of these methods
42
+ # Do not mock :exception because that gets eaten by Log::Mixin and results
43
+ # in :error call
44
+ def setup_logger
45
+ @logger = flexmock("logger")
46
+ @logger.should_receive(:level).and_return(:info).by_default
47
+ @logger.should_receive(:error).by_default.and_return { |m| raise m }
48
+ @logger.should_receive(:warning).by_default.and_return { |m| raise m }
49
+ @logger.should_receive(:info).by_default
50
+ @logger.should_receive(:debug).by_default
51
+ RightSupport::Log::Mixin.default_logger = @logger
52
+ end
53
+
54
+ end
55
+
56
+ end
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: right_amqp
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
+ platform: ruby
12
+ authors:
13
+ - Lee Kirchhoff
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-03-12 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ hash: 11
28
+ segments:
29
+ - 1
30
+ - 2
31
+ version: "1.2"
32
+ requirement: *id001
33
+ name: right_support
34
+ prerelease: false
35
+ type: :runtime
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ hash: 59
43
+ segments:
44
+ - 0
45
+ - 12
46
+ - 10
47
+ version: 0.12.10
48
+ requirement: *id002
49
+ name: eventmachine
50
+ prerelease: false
51
+ type: :runtime
52
+ description: |
53
+ RightAMQP provides a high availability client for interfacing with the
54
+ RightScale RabbitMQ broker using the AMQP protocol. The AMQP version on which
55
+ this gem is based is 0.6.7 but beyond that it contains a number of bug fixes and
56
+ enhancements including reconnect, message return, heartbeat, and UTF-8 support.
57
+ The high availability is achieved by maintaining multiple broker connections
58
+ such that failed connections automatically reconnect and only connected
59
+ brokers are used when routing a message. Although the HABrokerClient class
60
+ is the intended primary means for accessing RabbitMQ services with this gem,
61
+ alternatively the underlying AMQP services may be used directly.
62
+
63
+ email: lee@rightscale.com
64
+ executables: []
65
+
66
+ extensions: []
67
+
68
+ extra_rdoc_files:
69
+ - README.rdoc
70
+ files:
71
+ - LICENSE
72
+ - README.rdoc
73
+ - Rakefile
74
+ - lib/right_amqp.rb
75
+ - lib/right_amqp/amqp.rb
76
+ - lib/right_amqp/amqp/buffer.rb
77
+ - lib/right_amqp/amqp/client.rb
78
+ - lib/right_amqp/amqp/frame.rb
79
+ - lib/right_amqp/amqp/protocol.rb
80
+ - lib/right_amqp/amqp/server.rb
81
+ - lib/right_amqp/amqp/spec.rb
82
+ - lib/right_amqp/amqp/version.rb
83
+ - lib/right_amqp/ext/blankslate.rb
84
+ - lib/right_amqp/ext/em.rb
85
+ - lib/right_amqp/ext/emfork.rb
86
+ - lib/right_amqp/ha_client.rb
87
+ - lib/right_amqp/ha_client/broker_client.rb
88
+ - lib/right_amqp/ha_client/ha_broker_client.rb
89
+ - lib/right_amqp/mq.rb
90
+ - lib/right_amqp/mq/exchange.rb
91
+ - lib/right_amqp/mq/header.rb
92
+ - lib/right_amqp/mq/logger.rb
93
+ - lib/right_amqp/mq/queue.rb
94
+ - lib/right_amqp/mq/rpc.rb
95
+ - right_amqp.gemspec
96
+ - spec/amqp/client_reconnect_spec.rb
97
+ - spec/ha_client/broker_client_spec.rb
98
+ - spec/ha_client/ha_broker_client_spec.rb
99
+ - spec/spec.opts
100
+ - spec/spec_helper.rb
101
+ has_rdoc: true
102
+ homepage: https://github.com/rightscale/right_amqp
103
+ licenses: []
104
+
105
+ post_install_message:
106
+ rdoc_options:
107
+ - --main
108
+ - README.rdoc
109
+ - --title
110
+ - RightAMQP
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ hash: 57
119
+ segments:
120
+ - 1
121
+ - 8
122
+ - 7
123
+ version: 1.8.7
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
133
+ requirements: []
134
+
135
+ rubyforge_project:
136
+ rubygems_version: 1.3.7
137
+ signing_key:
138
+ specification_version: 3
139
+ summary: Client for interfacing to RightScale RabbitMQ broker using AMQP
140
+ test_files: []
141
+