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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d05cff14bd3e934da25aa7c61393b21781c2d2b2
|
4
|
+
data.tar.gz: a5c68805421f5b62c3af2ba7173659e1dff20ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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:
|
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 :
|
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
|
-
|
21
|
+
shared_connections[connection_config] ||= retrieve_connection
|
22
22
|
end
|
23
23
|
end
|
24
24
|
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.
|
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-
|
11
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|