generic_connection_pool 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -2
- data/Rakefile +2 -2
- data/lib/connection_pool.rb +2 -1
- metadata +7 -7
data/README
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
== DESCRIPTION
|
4
4
|
Always network clients require a connection pool, like database connection, cache connection and others.
|
5
|
-
Generic connection pool can be used with anything. It is
|
6
|
-
Sharing a limited number of network connections among many threads.
|
5
|
+
Generic connection pool can be used with anything. It is extracted from ActiveRecord ConnectionPool,
|
6
|
+
a little changed.Sharing a limited number of network connections among many threads.
|
7
7
|
Connections are created delayed.
|
8
8
|
|
9
9
|
== USEAGE
|
data/Rakefile
CHANGED
@@ -9,13 +9,13 @@ require 'spec/rake/spectask'
|
|
9
9
|
desc 'Default: run test.'
|
10
10
|
task :default => :spec
|
11
11
|
|
12
|
-
desc 'Test the
|
12
|
+
desc 'Test the generic_connection_pool gem.'
|
13
13
|
Spec::Rake::SpecTask.new(:spec) do |t|
|
14
14
|
t.spec_files = FileList['spec/**/*_spec.rb']
|
15
15
|
t.spec_opts = ['-c','-f','nested']
|
16
16
|
end
|
17
17
|
|
18
|
-
desc 'Generate documentation for the
|
18
|
+
desc 'Generate documentation for the generic_connection_pool gem.'
|
19
19
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
20
20
|
rdoc.rdoc_dir = 'rdoc'
|
21
21
|
rdoc.title = 'ConnectionPool'
|
data/lib/connection_pool.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'active_support'
|
2
3
|
require 'active_support/core_ext/module/synchronization'
|
3
4
|
require 'monitor'
|
4
5
|
require 'set'
|
@@ -56,7 +57,7 @@ require 'timeout'
|
|
56
57
|
# Do something in the block, that always create an adapter instance or connect to a server.
|
57
58
|
#
|
58
59
|
class ConnectionPool
|
59
|
-
VERSION = '0.1.
|
60
|
+
VERSION = '0.1.1'
|
60
61
|
|
61
62
|
class ConnectionTimeoutError < ::Timeout::Error
|
62
63
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generic_connection_pool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kame
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-04-06 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
type: :development
|
48
48
|
version_requirements: *id002
|
49
49
|
description: " Always network clients require a connection pool, like database connection, cache connection and others.\n\
|
50
|
-
Generic connection pool can be used with anything. It is
|
50
|
+
Generic connection pool can be used with anything. It is extracted from ActiveRecord ConnectionPool.\n\
|
51
51
|
Sharing a limited number of network connections among many threads.\n\
|
52
52
|
Connections are created delayed.\n"
|
53
53
|
email:
|
@@ -68,7 +68,7 @@ files:
|
|
68
68
|
- Gemfile
|
69
69
|
- LICENSE
|
70
70
|
has_rdoc: true
|
71
|
-
homepage:
|
71
|
+
homepage: https://github.com/kamechb/generic_connection_pool
|
72
72
|
licenses: []
|
73
73
|
|
74
74
|
post_install_message:
|
@@ -100,6 +100,6 @@ rubyforge_project:
|
|
100
100
|
rubygems_version: 1.6.2
|
101
101
|
signing_key:
|
102
102
|
specification_version: 3
|
103
|
-
summary: Always network clients require a connection pool, like database connection, cache connection and others. Generic connection pool can be used with anything. It is
|
103
|
+
summary: Always network clients require a connection pool, like database connection, cache connection and others. Generic connection pool can be used with anything. It is extracted from ActiveRecord ConnectionPool. Sharing a limited number of network connections among many threads. Connections are created delayed.
|
104
104
|
test_files: []
|
105
105
|
|