active_replicas 0.2.9 → 0.3.0

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: 6fa17899b315dafa993da769a85b9f5bb65eebaf
4
- data.tar.gz: 4ee06f7ff1ac6921359b85c4078d0bdf24e16ac0
3
+ metadata.gz: 6d0602fd41177e09aa8bd7cfc175ee2765826f85
4
+ data.tar.gz: 0ba2594cbb05f7e045113d42714c9da79524fdb9
5
5
  SHA512:
6
- metadata.gz: '0760082ac54858c53f2333dbd6428476961e14b35fd646abd88141c79955570c8488f56af7f2b767bcd5cccb33e4128b557675a745d9275fb79b42f67d4a7ec7'
7
- data.tar.gz: 13bf22da6c145b8bf6d8afedd75ab78127339155a3c69e037b0bd2fff12aace6bfac257d04ebc5b91ab6c033725c5851545c6865ce4127f61ba71d84d5b33707
6
+ metadata.gz: bfb01a7da4b23c9356799d895035ecabbe6d3af5cd4ed3dac9f4c015007bc2d73b35c3e1e495ba535f99f05bb4be6711456e062672348448b8fe6fb650911054
7
+ data.tar.gz: da15dcea0aeaaee48020fb5d625cf432f86426574b04261f960b56d501b49c971ffc274f30e47047f3f8f94513c987e0e999c99613d03abf0de386083a45f2a1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- active_replicas (0.2.9)
4
+ active_replicas (0.3.0)
5
5
  concurrent-ruby (~> 1.0)
6
6
 
7
7
  GEM
@@ -17,6 +17,10 @@ module ActiveReplicas
17
17
  @process_to_connection_pool = Concurrent::Map.new
18
18
  end
19
19
 
20
+ def connection_pool_list
21
+ [ @process_to_connection_pool[Process.pid] ].compact
22
+ end
23
+
20
24
  def establish_connection(owner, spec)
21
25
  prefix = '[ActiveReplicas::Rails4::ConnectionHandler#establish_connection]'
22
26
  ActiveRecord::Base.logger&.warn "#{prefix} Ignoring spec for #{owner.inspect}: #{spec.inspect}"
@@ -1,3 +1,3 @@
1
1
  module ActiveReplicas
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
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.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dirk Gadsden