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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 935a1e755a078dd662d8520e5c04411dd64bb83a
4
- data.tar.gz: 4b5a4fb370185bcc0d269e5bb72ee68c3fc1f0b4
3
+ metadata.gz: 93edb726b99bdd459ea374868a9454b6517adcfb
4
+ data.tar.gz: 9b48a0dee236417ace3df3982dadf96cd2466558
5
5
  SHA512:
6
- metadata.gz: 544100938738fa9d2776cdd7b3ec70c062911436ee7765229042e1caf804a5200dd288c130d520c69b248ad846da7471c37fff6e09b598088ecf416585efd23b
7
- data.tar.gz: a98d3571a1517b43e08601b0158c7a588d4dd1643f47c2f03622f25ecd158249805368d7d313ec9511835054327e9cfd02bee5d9535217b73879cc9c466c3864
6
+ metadata.gz: 90def0476116ac0dce790fadc78d182a82d9211dd10ceb71d68ffee33473b829492c54ffea76b46887fda18d97f09053f6898ea0ac3d0027083600d427082f3f
7
+ data.tar.gz: 65de6cddde8f9c708b55f190efcc8648119114cc3a87b1bc64500968861186e7bbd09eda6a860051cbf847964d4614e7c7718b7c02eaaa4d10501ff4ee8bb605
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## activerecord-turntable 2.1.0 (unreleased) ##
1
+ ## activerecord-turntable 2.1.0 ##
2
2
 
3
3
  Support activerecord 4.2.0
4
4
 
@@ -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::Turntable::Config.load!
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
 
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Turntable
3
- VERSION = "2.1.0.rc2"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
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.rc2
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: 1.3.1
466
+ version: '0'
467
467
  requirements: []
468
468
  rubyforge_project: activerecord-turntable
469
- rubygems_version: 2.4.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: