ensembl 0.0.9 → 0.0.10

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: 9184473a4f510dc3c745429272faf91ece792c13
4
- data.tar.gz: b2cf56a525faae69a4ef6d1555e1fcdd193738af
3
+ metadata.gz: 9f42c94ee8d83d257d7a8a14bc93e7575378960c
4
+ data.tar.gz: bb7fba0cfe944082d157fffb5f572da729593bde
5
5
  SHA512:
6
- metadata.gz: 116db18ee8d13e996dbe637dbfee8e50a3a0bc6fa8774c5097bc9b4543650e87dcd0d31df25355323e15698760bdc337f7841da1b945e23cc4fa09ea2ff364e2
7
- data.tar.gz: 9e6f98c89c2c3018b930478144b2e17207ae166fed90b0425aab18b0ddec924c2153177e26880e9efdba67ebe5acd6df16607193c1e6b93e996f8ade840d45e6
6
+ metadata.gz: e445f42acc1f4f1f7cc6e228c98b8854feaf9fb051e40c120f1d15cdf2ad9725b95119af95252f5d83e192e96048951d27d4cfce9a6a393d022b26ef3cad3316
7
+ data.tar.gz: ad76ac1961ce9a49b224eda9db098b47cbc4ce8c1369f78545358e36d2c9d8447a3679cc165508c84e1438beec2eb6d147bbe96e1002473294a975432411ac74
@@ -7,11 +7,8 @@ module Ensembl
7
7
  end
8
8
  end
9
9
 
10
- # ConnectionPool implemented from:
11
- # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
12
- class Connection < ActiveRecord::Base
10
+ class Connection < ConnectionPooledBase
13
11
  self.extend Ensembl::TableNameOverrides
14
- self.extend Ensembl::ConnectionPool
15
12
 
16
13
  self.abstract_class = true
17
14
 
@@ -5,10 +5,9 @@ module Ensembl
5
5
 
6
6
  # ConnectionPool implemented from:
7
7
  # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
8
- class Connection < ActiveRecord::Base
8
+ class Connection < ConnectionPooledBase
9
9
 
10
10
  self.extend Ensembl::TableNameOverrides
11
- self.extend Ensembl::ConnectionPool
12
11
 
13
12
  self.abstract_class = true
14
13
 
@@ -1,3 +1,3 @@
1
1
  module Ensembl
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
data/lib/ensembl.rb CHANGED
@@ -21,7 +21,9 @@ module Ensembl
21
21
 
22
22
  # ConnectionPool implemented from:
23
23
  # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
24
- module ConnectionPool
24
+ class ConnectionPooledBase < ActiveRecord::Base
25
+ self.abstract_class = true
26
+
25
27
  singleton_class.send(:alias_method, :original_connection, :connection)
26
28
 
27
29
  def self.connection
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ensembl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristjan Metsalu