ensembl 0.0.11 → 0.0.12

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: c4ac70520dcc5ef2fe51ecf7225730f85f1ac3fd
4
- data.tar.gz: 68bafb5f5b405ab11ce606da2885d27978fa3320
3
+ metadata.gz: 5a545b053756549b4e9e4487a83f8bc29fac4311
4
+ data.tar.gz: c0c76df11398a6ad34929b6ff6fcb8fe82bdb2d0
5
5
  SHA512:
6
- metadata.gz: 8874bde7ed8aed44edec73c73c1dd3f3008b390357cfdd1c3fb414f8e1ff6ab123c934f666f66c74df1063599a1bf1777c6dc349078dc6281b6232edb67d0e49
7
- data.tar.gz: d2d2d476b200bbb2e7bbb6961e14d9b9f3f15b4478b3bf7f42757c7f8c9d7fc57dc44e8765d81479d6a8771cc958086346b96f9015444d4be8c1a16669352fb6
6
+ metadata.gz: dc331260832e59e9f8ddfbdb735dc740827d34e75709b265a6f9a6e6736842f73cca1a2357f7c9595ffac2f8b3cf42d73e59f585a4fd6c9a686c57bd7c5b2ec8
7
+ data.tar.gz: 0d8e59f9b98eab9fc943e381121ae60741d9de19879d25634c8aa7338ed3cdcfa9fb38d5c956cc5392361a3b0f2c59c67e2fafc10eea940f01c9e78b7d7b2459
@@ -14,15 +14,15 @@ module Ensembl
14
14
 
15
15
  self.establish_connection :core
16
16
 
17
- # ConnectionPool implemented from:
18
- # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
19
- singleton_class.send(:alias_method, :original_connection, :connection)
20
-
21
- def self.connection
22
- ActiveRecord::Base.connection_pool.with_connection do |conn|
23
- conn
24
- end
25
- end
17
+ # # ConnectionPool implemented from:
18
+ # # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
19
+ # singleton_class.send(:alias_method, :original_connection, :connection)
20
+ #
21
+ # def self.connection
22
+ # connection_pool.with_connection do |conn|
23
+ # conn
24
+ # end
25
+ # end
26
26
  end
27
27
 
28
28
  class ModelBase < Connection
@@ -3,8 +3,6 @@ require 'active_record'
3
3
  module Ensembl
4
4
  module Variation
5
5
 
6
- # ConnectionPool implemented from:
7
- # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
8
6
  class Connection < ActiveRecord::Base
9
7
 
10
8
  self.extend Ensembl::TableNameOverrides
@@ -13,15 +11,17 @@ module Ensembl
13
11
 
14
12
  self.establish_connection :variation
15
13
 
16
- # ConnectionPool implemented from:
17
- # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
18
- singleton_class.send(:alias_method, :original_connection, :connection)
19
-
20
- def self.connection
21
- ActiveRecord::Base.connection_pool.with_connection do |conn|
22
- conn
23
- end
24
- end
14
+ # # ConnectionPool implemented from:
15
+ # # http://www.lucasallan.com/2014/05/26/fixing-concurrency-issues-with-active-record-in-a-rack-application.html
16
+ # singleton_class.send(:alias_method, :original_connection, :connection)
17
+ #
18
+ # def self.connection
19
+ # ActiveRecord::Base.connection_pool.with_connection do |conn|
20
+ # conn
21
+ # end
22
+ # end
23
+ # 0x007ff553364930
24
+ # 0x007ff553364930
25
25
  end
26
26
 
27
27
  class ModelBase < Connection
@@ -1,3 +1,3 @@
1
1
  module Ensembl
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristjan Metsalu