advanced_connection 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.gitignore +8 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +63 -0
  6. data/Gemfile +3 -0
  7. data/Gemfile.lock +218 -0
  8. data/MIT-LICENSE +20 -0
  9. data/README.rdoc +3 -0
  10. data/Rakefile +165 -0
  11. data/advanced_connection.gemspec +49 -0
  12. data/gemfiles/jruby/rails4_1.gemfile +7 -0
  13. data/gemfiles/jruby/rails4_2.gemfile +7 -0
  14. data/gemfiles/ruby/rails4_1.gemfile +7 -0
  15. data/gemfiles/ruby/rails4_2.gemfile +7 -0
  16. data/lib/advanced_connection/active_record_ext/abstract_adapter/statement_pooling.rb +121 -0
  17. data/lib/advanced_connection/active_record_ext/abstract_adapter.rb +48 -0
  18. data/lib/advanced_connection/active_record_ext/connection_pool/idle_manager.rb +271 -0
  19. data/lib/advanced_connection/active_record_ext/connection_pool/queues.rb +60 -0
  20. data/lib/advanced_connection/active_record_ext/connection_pool/statement_pooling.rb +42 -0
  21. data/lib/advanced_connection/active_record_ext/connection_pool/without_connection.rb +93 -0
  22. data/lib/advanced_connection/active_record_ext/connection_pool.rb +38 -0
  23. data/lib/advanced_connection/active_record_ext/without_connection.rb +30 -0
  24. data/lib/advanced_connection/active_record_ext.rb +59 -0
  25. data/lib/advanced_connection/config.rb +247 -0
  26. data/lib/advanced_connection/error.rb +27 -0
  27. data/lib/advanced_connection/railtie.rb +40 -0
  28. data/lib/advanced_connection/version.rb +29 -0
  29. data/lib/advanced_connection.rb +65 -0
  30. data/lib/generators/advanced_connection/install/USAGE +5 -0
  31. data/lib/generators/advanced_connection/install/install_generator.rb +30 -0
  32. data/lib/generators/advanced_connection/install/templates/advanced_connection.rb +142 -0
  33. data/lib/tasks/advanced_connection_tasks.rake +25 -0
  34. data/spec/config/database.yml +18 -0
  35. data/spec/config/database.yml.erb +54 -0
  36. data/spec/dummy/.gitignore +1 -0
  37. data/spec/dummy/README.rdoc +28 -0
  38. data/spec/dummy/Rakefile +6 -0
  39. data/spec/dummy/app/assets/images/.keep +0 -0
  40. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  41. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  42. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  43. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  44. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  45. data/spec/dummy/app/mailers/.keep +0 -0
  46. data/spec/dummy/app/models/.keep +0 -0
  47. data/spec/dummy/app/models/book.rb +2 -0
  48. data/spec/dummy/app/models/concerns/.keep +0 -0
  49. data/spec/dummy/app/views/layouts/application.html.erb +13 -0
  50. data/spec/dummy/bin/bundle +3 -0
  51. data/spec/dummy/bin/rails +4 -0
  52. data/spec/dummy/bin/rake +4 -0
  53. data/spec/dummy/bin/setup +29 -0
  54. data/spec/dummy/config/application.rb +32 -0
  55. data/spec/dummy/config/boot.rb +5 -0
  56. data/spec/dummy/config/database.yml +17 -0
  57. data/spec/dummy/config/environment.rb +5 -0
  58. data/spec/dummy/config/environments/development.rb +48 -0
  59. data/spec/dummy/config/environments/production.rb +79 -0
  60. data/spec/dummy/config/environments/test.rb +42 -0
  61. data/spec/dummy/config/initializers/advanced_connection.rb +142 -0
  62. data/spec/dummy/config/initializers/assets.rb +11 -0
  63. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  64. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  65. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  66. data/spec/dummy/config/initializers/inflections.rb +16 -0
  67. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  68. data/spec/dummy/config/initializers/session_store.rb +3 -0
  69. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  70. data/spec/dummy/config/locales/en.yml +23 -0
  71. data/spec/dummy/config/routes.rb +56 -0
  72. data/spec/dummy/config/secrets.yml +22 -0
  73. data/spec/dummy/config.ru +4 -0
  74. data/spec/dummy/db/migrate/20160222045238_create_books.rb +10 -0
  75. data/spec/dummy/db/schema.rb +23 -0
  76. data/spec/dummy/lib/assets/.keep +0 -0
  77. data/spec/dummy/log/.keep +0 -0
  78. data/spec/dummy/log/test.log +327 -0
  79. data/spec/dummy/public/404.html +67 -0
  80. data/spec/dummy/public/422.html +67 -0
  81. data/spec/dummy/public/500.html +66 -0
  82. data/spec/dummy/public/favicon.ico +0 -0
  83. data/spec/dummy/test/fixtures/books.yml +9 -0
  84. data/spec/dummy/test/models/book_test.rb +7 -0
  85. data/spec/idle_manager_spec.rb +16 -0
  86. data/spec/spec_helper.rb +25 -0
  87. data/spec/support/db_config.rb +61 -0
  88. metadata +399 -0
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ name: MyString
5
+ publish_date: 2016-02-21
6
+
7
+ two:
8
+ name: MyString
9
+ publish_date: 2016-02-21
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class BookTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'IdleManager' do
4
+ context '#prestart' do
5
+ before do
6
+ @pool = ActiveRecord::Base.connection_pool
7
+ @pool.disconnect!
8
+ @pool.prestart(5)
9
+ end
10
+
11
+ it 'prestart generates correct number of connections' do
12
+ size = @pool.connections.size
13
+ expect(size).to eq 5
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,25 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
4
+ # Configure Rails Environment
5
+ ENV["RAILS_ENV"] = "test"
6
+
7
+ require File.expand_path("../../spec/dummy/config/environment.rb", __FILE__)
8
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../spec/dummy/db/migrate", __FILE__)]
9
+ require "rails/test_help"
10
+
11
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
12
+ # to be shown.
13
+ # Minitest.backtrace_filter = Minitest::BacktraceFilter.new
14
+
15
+ ActiveRecord::Base.configurations = YAML.load_file(File.join(File.dirname(__FILE__), 'config/database.yml'))
16
+ ActiveRecord::Base.establish_connection(:test)
17
+
18
+ # Load support files
19
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
20
+
21
+ RSpec.configure do |config|
22
+ config.expect_with :rspec do |c|
23
+ c.syntax = :expect
24
+ end
25
+ end
@@ -0,0 +1,61 @@
1
+ require 'yaml'
2
+ require 'erb'
3
+ require 'pathname'
4
+ require 'singleton'
5
+
6
+ require 'active_support/hash_with_indifferent_access'
7
+ require 'active_support/core_ext/hash/indifferent_access'
8
+ require 'active_support/core_ext/module/delegation'
9
+
10
+ module AdvancedConnection
11
+ module Test
12
+ class DbConfig
13
+ include Singleton
14
+
15
+ class << self
16
+ def method_missing(method, *args)
17
+ return super unless instance.respond_to? method
18
+ if block_given?
19
+ instance.public_send(method, *args) { yield }
20
+ else
21
+ instance.public_send(method, *args)
22
+ end
23
+ end
24
+
25
+ def respond_to_missing?(method, include_private=false)
26
+ instance.respond_to?(method) || super
27
+ end
28
+ end
29
+
30
+ def initialize
31
+ @config ||= begin
32
+ config_path = Pathname.new(__FILE__).dirname.parent.join('config', 'database.yml.erb')
33
+ YAML.load(ERB.new(IO.read(config_path), nil, '-').result)
34
+ end
35
+ end
36
+
37
+ delegate :[], to: :connections
38
+ delegate :each, to: :connections
39
+ delegate :each_key, to: :connections
40
+ delegate :keys, to: :connections
41
+
42
+ def postgresql_config
43
+ connections['postgresql']
44
+ end
45
+
46
+ def mysql_config
47
+ connections['mysql']
48
+ end
49
+
50
+ def sqlite_config
51
+ connections['sqlite']
52
+ end
53
+
54
+ private
55
+
56
+ def connections
57
+ @config['connections']
58
+ end
59
+ end
60
+ end
61
+ end
metadata ADDED
@@ -0,0 +1,399 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: advanced_connection
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.1
5
+ platform: ruby
6
+ authors:
7
+ - Carl P. Corliss
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.1.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.1.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: activerecord
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 4.1.0
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '5.0'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 4.1.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '5.0'
53
+ - !ruby/object:Gem::Dependency
54
+ name: activesupport
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 4.1.0
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '5.0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 4.1.0
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '5.0'
73
+ - !ruby/object:Gem::Dependency
74
+ name: rake
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '10.5'
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '10.5'
87
+ - !ruby/object:Gem::Dependency
88
+ name: rack
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - "~>"
92
+ - !ruby/object:Gem::Version
93
+ version: '1.6'
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - "~>"
99
+ - !ruby/object:Gem::Version
100
+ version: '1.6'
101
+ - !ruby/object:Gem::Dependency
102
+ name: rspec
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '3.4'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '3.4'
115
+ - !ruby/object:Gem::Dependency
116
+ name: rspec-its
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '1.2'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: '1.2'
129
+ - !ruby/object:Gem::Dependency
130
+ name: rspec-collection_matchers
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '1.1'
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: '1.1'
143
+ - !ruby/object:Gem::Dependency
144
+ name: pg
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '0.18'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '0.18'
157
+ - !ruby/object:Gem::Dependency
158
+ name: pry
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "~>"
162
+ - !ruby/object:Gem::Version
163
+ version: '0.10'
164
+ type: :development
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '0.10'
171
+ - !ruby/object:Gem::Dependency
172
+ name: pry-nav
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '0.2'
178
+ type: :development
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - "~>"
183
+ - !ruby/object:Gem::Version
184
+ version: '0.2'
185
+ - !ruby/object:Gem::Dependency
186
+ name: guard-rspec
187
+ requirement: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - "~>"
190
+ - !ruby/object:Gem::Version
191
+ version: '4.6'
192
+ type: :development
193
+ prerelease: false
194
+ version_requirements: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - "~>"
197
+ - !ruby/object:Gem::Version
198
+ version: '4.6'
199
+ - !ruby/object:Gem::Dependency
200
+ name: coveralls
201
+ requirement: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - "~>"
204
+ - !ruby/object:Gem::Version
205
+ version: '0.8'
206
+ type: :development
207
+ prerelease: false
208
+ version_requirements: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - "~>"
211
+ - !ruby/object:Gem::Version
212
+ version: '0.8'
213
+ - !ruby/object:Gem::Dependency
214
+ name: copyright-header
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - '='
218
+ - !ruby/object:Gem::Version
219
+ version: 1.0.15
220
+ type: :development
221
+ prerelease: false
222
+ version_requirements: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - '='
225
+ - !ruby/object:Gem::Version
226
+ version: 1.0.15
227
+ description: Adds idle connection management, statement pooling, and other advanced
228
+ connection features
229
+ email:
230
+ - carl.corliss@finalsite.com
231
+ executables: []
232
+ extensions: []
233
+ extra_rdoc_files: []
234
+ files:
235
+ - ".document"
236
+ - ".gitignore"
237
+ - ".rspec"
238
+ - ".travis.yml"
239
+ - Gemfile
240
+ - Gemfile.lock
241
+ - MIT-LICENSE
242
+ - README.rdoc
243
+ - Rakefile
244
+ - advanced_connection.gemspec
245
+ - gemfiles/jruby/rails4_1.gemfile
246
+ - gemfiles/jruby/rails4_2.gemfile
247
+ - gemfiles/ruby/rails4_1.gemfile
248
+ - gemfiles/ruby/rails4_2.gemfile
249
+ - lib/advanced_connection.rb
250
+ - lib/advanced_connection/active_record_ext.rb
251
+ - lib/advanced_connection/active_record_ext/abstract_adapter.rb
252
+ - lib/advanced_connection/active_record_ext/abstract_adapter/statement_pooling.rb
253
+ - lib/advanced_connection/active_record_ext/connection_pool.rb
254
+ - lib/advanced_connection/active_record_ext/connection_pool/idle_manager.rb
255
+ - lib/advanced_connection/active_record_ext/connection_pool/queues.rb
256
+ - lib/advanced_connection/active_record_ext/connection_pool/statement_pooling.rb
257
+ - lib/advanced_connection/active_record_ext/connection_pool/without_connection.rb
258
+ - lib/advanced_connection/active_record_ext/without_connection.rb
259
+ - lib/advanced_connection/config.rb
260
+ - lib/advanced_connection/error.rb
261
+ - lib/advanced_connection/railtie.rb
262
+ - lib/advanced_connection/version.rb
263
+ - lib/generators/advanced_connection/install/USAGE
264
+ - lib/generators/advanced_connection/install/install_generator.rb
265
+ - lib/generators/advanced_connection/install/templates/advanced_connection.rb
266
+ - lib/tasks/advanced_connection_tasks.rake
267
+ - spec/config/database.yml
268
+ - spec/config/database.yml.erb
269
+ - spec/dummy/.gitignore
270
+ - spec/dummy/README.rdoc
271
+ - spec/dummy/Rakefile
272
+ - spec/dummy/app/assets/images/.keep
273
+ - spec/dummy/app/assets/javascripts/application.js
274
+ - spec/dummy/app/assets/stylesheets/application.css
275
+ - spec/dummy/app/controllers/application_controller.rb
276
+ - spec/dummy/app/controllers/concerns/.keep
277
+ - spec/dummy/app/helpers/application_helper.rb
278
+ - spec/dummy/app/mailers/.keep
279
+ - spec/dummy/app/models/.keep
280
+ - spec/dummy/app/models/book.rb
281
+ - spec/dummy/app/models/concerns/.keep
282
+ - spec/dummy/app/views/layouts/application.html.erb
283
+ - spec/dummy/bin/bundle
284
+ - spec/dummy/bin/rails
285
+ - spec/dummy/bin/rake
286
+ - spec/dummy/bin/setup
287
+ - spec/dummy/config.ru
288
+ - spec/dummy/config/application.rb
289
+ - spec/dummy/config/boot.rb
290
+ - spec/dummy/config/database.yml
291
+ - spec/dummy/config/environment.rb
292
+ - spec/dummy/config/environments/development.rb
293
+ - spec/dummy/config/environments/production.rb
294
+ - spec/dummy/config/environments/test.rb
295
+ - spec/dummy/config/initializers/advanced_connection.rb
296
+ - spec/dummy/config/initializers/assets.rb
297
+ - spec/dummy/config/initializers/backtrace_silencers.rb
298
+ - spec/dummy/config/initializers/cookies_serializer.rb
299
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
300
+ - spec/dummy/config/initializers/inflections.rb
301
+ - spec/dummy/config/initializers/mime_types.rb
302
+ - spec/dummy/config/initializers/session_store.rb
303
+ - spec/dummy/config/initializers/wrap_parameters.rb
304
+ - spec/dummy/config/locales/en.yml
305
+ - spec/dummy/config/routes.rb
306
+ - spec/dummy/config/secrets.yml
307
+ - spec/dummy/db/migrate/20160222045238_create_books.rb
308
+ - spec/dummy/db/schema.rb
309
+ - spec/dummy/lib/assets/.keep
310
+ - spec/dummy/log/.keep
311
+ - spec/dummy/log/test.log
312
+ - spec/dummy/public/404.html
313
+ - spec/dummy/public/422.html
314
+ - spec/dummy/public/500.html
315
+ - spec/dummy/public/favicon.ico
316
+ - spec/dummy/test/fixtures/books.yml
317
+ - spec/dummy/test/models/book_test.rb
318
+ - spec/idle_manager_spec.rb
319
+ - spec/spec_helper.rb
320
+ - spec/support/db_config.rb
321
+ homepage: https://github.com/finalsite/advanced_connection
322
+ licenses:
323
+ - LGPL
324
+ metadata: {}
325
+ post_install_message:
326
+ rdoc_options: []
327
+ require_paths:
328
+ - lib
329
+ required_ruby_version: !ruby/object:Gem::Requirement
330
+ requirements:
331
+ - - ">="
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
334
+ required_rubygems_version: !ruby/object:Gem::Requirement
335
+ requirements:
336
+ - - ">="
337
+ - !ruby/object:Gem::Version
338
+ version: '0'
339
+ requirements: []
340
+ rubyforge_project:
341
+ rubygems_version: 2.4.3
342
+ signing_key:
343
+ specification_version: 4
344
+ summary: Provides advanced connection options for rails connection pools
345
+ test_files:
346
+ - spec/config/database.yml
347
+ - spec/config/database.yml.erb
348
+ - spec/dummy/.gitignore
349
+ - spec/dummy/README.rdoc
350
+ - spec/dummy/Rakefile
351
+ - spec/dummy/app/assets/images/.keep
352
+ - spec/dummy/app/assets/javascripts/application.js
353
+ - spec/dummy/app/assets/stylesheets/application.css
354
+ - spec/dummy/app/controllers/application_controller.rb
355
+ - spec/dummy/app/controllers/concerns/.keep
356
+ - spec/dummy/app/helpers/application_helper.rb
357
+ - spec/dummy/app/mailers/.keep
358
+ - spec/dummy/app/models/.keep
359
+ - spec/dummy/app/models/book.rb
360
+ - spec/dummy/app/models/concerns/.keep
361
+ - spec/dummy/app/views/layouts/application.html.erb
362
+ - spec/dummy/bin/bundle
363
+ - spec/dummy/bin/rails
364
+ - spec/dummy/bin/rake
365
+ - spec/dummy/bin/setup
366
+ - spec/dummy/config.ru
367
+ - spec/dummy/config/application.rb
368
+ - spec/dummy/config/boot.rb
369
+ - spec/dummy/config/database.yml
370
+ - spec/dummy/config/environment.rb
371
+ - spec/dummy/config/environments/development.rb
372
+ - spec/dummy/config/environments/production.rb
373
+ - spec/dummy/config/environments/test.rb
374
+ - spec/dummy/config/initializers/advanced_connection.rb
375
+ - spec/dummy/config/initializers/assets.rb
376
+ - spec/dummy/config/initializers/backtrace_silencers.rb
377
+ - spec/dummy/config/initializers/cookies_serializer.rb
378
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
379
+ - spec/dummy/config/initializers/inflections.rb
380
+ - spec/dummy/config/initializers/mime_types.rb
381
+ - spec/dummy/config/initializers/session_store.rb
382
+ - spec/dummy/config/initializers/wrap_parameters.rb
383
+ - spec/dummy/config/locales/en.yml
384
+ - spec/dummy/config/routes.rb
385
+ - spec/dummy/config/secrets.yml
386
+ - spec/dummy/db/migrate/20160222045238_create_books.rb
387
+ - spec/dummy/db/schema.rb
388
+ - spec/dummy/lib/assets/.keep
389
+ - spec/dummy/log/.keep
390
+ - spec/dummy/log/test.log
391
+ - spec/dummy/public/404.html
392
+ - spec/dummy/public/422.html
393
+ - spec/dummy/public/500.html
394
+ - spec/dummy/public/favicon.ico
395
+ - spec/dummy/test/fixtures/books.yml
396
+ - spec/dummy/test/models/book_test.rb
397
+ - spec/idle_manager_spec.rb
398
+ - spec/spec_helper.rb
399
+ - spec/support/db_config.rb