ebisu_connection 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +20 -0
- data/Appraisals +4 -3
- data/README.md +2 -0
- data/ebisu_connection.gemspec +3 -4
- data/gemfiles/rails3.gemfile +0 -1
- data/gemfiles/rails40.gemfile +0 -1
- data/gemfiles/rails41.gemfile +0 -1
- data/gemfiles/rails42.gemfile +7 -0
- data/lib/ebisu_connection/version.rb +1 -1
- data/lib/ebisu_connection.rb +1 -0
- data/spec/prepare.rb +1 -0
- data/spec/spec_helper.rb +0 -1
- metadata +11 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87ddae1248a9277a1f722106a6f363dd04abfbf9
|
4
|
+
data.tar.gz: e4cc9ef470525730d97c7f73492c85f87002818f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be8879cd77128d32518c61410b2077dee5ed9537c455bb85bb215797af97c3033ce54c87b22394a4f75ad6b70df4b568325d775ce4005708d17c83910f25298
|
7
|
+
data.tar.gz: e751976d76f4b79eb1118b7e65c34c0eccd0a67ef6715c5bd67706b62a61156b86a95e810362786d735494c19d700564b5419c2ba77e1df9fb2a6ae68e4a93a6
|
data/.travis.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
language: ruby
|
2
|
+
before_script:
|
3
|
+
- mysql -e 'create database ebisu_connection_test;'
|
4
|
+
- mysql -e 'create database ebisu_connection_test_master;'
|
5
|
+
- mysql -e 'create database ebisu_connection_test_slave;'
|
6
|
+
- "bundle exec ruby spec/prepare.rb"
|
7
|
+
rvm:
|
8
|
+
- 1.9.3
|
9
|
+
- 2.0.0
|
10
|
+
- 2.1
|
11
|
+
- 2.2
|
12
|
+
- ruby-head
|
13
|
+
gemfile:
|
14
|
+
- gemfiles/rails3.gemfile
|
15
|
+
- gemfiles/rails40.gemfile
|
16
|
+
- gemfiles/rails41.gemfile
|
17
|
+
- gemfiles/rails42.gemfile
|
18
|
+
notifications:
|
19
|
+
emails:
|
20
|
+
- tsukasa.oishi@gmail.com
|
data/Appraisals
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
appraise "rails3" do
|
2
2
|
gem "activerecord", "~> 3.2.0"
|
3
|
-
gem "activesupport", "~> 3.2.0"
|
4
3
|
end
|
5
4
|
|
6
5
|
appraise "rails40" do
|
7
6
|
gem "activerecord", "~> 4.0.0"
|
8
|
-
gem "activesupport", "~> 4.0.0"
|
9
7
|
end
|
10
8
|
|
11
9
|
appraise "rails41" do
|
12
10
|
gem "activerecord", "~> 4.1.0"
|
13
|
-
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise "rails42" do
|
14
|
+
gem "activerecord", "~> 4.2.0"
|
14
15
|
end
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# EbisuConnection
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/ebisu_connection.svg)](http://badge.fury.io/rb/ebisu_connection) [![Build Status](https://travis-ci.org/tsukasaoishi/ebisu_connection.svg?branch=master)](https://travis-ci.org/tsukasaoishi/ebisu_connection) [![Code Climate](https://codeclimate.com/github/tsukasaoishi/ebisu_connection/badges/gpa.svg)](https://codeclimate.com/github/tsukasaoishi/ebisu_connection)
|
4
|
+
|
3
5
|
EbisuConnection supports to connect with Mysql slave servers. It doesn't need Load Balancer.
|
4
6
|
You can assign a performance weight to each slave server. And slave config is reflected dynamic.
|
5
7
|
EbisuConnection uses FreshConnection (https://github.com/tsukasaoishi/fresh_connection).
|
data/ebisu_connection.gemspec
CHANGED
@@ -18,11 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'fresh_connection', '~> 0.
|
22
|
-
spec.add_dependency 'mysql2', '~> 0.3'
|
21
|
+
spec.add_dependency 'fresh_connection', '~> 0.3.0'
|
23
22
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
25
24
|
spec.add_development_dependency "rake", '~> 10.0'
|
26
|
-
spec.add_development_dependency "rspec", '~>
|
25
|
+
spec.add_development_dependency "rspec", '~> 3.0'
|
27
26
|
spec.add_development_dependency 'appraisal', '~> 1.0'
|
28
27
|
end
|
data/gemfiles/rails3.gemfile
CHANGED
data/gemfiles/rails40.gemfile
CHANGED
data/gemfiles/rails41.gemfile
CHANGED
data/lib/ebisu_connection.rb
CHANGED
data/spec/prepare.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -2,7 +2,6 @@ ENV["RAILS_ENV"]="test"
|
|
2
2
|
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
3
3
|
require 'ebisu_connection'
|
4
4
|
|
5
|
-
FreshConnection::Initializer.extend_active_record
|
6
5
|
FreshConnection.env = "test"
|
7
6
|
EbisuConnection.slaves_file = File.join(File.dirname(__FILE__), "slaves.yaml")
|
8
7
|
require File.join(File.dirname(__FILE__), "prepare.rb")
|
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: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tsukasaoishi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fresh_connection
|
@@ -16,48 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.2
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.2.0
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.2.2
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: mysql2
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.3'
|
19
|
+
version: 0.3.0
|
40
20
|
type: :runtime
|
41
21
|
prerelease: false
|
42
22
|
version_requirements: !ruby/object:Gem::Requirement
|
43
23
|
requirements:
|
44
24
|
- - "~>"
|
45
25
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
26
|
+
version: 0.3.0
|
47
27
|
- !ruby/object:Gem::Dependency
|
48
28
|
name: bundler
|
49
29
|
requirement: !ruby/object:Gem::Requirement
|
50
30
|
requirements:
|
51
31
|
- - "~>"
|
52
32
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
33
|
+
version: '1.7'
|
54
34
|
type: :development
|
55
35
|
prerelease: false
|
56
36
|
version_requirements: !ruby/object:Gem::Requirement
|
57
37
|
requirements:
|
58
38
|
- - "~>"
|
59
39
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
40
|
+
version: '1.7'
|
61
41
|
- !ruby/object:Gem::Dependency
|
62
42
|
name: rake
|
63
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +58,14 @@ dependencies:
|
|
78
58
|
requirements:
|
79
59
|
- - "~>"
|
80
60
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
61
|
+
version: '3.0'
|
82
62
|
type: :development
|
83
63
|
prerelease: false
|
84
64
|
version_requirements: !ruby/object:Gem::Requirement
|
85
65
|
requirements:
|
86
66
|
- - "~>"
|
87
67
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
68
|
+
version: '3.0'
|
89
69
|
- !ruby/object:Gem::Dependency
|
90
70
|
name: appraisal
|
91
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,6 +89,7 @@ extensions: []
|
|
109
89
|
extra_rdoc_files: []
|
110
90
|
files:
|
111
91
|
- ".gitignore"
|
92
|
+
- ".travis.yml"
|
112
93
|
- Appraisals
|
113
94
|
- Gemfile
|
114
95
|
- LICENSE.txt
|
@@ -118,6 +99,7 @@ files:
|
|
118
99
|
- gemfiles/rails3.gemfile
|
119
100
|
- gemfiles/rails40.gemfile
|
120
101
|
- gemfiles/rails41.gemfile
|
102
|
+
- gemfiles/rails42.gemfile
|
121
103
|
- lib/ebisu_connection.rb
|
122
104
|
- lib/ebisu_connection/conf_file.rb
|
123
105
|
- lib/ebisu_connection/connection_manager.rb
|
@@ -154,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
136
|
version: '0'
|
155
137
|
requirements: []
|
156
138
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.4.5
|
158
140
|
signing_key:
|
159
141
|
specification_version: 4
|
160
142
|
summary: EbisuConnection supports to connect with Mysql slave servers.
|