redis-elasticache 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/redis/elasticache/failover.rb +4 -4
- data/lib/redis/elasticache/version.rb +1 -1
- data/redis-elasticache.gemspec +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f15c99c0e2a40f957d7b3c03d6c5af0baa51478
|
|
4
|
+
data.tar.gz: b36ed1adffc1fa5c582424e6e7f5278d2a3b25f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
9
|
-
|
|
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 ==
|
|
21
|
-
raise BaseConnectionError,
|
|
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
|
data/redis-elasticache.gemspec
CHANGED
|
@@ -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.
|
|
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:
|
|
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.
|
|
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:
|