ndr_dev_support 1.2.0 → 1.2.1

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: bbf173d8ddfa7d10cb31833d230906bdcc958ba2
4
- data.tar.gz: 02683547d2431fb1fb989fd5be52fdfb798b5224
3
+ metadata.gz: d05cff14bd3e934da25aa7c61393b21781c2d2b2
4
+ data.tar.gz: a5c68805421f5b62c3af2ba7173659e1dff20ac9
5
5
  SHA512:
6
- metadata.gz: ebb19d580b52f1aeaa43ca959e29b617d5236c39336bab47f1170ef48683d36ad6d1f478c0d7fe5deeaf5ab9c72bbead8866e00a6c8f0664867105eaca577879
7
- data.tar.gz: 4d9bafe9f324abb580db296b3801fd93c7f814f7420f3f661438280c584701b623ad5131f615a4112f87f09defbc823e2e0312407f134033653e3c451fbff98e
6
+ metadata.gz: 20c50dba870dddf9e92c23b9bbddc6b12ede7596a262926bfbd2d6811f2254971a600683e55ce4ac106bf495a7205fd7183e60147777a7d1277f449be297b28a
7
+ data.tar.gz: 01de99ac267f20da8a8187f16bac9f2075589a84cf5fd84c34a638647071996fccf314d3dbb3b2b6741481b7f1c9bcba519958ad051ba224adfecb5782e01989
data/code_safety.yml CHANGED
@@ -55,7 +55,7 @@ file safety:
55
55
  lib/ndr_dev_support/integration_testing/connection_sharing.rb:
56
56
  comments:
57
57
  reviewed_by: josh.pencheon
58
- safe_revision: 88ac9269eb8f0b44c5920a946708e4715421bcad
58
+ safe_revision: 14716806f63058b1d5f3485e2380302fa6ef7526
59
59
  lib/ndr_dev_support/integration_testing/poltergeist.rb:
60
60
  comments:
61
61
  reviewed_by: josh.pencheon
@@ -87,7 +87,7 @@ file safety:
87
87
  lib/ndr_dev_support/version.rb:
88
88
  comments:
89
89
  reviewed_by: josh.pencheon
90
- safe_revision: cc35bc393f1e6b9eb3a93dfe4fa3a9aa90aacbec
90
+ safe_revision: 5ad343255973352fe41a9285ea7234276ebc49ab
91
91
  lib/tasks/audit_code.rake:
92
92
  comments: Identical to the version reviewed by josh.pencheon when contained within
93
93
  ndr_support
@@ -6,19 +6,19 @@ module NdrDevSupport
6
6
  #
7
7
  # Derived from: https://gist.github.com/josevalim/470808
8
8
  #
9
+ # Modified to support multiple connection pools
10
+ #
9
11
  module ConnectionSharing
10
12
  def self.prepended(base)
11
- base.mattr_accessor :shared_connection
12
-
13
- # Get a connection, and make it shareable:
14
- base.shared_connection = base.connection
13
+ base.mattr_accessor :shared_connections
14
+ base.shared_connections = {}
15
15
 
16
16
  base.singleton_class.prepend(ClassMethods)
17
17
  end
18
18
 
19
19
  module ClassMethods
20
20
  def connection
21
- shared_connection || retrieve_connection
21
+ shared_connections[connection_config] ||= retrieve_connection
22
22
  end
23
23
  end
24
24
  end
@@ -2,5 +2,5 @@
2
2
  # This defines the NdrDevSupport version. If you change it, rebuild and commit the gem.
3
3
  # Use "rake build" to build the gem, see rake -T for all bundler rake tasks (and our own).
4
4
  module NdrDevSupport
5
- VERSION = '1.2.0'.freeze
5
+ VERSION = '1.2.1'.freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_dev_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NCRS Development Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-30 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop