knockoff 0.2.2 → 0.2.3
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/lib/knockoff.rb +4 -0
- data/lib/knockoff/replica_connection_pool.rb +6 -0
- data/lib/knockoff/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: 83de5808a54fcfafc4aaae002b53fa1ef1991d40
|
|
4
|
+
data.tar.gz: a1e0ab6b1ff428e91487bea8eac534adb141fd8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b3b9673c90334243bc2cd70116dfc82abb64443b81a47bf25d0d23b36a163c83b545b4ae4fc3c0b8db774a6605c458dc4920dfa9118dff87e96e8f2f948f742
|
|
7
|
+
data.tar.gz: 165984db313f9edc1b169f0ba1883e5e4e017a26c4bb6cfcd044e95d1e9b6ed4411301c1a98d631b723c01672c1e821f3c24a107684d6886923ed585e8e0840c
|
data/lib/knockoff.rb
CHANGED
|
@@ -24,6 +24,10 @@ module Knockoff
|
|
|
24
24
|
@replica_pool ||= ReplicaConnectionPool.new(config.replica_database_keys)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
def clear_all_active_connections!
|
|
28
|
+
replica_pool.clear_all_active_connections!
|
|
29
|
+
end
|
|
30
|
+
|
|
27
31
|
# Iterates through the replica pool and calls disconnect on each one's connection.
|
|
28
32
|
def disconnect_all!
|
|
29
33
|
replica_pool.disconnect_all_replicas!
|
data/lib/knockoff/version.rb
CHANGED