ebisu_connection 2.1.0 → 2.2.0
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/.travis.yml +5 -17
- data/Appraisals +0 -10
- data/ebisu_connection.gemspec +4 -4
- data/lib/ebisu_connection.rb +2 -6
- data/lib/ebisu_connection/connection_manager.rb +2 -1
- data/lib/ebisu_connection/slave_group.rb +3 -0
- data/lib/ebisu_connection/version.rb +1 -1
- metadata +8 -11
- data/gemfiles/rails3.gemfile +0 -7
- data/gemfiles/rails40.gemfile +0 -8
- data/gemfiles/rails41.gemfile +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 011e0158431fa0a4bd5ad63fab9412b192051025
|
|
4
|
+
data.tar.gz: 6ced00b03e9db99aef015c0f0bff065b3f1fcdfa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cee60eec2aa12d8943c851b559d779a5859d7f5b4669bba6f8c1bc8d571115b29188a90878ff4fd3e9a4ea8cbe248b2fee78b5761ad88d356702507571018a7e
|
|
7
|
+
data.tar.gz: dd620796df1bf68d7e2668ae4c9f42baf878131bb0fb4ecc45e9373a8c6de6fc32fe8f53e5aed2d5543f9c5e1488895c67fb178a96d837942b4f369f3e76ed25
|
data/.travis.yml
CHANGED
|
@@ -11,28 +11,16 @@ before_script:
|
|
|
11
11
|
- psql -c 'create database ebisu_connection_test_slave;' -U postgres
|
|
12
12
|
cache: bundler
|
|
13
13
|
rvm:
|
|
14
|
-
- 2.
|
|
15
|
-
- 2.
|
|
16
|
-
- 2.
|
|
17
|
-
- 2.
|
|
18
|
-
- ruby-head
|
|
14
|
+
- 2.1.10
|
|
15
|
+
- 2.2.6
|
|
16
|
+
- 2.3.3
|
|
17
|
+
- 2.4.0
|
|
19
18
|
gemfile:
|
|
20
|
-
- gemfiles/rails40.gemfile
|
|
21
|
-
- gemfiles/rails41.gemfile
|
|
22
19
|
- gemfiles/rails42.gemfile
|
|
23
20
|
- gemfiles/rails50.gemfile
|
|
24
21
|
matrix:
|
|
25
22
|
exclude:
|
|
26
|
-
- rvm: 2.
|
|
27
|
-
gemfile: gemfiles/rails40.gemfile
|
|
28
|
-
- rvm: ruby-head
|
|
29
|
-
gemfile: gemfiles/rails40.gemfile
|
|
30
|
-
- rvm: 2.0.0
|
|
23
|
+
- rvm: 2.1.10
|
|
31
24
|
gemfile: gemfiles/rails50.gemfile
|
|
32
|
-
- rvm: 2.1.8
|
|
33
|
-
gemfile: gemfiles/rails50.gemfile
|
|
34
|
-
allow_failures:
|
|
35
|
-
- rvm: ruby-head
|
|
36
|
-
- gemfile: gemfiles/rails50.gemfile
|
|
37
25
|
fast_finish: true
|
|
38
26
|
bundler_args: --jobs 3 --retry 3
|
data/Appraisals
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
appraise "rails40" do
|
|
2
|
-
gem "activerecord", "~> 4.0.0"
|
|
3
|
-
gem 'mysql2', '~> 0.3.10'
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
appraise "rails41" do
|
|
7
|
-
gem "activerecord", "~> 4.1.0"
|
|
8
|
-
gem 'mysql2', '~> 0.3.13'
|
|
9
|
-
end
|
|
10
|
-
|
|
11
1
|
appraise "rails42" do
|
|
12
2
|
gem "activerecord", "~> 4.2.0"
|
|
13
3
|
gem 'mysql2', '~> 0.3.13'
|
data/ebisu_connection.gemspec
CHANGED
|
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["tsukasaoishi"]
|
|
10
10
|
spec.email = ["tsukasa.oishi@gmail.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{EbisuConnection supports to connect with
|
|
13
|
-
spec.description = %q{EbisuConnection supports to connect with
|
|
12
|
+
spec.summary = %q{EbisuConnection supports to connect with slave DB servers.}
|
|
13
|
+
spec.description = %q{EbisuConnection supports to connect with slave DB servers. It doesn't need Load Balancer.}
|
|
14
14
|
spec.homepage = "https://github.com/tsukasaoishi/ebisu_connection"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
20
20
|
spec.require_paths = ["lib"]
|
|
21
21
|
|
|
22
|
-
spec.required_ruby_version = '>= 2.
|
|
22
|
+
spec.required_ruby_version = '>= 2.1'
|
|
23
23
|
|
|
24
|
-
spec.add_dependency 'fresh_connection', '~> 2.
|
|
24
|
+
spec.add_dependency 'fresh_connection', '~> 2.2.0'
|
|
25
25
|
spec.add_dependency 'concurrent-ruby', '~> 1.0.0'
|
|
26
26
|
|
|
27
27
|
spec.add_development_dependency 'mysql2', '>= 0.3.13', '< 0.5'
|
data/lib/ebisu_connection.rb
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
require "fresh_connection"
|
|
2
|
+
require "ebisu_connection/conf_file"
|
|
2
3
|
|
|
3
4
|
module EbisuConnection
|
|
4
|
-
autoload :ConfFile, 'ebisu_connection/conf_file'
|
|
5
|
-
autoload :ConnectionManager, 'ebisu_connection/connection_manager'
|
|
6
|
-
autoload :SlaveGroup, 'ebisu_connection/slave_group'
|
|
7
|
-
autoload :Slave, 'ebisu_connection/slave'
|
|
8
|
-
autoload :GreatestCommonDivisor, 'ebisu_connection/greatest_common_divisor'
|
|
9
|
-
|
|
10
5
|
class << self
|
|
11
6
|
attr_writer :env
|
|
12
7
|
|
|
@@ -24,4 +19,5 @@ module EbisuConnection
|
|
|
24
19
|
end
|
|
25
20
|
end
|
|
26
21
|
|
|
22
|
+
require "ebisu_connection/connection_manager"
|
|
27
23
|
FreshConnection.connection_manager = EbisuConnection::ConnectionManager
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ebisu_connection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tsukasaoishi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fresh_connection
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 2.
|
|
19
|
+
version: 2.2.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 2.
|
|
26
|
+
version: 2.2.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: concurrent-ruby
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -148,7 +148,7 @@ dependencies:
|
|
|
148
148
|
- - ">="
|
|
149
149
|
- !ruby/object:Gem::Version
|
|
150
150
|
version: '0'
|
|
151
|
-
description: EbisuConnection supports to connect with
|
|
151
|
+
description: EbisuConnection supports to connect with slave DB servers. It doesn't
|
|
152
152
|
need Load Balancer.
|
|
153
153
|
email:
|
|
154
154
|
- tsukasa.oishi@gmail.com
|
|
@@ -168,9 +168,6 @@ files:
|
|
|
168
168
|
- bin/setup
|
|
169
169
|
- bin/test
|
|
170
170
|
- ebisu_connection.gemspec
|
|
171
|
-
- gemfiles/rails3.gemfile
|
|
172
|
-
- gemfiles/rails40.gemfile
|
|
173
|
-
- gemfiles/rails41.gemfile
|
|
174
171
|
- gemfiles/rails42.gemfile
|
|
175
172
|
- gemfiles/rails50.gemfile
|
|
176
173
|
- lib/ebisu_connection.rb
|
|
@@ -192,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
192
189
|
requirements:
|
|
193
190
|
- - ">="
|
|
194
191
|
- !ruby/object:Gem::Version
|
|
195
|
-
version: '2.
|
|
192
|
+
version: '2.1'
|
|
196
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
194
|
requirements:
|
|
198
195
|
- - ">="
|
|
@@ -200,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
200
197
|
version: '0'
|
|
201
198
|
requirements: []
|
|
202
199
|
rubyforge_project:
|
|
203
|
-
rubygems_version: 2.5.
|
|
200
|
+
rubygems_version: 2.5.2
|
|
204
201
|
signing_key:
|
|
205
202
|
specification_version: 4
|
|
206
|
-
summary: EbisuConnection supports to connect with
|
|
203
|
+
summary: EbisuConnection supports to connect with slave DB servers.
|
|
207
204
|
test_files: []
|
data/gemfiles/rails3.gemfile
DELETED
data/gemfiles/rails40.gemfile
DELETED