10 Commits

Author SHA1 Message Date
c7251e11e2 Merge branch 'hotfix/v0.0.3' 2011-02-22 12:05:41 +00:00
18c89b1e0f fixed an issue with loading configs 2011-02-22 12:05:26 +00:00
bc69e8970e Version bump to 0.0.3 2011-02-22 12:04:44 +00:00
1b792bf78e Merge branch 'release/v0.0.2' 2011-02-02 09:39:43 +00:00
bc33a32cf1 Version bump to 0.0.2 2011-02-02 09:39:22 +00:00
d464bea237 updated copyright and license information 2011-02-02 09:36:55 +00:00
8fb23e10aa fixed a typo in readme :P 2011-02-01 16:50:41 +00:00
7480532298 Merge branch 'dev' 2011-02-01 14:43:55 +00:00
d03ac850a5 updated readme 2011-02-01 14:43:47 +00:00
12deba3dca removed rack-test from development dependencies,
cause really, it never should have been there
2011-02-01 14:40:51 +00:00
5 changed files with 11 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
Copyright (c) 2011 Jim Myhrberg & Global Personals, Ltd. Copyright (c) 2011 Global Personals, Ltd.
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the

View File

@@ -3,6 +3,11 @@
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. 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.
## Installation ##
gem install amqp-failover
## Basic Usage ## ## Basic Usage ##
require 'mq' require 'mq'
@@ -80,25 +85,8 @@ I would recommend you test the failover functionality in your own infrastructure
* Send me a pull request. Bonus points for topic branches. * Send me a pull request. Bonus points for topic branches.
## Liccense and Copyright ## ## Licensing and Attribution ##
Copyright (c) 2011 Jim Myhrberg & Global Personals, Ltd. Copyright (c) 2011 Global Personals, Ltd.
Permission is hereby granted, free of charge, to any person obtaining 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.
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'amqp', '>= 0.7.0' s.add_runtime_dependency 'amqp', '>= 0.7.0'
s.add_development_dependency 'rake', '>= 0.8.7' s.add_development_dependency 'rake', '>= 0.8.7'
s.add_development_dependency 'rack-test', '>= 0.5.6'
s.add_development_dependency 'rspec', '>= 2.1.0' s.add_development_dependency 'rspec', '>= 2.1.0'
s.add_development_dependency 'yard', '>= 0.6.3' s.add_development_dependency 'yard', '>= 0.6.3'
s.add_development_dependency 'json', '>= 1.5.0' s.add_development_dependency 'json', '>= 1.5.0'

View File

@@ -7,7 +7,7 @@ module AMQP
attr_accessor :last_fail attr_accessor :last_fail
def initialize(hash = {}, last_fail_date = nil) def initialize(hash = {}, last_fail_date = nil)
self.replace(symbolize_keys(defaults.merge(hash))) self.replace(defaults.merge(symbolize_keys(hash)))
self.last_fail = last_fail_date if last_fail_date self.last_fail = last_fail_date if last_fail_date
end end

View File

@@ -2,6 +2,6 @@
module AMQP module AMQP
class Failover class Failover
VERSION = "0.0.1" VERSION = "0.0.3"
end end
end end