advanced_connection 0.5.8 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -1
- data/README.md +2 -1
- data/Rakefile +1 -0
- data/advanced_connection.gemspec +1 -0
- data/lib/advanced_connection/active_record_ext/connection_pool/idle_manager.rb +3 -3
- data/lib/advanced_connection/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a43e47eb2c14b64c8acf1d46555d6a43a89df4b8
|
4
|
+
data.tar.gz: 723d912c72bebe16647a66fb0b2407a8ea6baf1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 462ee604305314558feab816f4dd61ff75d475ba22ccbd5ae20ebee1b0864218060deec40b18efd4f3fc6697be592115e8fb76f45795790af686130767e15d23
|
7
|
+
data.tar.gz: f97224fd909513cdd586c7d03856722416c95a9022bc232bce509fc3355e87ce1e8a8a0dcb48f8361b7a87a27655fca017bed458a5984260624f9d245ac0c6d6
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
advanced_connection (0.5.
|
4
|
+
advanced_connection (0.5.11)
|
5
5
|
activerecord (~> 4.1)
|
6
6
|
activesupport (~> 4.1)
|
7
7
|
rails (~> 4.1)
|
@@ -122,6 +122,9 @@ GEM
|
|
122
122
|
pygments.rb (0.6.3)
|
123
123
|
posix-spawn (~> 0.3.6)
|
124
124
|
yajl-ruby (~> 1.2.0)
|
125
|
+
rabbitt-githooks (1.6.1)
|
126
|
+
rainbow (~> 2.0.0)
|
127
|
+
thor (~> 0.19.1)
|
125
128
|
rack (1.6.4)
|
126
129
|
rack-test (0.6.3)
|
127
130
|
rack (>= 1.0)
|
@@ -149,6 +152,7 @@ GEM
|
|
149
152
|
activesupport (= 4.2.6)
|
150
153
|
rake (>= 0.8.7)
|
151
154
|
thor (>= 0.18.1, < 2.0)
|
155
|
+
rainbow (2.0.0)
|
152
156
|
rake (10.5.0)
|
153
157
|
rb-fsevent (0.9.7)
|
154
158
|
rb-inotify (0.9.7)
|
@@ -208,8 +212,12 @@ DEPENDENCIES
|
|
208
212
|
pg (~> 0.18.4)
|
209
213
|
pry (~> 0.10.3)
|
210
214
|
pry-nav (~> 0.2.4)
|
215
|
+
rabbitt-githooks (~> 1.6.0)
|
211
216
|
rack (~> 1.6.4)
|
212
217
|
rake (~> 10.5.0)
|
213
218
|
rspec (~> 3.4.0)
|
214
219
|
rspec-collection_matchers (~> 1.1.2)
|
215
220
|
rspec-its (~> 1.2.0)
|
221
|
+
|
222
|
+
BUNDLED WITH
|
223
|
+
1.11.2
|
data/README.md
CHANGED
@@ -6,7 +6,8 @@ AdvancedConnection is a rails (~> 4.1) plugin that provides advanced management
|
|
6
6
|
- Statement Pooling (**EXPERIMENTAL**)
|
7
7
|
|
8
8
|
### Version
|
9
|
-
|
9
|
+
|
10
|
+
[![Gem Version](https://badge.fury.io/rb/advanced_connection.svg)](https://badge.fury.io/rb/advanced_connection)
|
10
11
|
|
11
12
|
### Installation
|
12
13
|
|
data/Rakefile
CHANGED
data/advanced_connection.gemspec
CHANGED
@@ -45,5 +45,6 @@ Gem::Specification.new do |spec|
|
|
45
45
|
|
46
46
|
spec.add_development_dependency "guard-rspec", '~> 4.6.4'
|
47
47
|
spec.add_development_dependency "coveralls", '~> 0.8.13'
|
48
|
+
spec.add_development_dependency 'rabbitt-githooks', '~> 1.6.0'
|
48
49
|
spec.add_development_dependency 'copyright-header', '~> 1.0.15'
|
49
50
|
end
|
@@ -70,12 +70,12 @@ module AdvancedConnection::ActiveRecordExt
|
|
70
70
|
|
71
71
|
begin
|
72
72
|
start = Time.now
|
73
|
-
pool.send(:
|
73
|
+
pool.send(:idle_debug, "beginning idle connection cleanup")
|
74
74
|
pool.remove_idle_connections
|
75
|
-
pool.send(:
|
75
|
+
pool.send(:idle_debug, "beginning idle connection warmup")
|
76
76
|
pool.create_idle_connections
|
77
77
|
finish = (Time.now - start).round(6)
|
78
|
-
pool.send(:
|
78
|
+
pool.send(:idle_debug, "finished idle connection tasks in #{finish} seconds; next run in #{pool.max_idle_time} seconds")
|
79
79
|
rescue => e
|
80
80
|
Rails.logger.error "#{e.class.name}: #{e.message}"
|
81
81
|
e.backtrace.each { |line| Rails.logger.error line }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: advanced_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl P. Corliss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 0.8.13
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rabbitt-githooks
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 1.6.0
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.6.0
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: copyright-header
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -321,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
321
335
|
version: '0'
|
322
336
|
requirements: []
|
323
337
|
rubyforge_project:
|
324
|
-
rubygems_version: 2.
|
338
|
+
rubygems_version: 2.5.1
|
325
339
|
signing_key:
|
326
340
|
specification_version: 4
|
327
341
|
summary: Provides advanced connection options for rails connection pools
|