fake_elasticache 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fake_elasticache/options/docker.rb +1 -1
- data/lib/fake_elasticache/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c57e5ac928be4dbb51686340b32adb470aceb8
|
4
|
+
data.tar.gz: 56ba68fa9048f3a58e768333f868762b959093b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 909aab938c755853e6bdb2fc29e3272a8a7a00ed9093b9c756545bc67542f49f12fca59029a48662abaccefb976d9a33ca9709772256d491dfb845dbd22eadce
|
7
|
+
data.tar.gz: ae980827bcbb82678d13240b6debca92c7031b9721cea5db28177cfa609d701a6a86448415899ca2ea04ef56723ba2e0f6d2284ab0902930ba5704290bb5dee5
|
@@ -10,7 +10,7 @@ module FakeElasticache
|
|
10
10
|
:version => ENV.fetch('MEMCACHED_VERSION', '2.4.14')
|
11
11
|
}
|
12
12
|
|
13
|
-
ENV.keys.select { |key| key.to_s.match(/^MEMCACHED[0-9]*_PORT
|
13
|
+
ENV.keys.select { |key| key.to_s.match(/^MEMCACHED[0-9]*_PORT$/) }.each do |linked_container|
|
14
14
|
id = linked_container[/\d+/,0]
|
15
15
|
memcached_server = ENV[linked_container].nil? ? ['127.0.0.1', '11211'] : ENV[linked_container].sub("tcp://", "").split(':')
|
16
16
|
options[:servers] << "#{ENV.fetch("DNS#{id}_NAME", 'localhost')}|#{memcached_server[0]}|#{memcached_server[1]}"
|