trinidad_generic_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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/History.txt +8 -0
  3. data/README.md +18 -14
  4. metadata +7 -49
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f082c4f454960ed258f3032338fde1bf15a8f99f
4
+ data.tar.gz: 7be340e7ff7f874c91ecce636cdcfc5ad9387c69
5
+ SHA512:
6
+ metadata.gz: 904ca906251fa348e7fe47ae31f0f76e5c1d9bab0e3ef5ab9c6ac06f3129c08dc383c4f4f649be28ac66d24881e7383d07c53246d0060e8d52f55dc7a4cc76b6
7
+ data.tar.gz: 1a1a8582b7c2d0f03126c9d1b0458523d6e12942f06f65d2b0f44208211d49e2051e4b5b336e3bf80cbc393d9fc8832beb9d0bd33a30731de96eaca6226a8f71
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: # EXTENSION NAME AS KEY
33
- jndi: 'jdbc/TestDB' # name (linked with database.yml)
34
- url: 'localhost:3306/javatest' # database URL (or full jdbc: URL)
35
- username: 'root' # database username
36
- password: 'root' # database password
37
- maxActive: 100 # max nodes actives
38
- maxIdle: 30 # max nodes idles
39
- maxWait: 10000 # max nodes waiting
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 "datasource" how-to:
44
+ configuration options might be found here in Tomcat's JDBC pool documentation :
45
45
 
46
- http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html
46
+ http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html#Common_Attributes
47
47
 
48
- http://commons.apache.org/dbcp/configuration.html
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: jdbc # it will detect the adapter spec e.g. `ArJdbc::MySQL`
64
- jndi: java:/comp/env/jdbc/TestDB
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,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinidad_generic_dbpool_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 0.7.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Patrick Cheng
@@ -10,7 +9,7 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-06-28 00:00:00.000000000 Z
12
+ date: 2013-12-11 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: trinidad_dbpool
@@ -18,48 +17,14 @@ dependencies:
18
17
  requirements:
19
18
  - - '>='
20
19
  - !ruby/object:Gem::Version
21
- version: 0.5.0
22
- none: false
20
+ version: 0.7.0
23
21
  requirement: !ruby/object:Gem::Requirement
24
22
  requirements:
25
23
  - - '>='
26
24
  - !ruby/object:Gem::Version
27
- version: 0.5.0
28
- none: false
25
+ version: 0.7.0
29
26
  prerelease: false
30
27
  type: :runtime
31
- - !ruby/object:Gem::Dependency
32
- name: rspec
33
- version_requirements: !ruby/object:Gem::Requirement
34
- requirements:
35
- - - '>='
36
- - !ruby/object:Gem::Version
37
- version: '2.10'
38
- none: false
39
- requirement: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: '2.10'
44
- none: false
45
- prerelease: false
46
- type: :development
47
- - !ruby/object:Gem::Dependency
48
- name: mocha
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - '>='
52
- - !ruby/object:Gem::Version
53
- version: '0.10'
54
- none: false
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - '>='
58
- - !ruby/object:Gem::Version
59
- version: '0.10'
60
- none: false
61
- prerelease: false
62
- type: :development
63
28
  description: Addon to support generic database pools in Trinidad
64
29
  email:
65
30
  - patrickyccheng@gmail.com
@@ -78,6 +43,7 @@ files:
78
43
  - LICENSE
79
44
  homepage: http://github.com/trinidad/trinidad_dbpool_extension
80
45
  licenses: []
46
+ metadata: {}
81
47
  post_install_message:
82
48
  rdoc_options: []
83
49
  require_paths:
@@ -86,24 +52,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
52
  requirements:
87
53
  - - '>='
88
54
  - !ruby/object:Gem::Version
89
- segments:
90
- - 0
91
55
  version: '0'
92
- hash: 2
93
- none: false
94
56
  required_rubygems_version: !ruby/object:Gem::Requirement
95
57
  requirements:
96
58
  - - '>='
97
59
  - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
60
  version: '0'
101
- hash: 2
102
- none: false
103
61
  requirements: []
104
62
  rubyforge_project:
105
- rubygems_version: 1.8.24
63
+ rubygems_version: 2.1.9
106
64
  signing_key:
107
- specification_version: 3
65
+ specification_version: 4
108
66
  summary: Addon to support generic database pools in Trinidad
109
67
  test_files: []