redis-elasticache 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c437267b66780c8b8dc9ff040f23034622fc08d
4
- data.tar.gz: dd89fe7ec640b54386e75f781569df8ca2cf959c
3
+ metadata.gz: 6f15c99c0e2a40f957d7b3c03d6c5af0baa51478
4
+ data.tar.gz: b36ed1adffc1fa5c582424e6e7f5278d2a3b25f5
5
5
  SHA512:
6
- metadata.gz: 58dbf0157315ba1f4684d7dc19f2db5bea5254c9a9ddc6fae1416607536acbbde6c7e8929b941ff6b70a21aa188cdf473a100f5643b05423b24a17f20643ff7b
7
- data.tar.gz: cbf47cb9c3be0546a0747ca62178b15cdd87ed1d367c9a95c80593a40cf47dcf19fb57db80e496a968b22e7708cd1255ee4d9a14dc8da76f580656b65e137bda
6
+ metadata.gz: 866e876e8e2b46ba10cdf1e6c6cd5caf28f6e25a6691ccdc9215ce8855234b45da4bb24f0c0c88ec713bd7e10604f85bfc5ab8c3fdcae36b14ef0ed27c0c347d
7
+ data.tar.gz: 0a91d79ca5a17b38aa8713dfacf165e6aa7cc6210ea7c88972a1561e84a32bbc51e6418d5e6998b1211a899be73864458b08a4f5114cdea2ee7cda7535db1466
data/README.md CHANGED
@@ -31,10 +31,9 @@ require 'redis/elasticache/failover'
31
31
 
32
32
  ## Contributing
33
33
 
34
- Bug reports and pull requests are welcome on GitHub at https://github.com/craigmcnamara/redis-elasticache. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/craigmcnamara/redis-elasticache. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
35
35
 
36
36
 
37
37
  ## License
38
38
 
39
39
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
40
-
@@ -5,8 +5,8 @@ class Redis
5
5
  module Connection
6
6
  class Ruby
7
7
 
8
- RDS_READONLY_ERROR = "READONLY You can't write against a read only slave.".freeze
9
- RDS_READONLY_MESSAGE = "A write operation was issued to an RDS slave node.".freeze
8
+ ELASTICACHE_READONLY_ERROR = "READONLY You can't write against a read only slave.".freeze
9
+ ELASTICACHE_READONLY_MESSAGE = "A write operation was issued to an ELASTICACHE slave node.".freeze
10
10
 
11
11
  # Amazon RDS supports failover, but because it uses DNS magic to point to
12
12
  # the master node, TCP connections are not disconnected and we can issue
@@ -17,8 +17,8 @@ class Redis
17
17
  # correct node as the master accepting writes.
18
18
  def format_error_reply(line)
19
19
  error_message = line.strip
20
- if error_message == RDS_READONLY_ERROR
21
- raise BaseConnectionError, RDS_READONLY_MESSAGE
20
+ if error_message == ELASTICACHE_READONLY_ERROR
21
+ raise BaseConnectionError, ELASTICACHE_READONLY_MESSAGE
22
22
  else
23
23
  CommandError.new(error_message)
24
24
  end
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module Elasticache
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -6,8 +6,8 @@ require 'redis/elasticache/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "redis-elasticache"
8
8
  spec.version = Redis::Elasticache::VERSION
9
- spec.authors = ["Craig McNamara"]
10
- spec.email = ["craig@caring.com"]
9
+ spec.authors = ["Craig McNamara", "Eddy Kim"]
10
+ spec.email = ["craig@caring.com", "eddy.kim@dollarshaveclub.com"]
11
11
 
12
12
  spec.summary = %q{Adds missing support for AWS Elasticache to the redis-rb gem.}
13
13
  spec.description = %q{Enable applications to handle AWS Elasticache cluster failovers without rebooting the app.}
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-elasticache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig McNamara
8
+ - Eddy Kim
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
12
+ date: 2017-12-12 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: redis
@@ -70,6 +71,7 @@ description: Enable applications to handle AWS Elasticache cluster failovers wit
70
71
  rebooting the app.
71
72
  email:
72
73
  - craig@caring.com
74
+ - eddy.kim@dollarshaveclub.com
73
75
  executables: []
74
76
  extensions: []
75
77
  extra_rdoc_files: []
@@ -108,9 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
110
  version: '0'
109
111
  requirements: []
110
112
  rubyforge_project:
111
- rubygems_version: 2.2.2
113
+ rubygems_version: 2.5.1
112
114
  signing_key:
113
115
  specification_version: 4
114
116
  summary: Adds missing support for AWS Elasticache to the redis-rb gem.
115
117
  test_files: []
116
- has_rdoc: