fresh_connection 2.1.0 → 2.1.1
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 +3 -3
- data/lib/fresh_connection/railtie.rb +11 -4
- data/lib/fresh_connection/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d24c5e565ad7dd2b5283a3c4b0db4ba264739d4
|
4
|
+
data.tar.gz: 0f22190e8ee706057160f220003ce34c756fc5e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b13d97f7193d9acbc608c3aee80227fb9a89515cbcef89c63cc7f2bce3f1d287f207e44b731f4a043a9a7759d762fc8461cf3e7244f10a1570dc1d6cec8395f
|
7
|
+
data.tar.gz: 615a23a00261c06bba0bc70421e84669a899df02f61c58c66d8e87b59a5988a5ac78823d775e3ebec8c02fe70b3b88fd2cd376dab9feb7d3ac47bcdaea31d6c6
|
data/.travis.yml
CHANGED
@@ -13,7 +13,7 @@ before_script:
|
|
13
13
|
cache: bundler
|
14
14
|
rvm:
|
15
15
|
- 2.0.0
|
16
|
-
- 2.1.
|
16
|
+
- 2.1.10
|
17
17
|
- 2.2.5
|
18
18
|
- 2.3.1
|
19
19
|
- ruby-head
|
@@ -24,13 +24,13 @@ gemfile:
|
|
24
24
|
- gemfiles/rails50.gemfile
|
25
25
|
matrix:
|
26
26
|
exclude:
|
27
|
-
- rvm: 2.3.
|
27
|
+
- rvm: 2.3.1
|
28
28
|
gemfile: gemfiles/rails40.gemfile
|
29
29
|
- rvm: ruby-head
|
30
30
|
gemfile: gemfiles/rails40.gemfile
|
31
31
|
- rvm: 2.0.0
|
32
32
|
gemfile: gemfiles/rails50.gemfile
|
33
|
-
- rvm: 2.1.
|
33
|
+
- rvm: 2.1.10
|
34
34
|
gemfile: gemfiles/rails50.gemfile
|
35
35
|
allow_failures:
|
36
36
|
- rvm: ruby-head
|
@@ -3,10 +3,17 @@ require 'fresh_connection/rack/connection_management'
|
|
3
3
|
module FreshConnection
|
4
4
|
class Railtie < Rails::Railtie
|
5
5
|
initializer "fresh_connection.configure_rails_initialization" do |app|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
if defined?(ActiveRecord::ConnectionAdapters::ConnectionManagement)
|
7
|
+
app.config.app_middleware.insert_before(
|
8
|
+
ActiveRecord::ConnectionAdapters::ConnectionManagement,
|
9
|
+
FreshConnection::Rack::ConnectionManagement
|
10
|
+
)
|
11
|
+
else
|
12
|
+
app.config.app_middleware.insert_before(
|
13
|
+
ActionDispatch::Reloader,
|
14
|
+
FreshConnection::Rack::ConnectionManagement
|
15
|
+
)
|
16
|
+
end
|
10
17
|
end
|
11
18
|
end
|
12
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fresh_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tsukasa OISHI
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: '0'
|
249
249
|
requirements: []
|
250
250
|
rubyforge_project:
|
251
|
-
rubygems_version: 2.5.1
|
251
|
+
rubygems_version: 2.4.5.1
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: FreshConnection supports to connect with Mysql slave servers via Load Balancers.
|