sequel-schema-sharding 0.6.2 → 0.7.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: ecc993b536a64368091af4bba5cbc4a050554f3d
4
- data.tar.gz: 8557f2e2b421d620abb03ef7377a4c42adec295b
3
+ metadata.gz: 1c82ff954b22155d4bdc05db1c040bf5f8ebde10
4
+ data.tar.gz: b33a6e5262df83a7a73e0ffb6081be808d6281a0
5
5
  SHA512:
6
- metadata.gz: e275b8890e94ad5c00571636dc8778443cf39d8525a9edeab15d93c71ceae4aa5fbd8460c9c7a797d978c14b08ebb679f61460bbbcbaa6095285b6c0ae632654
7
- data.tar.gz: f3cadb51850e174fdec0e2c57d90c6010da95f112120c8f7dc2631d90210a708317faaa44618c1c6f22efb4ef2e92bede2d1f0343b41efb19789b27b0c4f9392
6
+ metadata.gz: 60e70fedb033a93d30c75942d6fa88bafd0b41f5b3d2581b5d8d15241e8419edd3781dd8891ee8999f07361891a1e5aa1ad1ee401168421d261dcaff3b53280a
7
+ data.tar.gz: d09661e5c5be6f3db41f996eda151b161ecd98cc38e07a4eb44b45e45160c8c2c86d7cc73123f413635a485000ebaf7aac9e78c2e6f0b8e84dc5f237a6709a97
@@ -1,4 +1,5 @@
1
1
  require 'singleton'
2
+ require 'sequel-replica-failover'
2
3
 
3
4
  module Sequel
4
5
  module SchemaSharding
@@ -66,7 +67,10 @@ module Sequel
66
67
  :database => config['database'],
67
68
  :port => config['port'],
68
69
  :single_threaded => true,
69
- :loggers => [Sequel::SchemaSharding::LoggerProxy.new]
70
+ :loggers => [Sequel::SchemaSharding::LoggerProxy.new],
71
+ :pool_class => Sequel::ShardedSingleFailoverConnectionPool,
72
+ :pool_retry_count => 10,
73
+ :pool_stick_timeout => 30
70
74
  }
71
75
  end
72
76
 
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module SchemaSharding
3
- VERSION = "0.6.2"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'sequel'
22
22
  spec.add_dependency 'pg'
23
+ spec.add_dependency 'sequel-replica-failover'
23
24
 
24
25
  spec.add_development_dependency 'bundler', '~> 1.3'
25
26
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-schema-sharding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Henry
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-24 00:00:00.000000000 Z
13
+ date: 2013-11-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sequel
@@ -40,6 +40,20 @@ dependencies:
40
40
  - - '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: sequel-replica-failover
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
43
57
  - !ruby/object:Gem::Dependency
44
58
  name: bundler
45
59
  requirement: !ruby/object:Gem::Requirement
@@ -138,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
152
  version: '0'
139
153
  requirements: []
140
154
  rubyforge_project:
141
- rubygems_version: 2.0.3
155
+ rubygems_version: 2.0.7
142
156
  signing_key:
143
157
  specification_version: 4
144
158
  summary: Create horizontally sharded Sequel models with Postgres