active_record_shards 3.0.0.beta2 → 3.0.0.beta3

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: 6c4ca6523464fd8739f44b617fd634d0ade3a7e3
4
- data.tar.gz: d21d6cfa9601754888ff291d367732d4642c4f8f
3
+ metadata.gz: 17dba82c91deb75e0c4f6e1af01452c600040ed3
4
+ data.tar.gz: 96c14a1742d6845e5e254994333ac11f4fc83db5
5
5
  SHA512:
6
- metadata.gz: e8553793c3c910c79ea73251306ed33f41a2bce328a365bd8ee2ca20c644fc78c5b12a700b36c1d6ddaeeb62d34ffc10d5454221c6fba40e3e114d41f4930c94
7
- data.tar.gz: 6b6725a7d70a810ee440366cd892cc4af3a26ac1cbdab855d5073b6e3c62202994a7c013da7869a16026f73f021c93313728cac7e3e6bc1ce6ae902a25938f99
6
+ metadata.gz: f96beccd8cb2ac6c9e16593be652d1584b6861691a1fc32a27b89cadd779c3502c43f3a9f25836ef60353791e2f9b03796dbd462012554a604678eb11d468395
7
+ data.tar.gz: e0ae006b57c59fc73c188bd92b59e88a236a9d2dad6b4a5f32d06dc85b200e742972e6917ee80e7012af4e4d09b6aba2a487605f317d84474a7caad973868e5f
@@ -177,7 +177,11 @@ module ActiveRecordShards
177
177
  resolver.spec
178
178
  end
179
179
 
180
- connection_handler.establish_connection(connection_pool_name, specification_cache[name])
180
+ if ActiveRecord::VERSION::MAJOR >= 4
181
+ connection_handler.establish_connection(self, specification_cache[name])
182
+ else
183
+ connection_handler.establish_connection(connection_pool_name, specification_cache[name])
184
+ end
181
185
  end
182
186
 
183
187
  def specification_cache
@@ -1,7 +1,7 @@
1
1
  require 'active_record_shards'
2
2
 
3
3
  %w[db:drop db:create db:abort_if_pending_migrations db:reset].each do |name|
4
- Rake::Task[name].clean
4
+ Rake::Task[name].clear
5
5
  end
6
6
 
7
7
  namespace :db do
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.0.0.beta2
4
+ version: 3.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
@@ -10,26 +10,26 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-31 00:00:00.000000000 Z
13
+ date: 2014-04-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.2.16
22
- - - <=
22
+ - - "<="
23
23
  - !ruby/object:Gem::Version
24
24
  version: '4.1'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - '>='
29
+ - - ">="
30
30
  - !ruby/object:Gem::Version
31
31
  version: 3.2.16
32
- - - <=
32
+ - - "<="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '4.1'
35
35
  description: Easily run queries on shard and slave databases.
@@ -41,6 +41,8 @@ executables: []
41
41
  extensions: []
42
42
  extra_rdoc_files: []
43
43
  files:
44
+ - README.md
45
+ - lib/active_record_shards.rb
44
46
  - lib/active_record_shards/association_collection_connection_selection.rb
45
47
  - lib/active_record_shards/configuration_parser.rb
46
48
  - lib/active_record_shards/connection_handler.rb
@@ -52,8 +54,6 @@ files:
52
54
  - lib/active_record_shards/model.rb
53
55
  - lib/active_record_shards/shard_selection.rb
54
56
  - lib/active_record_shards/tasks.rb
55
- - lib/active_record_shards.rb
56
- - README.md
57
57
  homepage: https://github.com/zendesk/active_record_shards
58
58
  licenses:
59
59
  - MIT
@@ -64,17 +64,17 @@ require_paths:
64
64
  - lib
65
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>'
72
+ - - ">"
73
73
  - !ruby/object:Gem::Version
74
74
  version: 1.3.1
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.0.14
77
+ rubygems_version: 2.2.2
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Simple database switching for ActiveRecord.