active_house 0.6.2 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7dcc9f14329d2a24339258eb698cb6f1a1f91d8
4
- data.tar.gz: 488b502574eb35acb32d5d59ec194446597b26c9
3
+ metadata.gz: c1ce9f4613cd0dcd9620da942c301d828f2c29fe
4
+ data.tar.gz: 813e819830b425a3483d6d859c96d35293576f10
5
5
  SHA512:
6
- metadata.gz: 75f7050a6ee9ba96369fea3bad8bbf0687f67c193f76900aacc5409b2897c8638dba9dc985b072c84bd1e8c61737e2837946247e1be9d443b8bcef62f94d605f
7
- data.tar.gz: e634d3342b3c0028372094aae14fcba721717e4e62ffba60576776f4555d392c42091afc9acbc886b3df250de12089b0194bbe440c4df415a634d1c459e94f5b
6
+ metadata.gz: e0ed42cf6fbb9f1f002fe0f7187e224bc20ad595dede752be19b563566e2afe259e3a4424fc9c8b5421e0af87b0bd1a1478987e3b98fd56ea580c67acfd74520
7
+ data.tar.gz: 8947212b75c06e47f4e3e0cdf6d602dff157b6885bc4ead3f8e7e4fc7a74e84e2c77e4608ad544d2467fe8f57473924201411f444cc132944439de1b928deaab
@@ -10,11 +10,18 @@ module ActiveHouse
10
10
 
11
11
  included do
12
12
  class_attribute :_connection_class, instance_accessor: false
13
- class_attribute :_connection, instance_accessor: false
14
13
  self._connection_class = ActiveHouse::Connection
15
14
  end
16
15
 
17
16
  class_methods do
17
+ def _connection
18
+ Thread[name]
19
+ end
20
+
21
+ def _connection=(value)
22
+ Thread[name] = value
23
+ end
24
+
18
25
  def ensure_connection
19
26
  establish_connection if _connection.nil?
20
27
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveHouse
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_house
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich