activerecord-turntable 2.1.0.rc2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/active_record/turntable/railtie.rb +5 -1
- data/lib/active_record/turntable/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93edb726b99bdd459ea374868a9454b6517adcfb
|
4
|
+
data.tar.gz: 9b48a0dee236417ace3df3982dadf96cd2466558
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90def0476116ac0dce790fadc78d182a82d9211dd10ceb71d68ffee33473b829492c54ffea76b46887fda18d97f09053f6898ea0ac3d0027083600d427082f3f
|
7
|
+
data.tar.gz: 65de6cddde8f9c708b55f190efcc8648119114cc3a87b1bc64500968861186e7bbd09eda6a860051cbf847964d4614e7c7718b7c02eaaa4d10501ff4ee8bb605
|
data/CHANGELOG.md
CHANGED
@@ -15,7 +15,11 @@ module ActiveRecord::Turntable
|
|
15
15
|
# initialize
|
16
16
|
initializer "turntable.initialize_clusters" do
|
17
17
|
ActiveSupport.on_load(:active_record) do
|
18
|
-
ActiveRecord::
|
18
|
+
if File.exist?(ActiveRecord::Base.turntable_config_file)
|
19
|
+
ActiveRecord::Turntable::Config.load!
|
20
|
+
else
|
21
|
+
warn("[activerecord-turntable] config/turntable.yml is not found. skipped initliazing cluster.")
|
22
|
+
end
|
19
23
|
end
|
20
24
|
end
|
21
25
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-turntable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gussan
|
@@ -461,12 +461,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
461
461
|
version: 1.9.3
|
462
462
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
463
463
|
requirements:
|
464
|
-
- - "
|
464
|
+
- - ">="
|
465
465
|
- !ruby/object:Gem::Version
|
466
|
-
version:
|
466
|
+
version: '0'
|
467
467
|
requirements: []
|
468
468
|
rubyforge_project: activerecord-turntable
|
469
|
-
rubygems_version: 2.4.
|
469
|
+
rubygems_version: 2.4.5
|
470
470
|
signing_key:
|
471
471
|
specification_version: 4
|
472
472
|
summary: ActiveRecord sharding extension
|
@@ -513,3 +513,4 @@ test_files:
|
|
513
513
|
- spec/spec_helper.rb
|
514
514
|
- spec/support/matchers/be_saved_to.rb
|
515
515
|
- spec/support/turntable_helper.rb
|
516
|
+
has_rdoc:
|