amqp-failover 0.0.1 → 0.0.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.
- data/LICENSE +1 -1
- data/README.md +8 -20
- data/amqp-failover.gemspec +0 -1
- data/lib/amqp/failover/version.rb +1 -1
- metadata +14 -30
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
Add multi-server support with failover and fallback to the [amqp](https://github.com/ruby-amqp/amqp) gem. Failover is configured by providing multiple servers/configurations to `AMQP.start` or `AMQP.connect`. Both methods will still accept the same options input as they always have, they simply now support additional forms of options which when used, enables the failover features.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## Installation ##
|
|
7
|
+
|
|
8
|
+
gem install amqp-failover
|
|
9
|
+
|
|
10
|
+
|
|
6
11
|
## Basic Usage ##
|
|
7
12
|
|
|
8
13
|
require 'mq'
|
|
@@ -80,25 +85,8 @@ I would recommend you test the failover functionality in your own infrastructure
|
|
|
80
85
|
* Send me a pull request. Bonus points for topic branches.
|
|
81
86
|
|
|
82
87
|
|
|
83
|
-
##
|
|
84
|
-
|
|
85
|
-
Copyright (c) 2011 Jim Myhrberg & Global Personals, Ltd.
|
|
86
|
-
|
|
87
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
88
|
-
a copy of this software and associated documentation files (the
|
|
89
|
-
"Software"), to deal in the Software without restriction, including
|
|
90
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
91
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
92
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
93
|
-
the following conditions:
|
|
88
|
+
## Licensing and Attribution ##
|
|
94
89
|
|
|
95
|
-
|
|
96
|
-
included in all copies or substantial portions of the Software.
|
|
90
|
+
Copyright (c) 2011 Global Personals, Ltd.
|
|
97
91
|
|
|
98
|
-
|
|
99
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
100
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
101
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
102
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
103
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
104
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
92
|
+
Released under the MIT license as detailed in the [LICENSE](https://github.com/jimeh/amqp-failover/blob/master/LICENSE) file. Developed by [Jim Myhrberg](http://jimeh.me/) during work on [White Label Dating](http://www.whitelabeldating.com/), while employed by [Global Personals Ltd](http://www.globalpersonals.co.uk). Global Personals Ltd have kindly agreed to the extraction and release of this software under the license terms above.
|
data/amqp-failover.gemspec
CHANGED
|
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
|
|
|
22
22
|
s.add_runtime_dependency 'amqp', '>= 0.7.0'
|
|
23
23
|
|
|
24
24
|
s.add_development_dependency 'rake', '>= 0.8.7'
|
|
25
|
-
s.add_development_dependency 'rack-test', '>= 0.5.6'
|
|
26
25
|
s.add_development_dependency 'rspec', '>= 2.1.0'
|
|
27
26
|
s.add_development_dependency 'yard', '>= 0.6.3'
|
|
28
27
|
s.add_development_dependency 'json', '>= 1.5.0'
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: amqp-failover
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 27
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jim Myhrberg
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-02-
|
|
18
|
+
date: 2011-02-02 00:00:00 +00:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -50,26 +50,10 @@ dependencies:
|
|
|
50
50
|
version: 0.8.7
|
|
51
51
|
type: :development
|
|
52
52
|
version_requirements: *id002
|
|
53
|
-
- !ruby/object:Gem::Dependency
|
|
54
|
-
name: rack-test
|
|
55
|
-
prerelease: false
|
|
56
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
hash: 7
|
|
62
|
-
segments:
|
|
63
|
-
- 0
|
|
64
|
-
- 5
|
|
65
|
-
- 6
|
|
66
|
-
version: 0.5.6
|
|
67
|
-
type: :development
|
|
68
|
-
version_requirements: *id003
|
|
69
53
|
- !ruby/object:Gem::Dependency
|
|
70
54
|
name: rspec
|
|
71
55
|
prerelease: false
|
|
72
|
-
requirement: &
|
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
73
57
|
none: false
|
|
74
58
|
requirements:
|
|
75
59
|
- - ">="
|
|
@@ -81,11 +65,11 @@ dependencies:
|
|
|
81
65
|
- 0
|
|
82
66
|
version: 2.1.0
|
|
83
67
|
type: :development
|
|
84
|
-
version_requirements: *
|
|
68
|
+
version_requirements: *id003
|
|
85
69
|
- !ruby/object:Gem::Dependency
|
|
86
70
|
name: yard
|
|
87
71
|
prerelease: false
|
|
88
|
-
requirement: &
|
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
89
73
|
none: false
|
|
90
74
|
requirements:
|
|
91
75
|
- - ">="
|
|
@@ -97,11 +81,11 @@ dependencies:
|
|
|
97
81
|
- 3
|
|
98
82
|
version: 0.6.3
|
|
99
83
|
type: :development
|
|
100
|
-
version_requirements: *
|
|
84
|
+
version_requirements: *id004
|
|
101
85
|
- !ruby/object:Gem::Dependency
|
|
102
86
|
name: json
|
|
103
87
|
prerelease: false
|
|
104
|
-
requirement: &
|
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
105
89
|
none: false
|
|
106
90
|
requirements:
|
|
107
91
|
- - ">="
|
|
@@ -113,11 +97,11 @@ dependencies:
|
|
|
113
97
|
- 0
|
|
114
98
|
version: 1.5.0
|
|
115
99
|
type: :development
|
|
116
|
-
version_requirements: *
|
|
100
|
+
version_requirements: *id005
|
|
117
101
|
- !ruby/object:Gem::Dependency
|
|
118
102
|
name: ruby-debug
|
|
119
103
|
prerelease: false
|
|
120
|
-
requirement: &
|
|
104
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
|
121
105
|
none: false
|
|
122
106
|
requirements:
|
|
123
107
|
- - ">="
|
|
@@ -127,7 +111,7 @@ dependencies:
|
|
|
127
111
|
- 0
|
|
128
112
|
version: "0"
|
|
129
113
|
type: :development
|
|
130
|
-
version_requirements: *
|
|
114
|
+
version_requirements: *id006
|
|
131
115
|
description: Add multi-server failover and fallback to amqp gem.
|
|
132
116
|
email:
|
|
133
117
|
- contact@jimeh.me
|
|
@@ -195,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
195
179
|
requirements: []
|
|
196
180
|
|
|
197
181
|
rubyforge_project: amqp-failover
|
|
198
|
-
rubygems_version: 1.
|
|
182
|
+
rubygems_version: 1.5.0
|
|
199
183
|
signing_key:
|
|
200
184
|
specification_version: 3
|
|
201
185
|
summary: Add multi-server failover and fallback to amqp gem.
|