trinidad_sqlite_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 -51
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c2c714e520d0178b0691bb3046a8fa7014e1935a
4
+ data.tar.gz: fc489f3e6435bf25455254b8da044dfcdacc77f1
5
+ SHA512:
6
+ metadata.gz: 97b2fc402c9f4e9004601e409f67561ddffb8244ad5333fad23d860b7b986f0d0f81cc42eee194e1002f7333ab0ba1d6ff28474ab6da1140d29d2817f1542e35
7
+ data.tar.gz: cd63b8a1fee235bfe92a7614ab7c0a248607aa8faf3365e3dd6c5111bb3b4a86173c527e833741016cd83e213f00f04dd4f4d0cd36e3b4f8e1b264cab49b23fe
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,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinidad_sqlite_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
  - Karol Bucek
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-28 00:00:00.000000000 Z
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.5.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.5.0
27
- none: false
24
+ version: 0.7.0
28
25
  prerelease: false
29
26
  type: :runtime
30
27
  - !ruby/object:Gem::Dependency
@@ -34,47 +31,13 @@ dependencies:
34
31
  - - '>='
35
32
  - !ruby/object:Gem::Version
36
33
  version: 3.7.2
37
- none: false
38
34
  requirement: !ruby/object:Gem::Requirement
39
35
  requirements:
40
36
  - - '>='
41
37
  - !ruby/object:Gem::Version
42
38
  version: 3.7.2
43
- none: false
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 Sqlite database pools in Trinidad
79
42
  email: self@kares.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.8.24
74
+ rubygems_version: 2.1.9
119
75
  signing_key:
120
- specification_version: 3
76
+ specification_version: 4
121
77
  summary: Addon to support Sqlite database pools in Trinidad
122
78
  test_files: []