forked from trinidad/trinidad_dbpool_extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
190 lines (171 loc) · 6.45 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
require 'rubygems'
require 'rake'
namespace :dbpool do
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "trinidad_dbpool"
gem.summary = %Q{Addon to support database pools in Trinidad}
gem.description = %Q{Addon to support database pools in Trinidad}
gem.email = "[email protected]"
gem.homepage = "http://github.com/calavera/trinidad-dbpool"
gem.authors = ["David Calavera"]
gem.add_dependency "trinidad_jars"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.files = FileList['lib/trinidad_dbpool.rb', 'lib/trinidad_dbpool/webapp_extension.rb',
'trinidad-libs/tomcat-dbcp.jar',
'LICENSE', 'README.rdoc', 'VERSION']
gem.has_rdoc = false
gem.version = '0.3.0'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
end
namespace :generic_dbpool do
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "trinidad_generic_dbpool_extension"
gem.summary = %Q{Addon to support Generic database pools in Trinidad}
gem.description = %Q{Addon to support Generic database pools in Trinidad}
gem.email = "[email protected]"
gem.homepage = "http://github.com/calavera/trinidad-dbpool"
gem.authors = ["David Calavera"]
gem.add_dependency "trinidad_dbpool"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency 'mocha'
gem.files = FileList['lib/trinidad_generic_dbpool_extension.rb',
'lib/trinidad_generic_dbpool_extension/generic_webapp_extension.rb',
'LICENSE', 'README.rdoc', 'VERSION']
gem.has_rdoc = false
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
end
namespace :mysql_dbpool do
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "trinidad_mysql_dbpool_extension"
gem.summary = %Q{Addon to support MySql database pools in Trinidad}
gem.description = %Q{Addon to support MySql database pools in Trinidad}
gem.email = "[email protected]"
gem.homepage = "http://github.com/calavera/trinidad-dbpool"
gem.authors = ["David Calavera"]
gem.add_dependency "trinidad_dbpool"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency 'mocha'
gem.files = FileList['lib/trinidad_mysql_dbpool_extension.rb',
'lib/trinidad_mysql_dbpool_extension/mysql_webapp_extension.rb',
'trinidad-libs/mysql-connector-java-5.1.12-bin.jar',
'LICENSE', 'README.rdoc', 'VERSION']
gem.has_rdoc = false
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
end
namespace :postgresql_dbpool do
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "trinidad_postgresql_dbpool_extension"
gem.summary = %Q{Addon to support PostgreSQL database pools in Trinidad}
gem.description = %Q{Addon to support PostgreSQL database pools in Trinidad}
gem.email = "[email protected]"
gem.homepage = "http://github.com/calavera/trinidad-dbpool"
gem.authors = ["David Calavera"]
gem.add_dependency "trinidad_dbpool"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency 'mocha'
gem.files = FileList['lib/trinidad_postgresql_dbpool_extension.rb',
'lib/trinidad_postgresql_dbpool_extension/postgresql_webapp_extension.rb',
'trinidad-libs/postgresql-8.4-701.jdbc4.jar',
'LICENSE', 'README.rdoc', 'VERSION']
gem.has_rdoc = false
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
end
namespace :mssql_dbpool do
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "trinidad_mssql_dbpool_extension"
gem.summary = %Q{Addon to support Mssql database pools in Trinidad}
gem.description = %Q{Addon to support Mssql database pools in Trinidad}
gem.email = "[email protected]"
gem.homepage = "http://github.com/calavera/trinidad-dbpool"
gem.authors = ["Brian Tatnall"]
gem.add_dependency "trinidad_dbpool"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency 'mocha'
gem.files = FileList['lib/trinidad_mssql_dbpool_extension.rb',
'lib/trinidad_mssql_dbpool_extension/mssql_webapp_extension.rb',
'trinidad-libs/jtds-1.2.5.jar',
'LICENSE', 'README.rdoc', 'VERSION']
gem.has_rdoc = false
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
end
namespace :oracle_dbpool do
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "trinidad_oracle_dbpool_extension"
gem.summary = %Q{Addon to support Oracle database pools in Trinidad}
gem.description = %Q{Addon to support Oracle database pools in Trinidad}
gem.email = "[email protected]"
gem.homepage = "http://github.com/calavera/trinidad-dbpool"
gem.authors = ["Brian Tatnall"]
gem.add_dependency "trinidad_dbpool"
gem.add_development_dependency "rspec", ">= 1.2.9"
gem.add_development_dependency 'mocha'
gem.files = FileList['lib/trinidad_oracle_dbpool_extension.rb',
'lib/trinidad_oracle_dbpool_extension/oracle_webapp_extension.rb',
'trinidad-libs/ojdbc14.jar',
'LICENSE', 'README.rdoc', 'VERSION']
gem.has_rdoc = false
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
end
{
:build => 'Build all connection pool gems',
:release => 'Release all connection pool gems'
}.each do |t, d|
desc d
task t => ["dbpool:#{t}", "mysql_dbpool:#{t}", "postgresql_dbpool:#{t}", "mssql_dbpool:#{t}", "oracle_dbpool:#{t}", "generic_dbpool:#{t}"]
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_opts = ['--options', 'spec/spec.opts']
spec.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end
task :default => :spec
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "trinidad-dbpool #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end