active_record_shards 3.2.0 → 3.2.1
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 +4 -4
- data/lib/active_record_shards/connection_specification.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 617b97199d494f5b31a05c62c40069c7dbdf60a0
|
|
4
|
+
data.tar.gz: 2d19e039bfacafe6aab0757b3c1afb1e1f501953
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8cc21ce250fd2910c9339ae11b0aed73e6080905e78158389577a5af8d2edecdcfddfbb174622d00349a45cc82d8425b7e8de17fcd557f842652e250f7d8c522
|
|
7
|
+
data.tar.gz: a838fc1a2128d61db0cfe6cd41b3ca9ec1fd0e37b6b9acd0f8fc1325e3f7f706379200673a2b196af2187389b32a43a0ca68aa9172489ac0e2b24f4971bc698c
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
class ActiveRecord::Base
|
|
2
2
|
def self.establish_connection(spec = ENV["DATABASE_URL"])
|
|
3
3
|
if ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR >= 1
|
|
4
|
-
spec ||= DEFAULT_ENV.call
|
|
4
|
+
spec ||= ActiveRecord::ConnectionHandling::DEFAULT_ENV.call
|
|
5
5
|
spec = spec.to_sym if spec.is_a?(String)
|
|
6
6
|
resolver = ActiveRecordShards::ConnectionSpecification::Resolver.new configurations
|
|
7
7
|
spec = resolver.spec(spec)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_record_shards
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mick Staugaard
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2014-
|
|
13
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|