active_replicas 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d0602fd41177e09aa8bd7cfc175ee2765826f85
4
- data.tar.gz: 0ba2594cbb05f7e045113d42714c9da79524fdb9
3
+ metadata.gz: 568a0386c779f2f367053cd393c1c65de920c961
4
+ data.tar.gz: e4b35b5285b54c8138d4a870c600c4d0a9f27d4f
5
5
  SHA512:
6
- metadata.gz: bfb01a7da4b23c9356799d895035ecabbe6d3af5cd4ed3dac9f4c015007bc2d73b35c3e1e495ba535f99f05bb4be6711456e062672348448b8fe6fb650911054
7
- data.tar.gz: da15dcea0aeaaee48020fb5d625cf432f86426574b04261f960b56d501b49c971ffc274f30e47047f3f8f94513c987e0e999c99613d03abf0de386083a45f2a1
6
+ metadata.gz: cde5776cce49b5f8b3fc7ea05b88dda83834a323374d49cfb349b5fc5580da2521e2f08e9222283ea6feaa212c219a89f089289761d72acb89259380ebc469d3
7
+ data.tar.gz: bde2b2bfd056ea9de4a9816277e73432019804a4b90ad891b99544e02d9b301bd7dee9173cf7e7c87e6b2fbbd0ed9ec99107f071eaeda62c0d6da4be9396b613
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- active_replicas (0.3.0)
4
+ active_replicas (0.3.1)
5
5
  concurrent-ruby (~> 1.0)
6
6
 
7
7
  GEM
@@ -76,6 +76,12 @@ module ActiveReplicas
76
76
  end
77
77
  end
78
78
 
79
+ def clear_reloadable_connections!
80
+ synchronize do
81
+ each_pool &:clear_reloadable_connections!
82
+ end
83
+ end
84
+
79
85
  def current_pool
80
86
  if @current_pool == nil
81
87
  @current_pool = next_pool
@@ -33,6 +33,10 @@ module ActiveReplicas
33
33
  proxying_connection_pool.release_connection
34
34
  end
35
35
 
36
+ def clear_reloadable_connections!
37
+ proxying_connection_pool.clear_reloadable_connections!
38
+ end
39
+
36
40
  # Cribbed from:
37
41
  # https://github.com/rails/rails/blob/4-2-stable/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb#L568
38
42
  def retrieve_connection(klass)
@@ -1,3 +1,3 @@
1
1
  module ActiveReplicas
2
- VERSION = "0.3.0"
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_replicas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dirk Gadsden