trinidad_mysql_dbpool_extension 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/History.txt +8 -0
- data/README.md +18 -14
- metadata +9 -53
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: aa10f900cde689f9ed963942fc629a07c0775d32
|
4
|
+
data.tar.gz: 0c23a078821a2ff5cc1566ee5cb29d82bc64a19a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8df2e5510eb76690e8135ddffd973f1f7e0246898d92a44c33af7c4bfbff0afa15a77b42a2cea4a280fcf724c15e614f95d7d73b1851fa6da19664a3cb42fc25
|
7
|
+
data.tar.gz: f3af603dc09b9a99b9fc6972c5e4f78ec6c0dfd05aa3f5d89c70d46d0d7be087b4da5778cdfb29019b884e6eaab27ea79f0b4d8b87627f6cb83b8c89751d4a79
|
data/History.txt
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== 0.7.0 (2013-12-11)
|
2
|
+
|
3
|
+
**NOTE:** tomcat-dbcp.jar contains patched Commons-DBCP pool implementation !
|
4
|
+
We're now switching to tomcat-jdbc.jar (which we kind of assumed we're using).
|
5
|
+
|
6
|
+
* packaged in tomcat-jdbc.jar (from 7.0.47) bundle version 1.1.0.1
|
7
|
+
* updated tomcat-dbcp.jar (keeping it for a while for compatibility)
|
8
|
+
|
1
9
|
== 0.5.0 (2013-06-28)
|
2
10
|
|
3
11
|
* updated tomcat-dbcp.jar to 7.0.41 ... due recent fixes in 7.0.39 / 7.0.40 :
|
data/README.md
CHANGED
@@ -29,23 +29,27 @@ http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html
|
|
29
29
|
web_apps:
|
30
30
|
default:
|
31
31
|
extensions:
|
32
|
-
mysql_dbpool:
|
33
|
-
jndi: 'jdbc/
|
34
|
-
url: 'localhost:3306/
|
35
|
-
username:
|
36
|
-
password:
|
37
|
-
maxActive:
|
38
|
-
|
39
|
-
maxWait:
|
32
|
+
mysql_dbpool: # EXTENSION NAME AS KEY
|
33
|
+
jndi: 'jdbc/MySampleDB' # name (linked with database.yml)
|
34
|
+
url: 'localhost:3306/sample' # database URL (or full jdbc: URL)
|
35
|
+
username: root
|
36
|
+
password: root
|
37
|
+
maxActive: 100 # maximum number of connections managed by the pool
|
38
|
+
initialSize: 10 # initial number of connections created in the pool
|
39
|
+
maxWait: 10000 # ms the pool waits for a connection to be returned
|
40
40
|
```
|
41
41
|
|
42
42
|
**jndi**, **url** are mandatory (as well **username** and **password** if your
|
43
43
|
database server + driver requires authentication), while other supported
|
44
|
-
configuration options might be found here in Tomcat's
|
44
|
+
configuration options might be found here in Tomcat's JDBC pool documentation :
|
45
45
|
|
46
|
-
http://tomcat.apache.org/tomcat-7.0-doc/
|
46
|
+
http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html#Common_Attributes
|
47
47
|
|
48
|
-
|
48
|
+
**NOTE:** starting version 0.7 we switched to using Tomcat's JDBC pool which
|
49
|
+
is simpler and more performant pool designed specifically for Tomcat/Trinidad.
|
50
|
+
|
51
|
+
If you insist on using [DBCP](http://commons.apache.org/dbcp/configuration.html)
|
52
|
+
set the (deprecated) *pool: dbcp* option along side your pool configuration ...
|
49
53
|
|
50
54
|
If you happen to be using *SQLite* on production you'll need an absolute path :
|
51
55
|
|
@@ -60,11 +64,11 @@ If you happen to be using *SQLite* on production you'll need an absolute path :
|
|
60
64
|
|
61
65
|
```yml
|
62
66
|
production:
|
63
|
-
adapter:
|
64
|
-
jndi: java:/comp/env/jdbc/
|
67
|
+
adapter: mysql
|
68
|
+
jndi: java:/comp/env/jdbc/MySampleDB
|
65
69
|
# (Java) JDBC driver class name is detected for built-in adapters that
|
66
70
|
# activerecord-jdbc-adapter supports, specify for a "generic" adapter
|
67
|
-
#driver: com.mysql.jdbc.Driver
|
71
|
+
# driver: com.mysql.jdbc.Driver
|
68
72
|
```
|
69
73
|
|
70
74
|
do not forget to delete **pool** setup part since there's no need for it ...
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trinidad_mysql_dbpool_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Calavera
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: trinidad_dbpool
|
@@ -17,14 +16,12 @@ dependencies:
|
|
17
16
|
requirements:
|
18
17
|
- - '>='
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
21
|
-
none: false
|
19
|
+
version: 0.7.0
|
22
20
|
requirement: !ruby/object:Gem::Requirement
|
23
21
|
requirements:
|
24
22
|
- - '>='
|
25
23
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
27
|
-
none: false
|
24
|
+
version: 0.7.0
|
28
25
|
prerelease: false
|
29
26
|
type: :runtime
|
30
27
|
- !ruby/object:Gem::Dependency
|
@@ -33,48 +30,14 @@ dependencies:
|
|
33
30
|
requirements:
|
34
31
|
- - '>='
|
35
32
|
- !ruby/object:Gem::Version
|
36
|
-
version: 5.1.
|
37
|
-
none: false
|
33
|
+
version: 5.1.25
|
38
34
|
requirement: !ruby/object:Gem::Requirement
|
39
35
|
requirements:
|
40
36
|
- - '>='
|
41
37
|
- !ruby/object:Gem::Version
|
42
|
-
version: 5.1.
|
43
|
-
none: false
|
38
|
+
version: 5.1.25
|
44
39
|
prerelease: false
|
45
40
|
type: :runtime
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rspec
|
48
|
-
version_requirements: !ruby/object:Gem::Requirement
|
49
|
-
requirements:
|
50
|
-
- - '>='
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '2.10'
|
53
|
-
none: false
|
54
|
-
requirement: !ruby/object:Gem::Requirement
|
55
|
-
requirements:
|
56
|
-
- - '>='
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: '2.10'
|
59
|
-
none: false
|
60
|
-
prerelease: false
|
61
|
-
type: :development
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: mocha
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.10'
|
69
|
-
none: false
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - '>='
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0.10'
|
75
|
-
none: false
|
76
|
-
prerelease: false
|
77
|
-
type: :development
|
78
41
|
description: Addon to support MySQL database pools in Trinidad
|
79
42
|
email: calavera@apache.org
|
80
43
|
executables: []
|
@@ -91,6 +54,7 @@ files:
|
|
91
54
|
- LICENSE
|
92
55
|
homepage: http://github.com/trinidad/trinidad_dbpool_extension
|
93
56
|
licenses: []
|
57
|
+
metadata: {}
|
94
58
|
post_install_message:
|
95
59
|
rdoc_options: []
|
96
60
|
require_paths:
|
@@ -99,24 +63,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
63
|
requirements:
|
100
64
|
- - '>='
|
101
65
|
- !ruby/object:Gem::Version
|
102
|
-
segments:
|
103
|
-
- 0
|
104
66
|
version: '0'
|
105
|
-
hash: 2
|
106
|
-
none: false
|
107
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
68
|
requirements:
|
109
69
|
- - '>='
|
110
70
|
- !ruby/object:Gem::Version
|
111
|
-
segments:
|
112
|
-
- 0
|
113
71
|
version: '0'
|
114
|
-
hash: 2
|
115
|
-
none: false
|
116
72
|
requirements: []
|
117
73
|
rubyforge_project:
|
118
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 2.1.9
|
119
75
|
signing_key:
|
120
|
-
specification_version:
|
76
|
+
specification_version: 4
|
121
77
|
summary: Addon to support MySQL database pools in Trinidad
|
122
78
|
test_files: []
|