trinidad_postgresql_dbpool_extension 0.1.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -7,6 +7,8 @@ container.
7
7
 
8
8
  * MySql (trinidad_mysql_dbpool_extension)
9
9
  * PostgreSQL (trinidad_postgresql_dbpool_extension)
10
+ * Mssql (trinidad_mssql_dbpool_extension)
11
+ * Oracle (trinidad_oracle_dbpool_extension)
10
12
 
11
13
  == Usage
12
14
 
@@ -37,7 +39,7 @@ http://commons.apache.org/dbcp/configuration.html
37
39
  production:
38
40
  adapter: jdbc
39
41
  jndi: java:/comp/env/jdbc/TestDB
40
- driver: com.mysql.jdbc.Driver
42
+ driver: com.mysql.jdbc.Driver # jdbc driver is mandatory
41
43
 
42
44
  == Note on Patches/Pull Requests
43
45
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.3.1
@@ -8,5 +8,6 @@ module Trinidad
8
8
  def protocol
9
9
  'jdbc:postgresql://'
10
10
  end
11
+ end
11
12
  end
12
13
  end
metadata CHANGED
@@ -1,106 +1,117 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: trinidad_postgresql_dbpool_extension
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 0
9
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - David Calavera
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-04-04 00:00:00 +02:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2012-01-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: trinidad_dbpool
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
15
+ requirement: &70282795164040 !ruby/object:Gem::Requirement
16
+ none: false
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
30
21
  type: :runtime
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
33
- name: rspec
34
22
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- segments:
40
- - 1
41
- - 2
42
- - 9
23
+ version_requirements: *70282795164040
24
+ - !ruby/object:Gem::Dependency
25
+ name: rspec
26
+ requirement: &70282795207640 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
43
31
  version: 1.2.9
44
32
  type: :development
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
33
+ prerelease: false
34
+ version_requirements: *70282795207640
35
+ - !ruby/object:Gem::Dependency
47
36
  name: mocha
37
+ requirement: &70282795205320 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ type: :development
48
44
  prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- segments:
54
- - 0
55
- version: "0"
45
+ version_requirements: *70282795205320
46
+ - !ruby/object:Gem::Dependency
47
+ name: trinidad_dbpool
48
+ requirement: &70282795202340 !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: *70282795202340
57
+ - !ruby/object:Gem::Dependency
58
+ name: rspec
59
+ requirement: &70282795216520 !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: 1.2.9
56
65
  type: :development
57
- version_requirements: *id003
66
+ prerelease: false
67
+ version_requirements: *70282795216520
68
+ - !ruby/object:Gem::Dependency
69
+ name: mocha
70
+ requirement: &70282795213940 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: *70282795213940
58
79
  description: Addon to support PostgreSQL database pools in Trinidad
59
80
  email: calavera@apache.org
60
81
  executables: []
61
-
62
82
  extensions: []
63
-
64
- extra_rdoc_files:
83
+ extra_rdoc_files:
65
84
  - LICENSE
66
85
  - README.rdoc
67
- files:
86
+ files:
68
87
  - LICENSE
69
88
  - README.rdoc
70
89
  - VERSION
71
90
  - lib/trinidad_postgresql_dbpool_extension.rb
72
91
  - lib/trinidad_postgresql_dbpool_extension/postgresql_webapp_extension.rb
73
92
  - trinidad-libs/postgresql-8.4-701.jdbc4.jar
74
- has_rdoc: true
75
93
  homepage: http://github.com/calavera/trinidad-dbpool
76
94
  licenses: []
77
-
78
95
  post_install_message:
79
- rdoc_options:
80
- - --charset=UTF-8
81
- require_paths:
96
+ rdoc_options: []
97
+ require_paths:
82
98
  - lib
83
- required_ruby_version: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- segments:
95
- - 0
96
- version: "0"
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  requirements: []
98
-
99
112
  rubyforge_project:
100
- rubygems_version: 1.3.6
113
+ rubygems_version: 1.8.15
101
114
  signing_key:
102
115
  specification_version: 3
103
116
  summary: Addon to support PostgreSQL database pools in Trinidad
104
- test_files:
105
- - spec/spec_helper.rb
106
- - spec/trinidad_mysql_dbpool_extension_spec.rb
117
+ test_files: []
data/spec/spec_helper.rb DELETED
@@ -1,10 +0,0 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'trinidad-libs'))
4
-
5
- require 'trinidad_mysql_dbpool_extension'
6
- require 'spec'
7
-
8
- Spec::Runner.configure do |config|
9
- config.mock_with :mocha
10
- end
@@ -1,48 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe Trinidad::Extensions::MysqlDbpoolWebAppExtension do
4
- before(:each) do
5
- @options = {
6
- :url => 'jdbc:mysql://localhost:3306/test',
7
- :jndi => 'jdbc/TestDB',
8
- :maxIdle => 300
9
- }
10
- @extension = Trinidad::Extensions::MysqlDbpoolWebAppExtension.new(@options)
11
- @context = Trinidad::Tomcat::StandardContext.new
12
-
13
- @tomcat = mock
14
- resource_context = mock
15
- naming = mock
16
-
17
- naming.stubs(:addResource)
18
- resource_context.stubs(:naming_resources).returns(naming)
19
- resource_context.stubs(:naming_resources=)
20
- @tomcat.stubs(:addContext).returns(resource_context)
21
- end
22
-
23
- it "sets the mysql driver name as a resource property" do
24
- resource = configure_extension
25
- resource.getProperty('driverClassName').should == 'com.mysql.jdbc.Driver'
26
- end
27
-
28
- it "adds the resource to the tomcat standard context" do
29
- configure_extension
30
- @context.naming_resources.find_resource('jdbc/TestDB').should_not be_nil
31
- end
32
-
33
- it "adds properties to the resource" do
34
- resource = configure_extension
35
- resource.getProperty('maxIdle').should == '300'
36
- end
37
-
38
- it "adds the protocol if the url doesn't include it" do
39
- @options[:url] = "localhost:3306/test_protocol"
40
- extension = Trinidad::Extensions::MysqlDbpoolWebAppExtension.new(@options)
41
- resource = extension.configure(@tomcat, @context)
42
- resource.get_property('url').should == "jdbc:mysql://localhost:3306/test_protocol"
43
- end
44
-
45
- def configure_extension
46
- @extension.configure(@tomcat, @context)
47
- end
48
- end