trinidad_postgresql_dbpool_extension 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,22 @@
1
+ == 0.3.0 (2011-07-01)
2
+
3
+ * Oracle connection pool extension
4
+ * Mssql connection pool extension
5
+ * Postgresql syntax error fix
6
+ * Add support for multiple pools per db extension
7
+
8
+ == 0.2.0 (2010-07-29)
9
+
10
+ * Update trinidad_dbpool_extension common gem to support Tomcat 7
11
+
12
+ == 0.1.1 (2010-05-05)
13
+
14
+ * Update trinidad_dbpool_extension common gem
15
+ * Remove adding jndi context and resource to the global tomcat context
16
+
17
+ == 0.1.0 (2010-04-04)
18
+
19
+ * First release
20
+ * General connection pool extension
21
+ * Mysql connection pool extension
22
+ * Postgresql connection pool extension
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 David Calavera
1
+ Copyright (c) 2009-2012 David Calavera
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -0,0 +1,68 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ def build(gem)
5
+ mkdir_p 'pkg'
6
+ sh "gem build #{gem}.gemspec"
7
+ mv Dir["#{gem}*.gem"].last, 'pkg'
8
+ end
9
+
10
+ def release(gem, version = nil)
11
+ unless `git branch` =~ /^\* master$/
12
+ raise "must be on master to release !"
13
+ end
14
+
15
+ if version
16
+ unless gem_file = Dir.glob("pkg/#{gem}-#{version}.gem").first
17
+ raise "#{gem}-#{version}.gem not build !"
18
+ end
19
+ else
20
+ unless gem_file = Dir.glob("pkg/#{gem}*").sort.last
21
+ raise "#{gem}*.gem not build !"
22
+ end
23
+ unless match = gem_file.match(/.*?\-(\d\.\d\.\d)\.gem/)
24
+ raise "version number not matched from: #{gem_file}"
25
+ end
26
+ version = match[1]
27
+ end
28
+
29
+ sh "git tag #{gem}-#{version}"
30
+ sh "git push origin master --tags"
31
+ sh "gem push #{gem_file}"
32
+ end
33
+
34
+ all_gems = %W{ dbpool mysql_dbpool_extension postgresql_dbpool_extension mssql_dbpool_extension oracle_dbpool_extension }
35
+ all_gems.map! { |gem| "trinidad_#{gem}" }
36
+ all_gems.each do |gem_name|
37
+ namespace gem_name do
38
+ desc "Build the #{gem_name} gem"
39
+ task :build do
40
+ build(gem_name)
41
+ end
42
+ desc "Release the #{gem_name} gem"
43
+ task :release => :build do
44
+ release(gem_name)
45
+ end
46
+ end
47
+ end
48
+
49
+ {
50
+ :build => 'Build all connection pool gems',
51
+ :release => 'Release all connection pool gems'
52
+ }.each do |t, d|
53
+ desc d
54
+ task t => all_gems.map { |name| "#{name}:#{t}" } # e.g. mysql_dbpool:build
55
+ end
56
+
57
+ desc "Clear out all built .gem files"
58
+ task :clear do
59
+ FileUtils.rm Dir["*.gem"]
60
+ FileUtils.rm_r Dir["pkg/*"] if File.exist?("pkg")
61
+ end
62
+
63
+ require 'rspec/core/rake_task'
64
+ RSpec::Core::RakeTask.new(:spec) do |spec|
65
+ spec.rspec_opts = ['--color', "--format documentation"]
66
+ end
67
+
68
+ task :default => :spec
@@ -1,3 +1,3 @@
1
1
  require 'trinidad_dbpool'
2
- require File.expand_path('../../trinidad-libs/postgresql-8.4-701.jdbc4', __FILE__)
2
+ require File.expand_path('../../trinidad-libs/postgresql-9.1-902.jdbc4', __FILE__)
3
3
  require 'trinidad_postgresql_dbpool_extension/postgresql_webapp_extension'
metadata CHANGED
@@ -1,117 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: trinidad_postgresql_dbpool_extension
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.1
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.4.0
5
6
  platform: ruby
6
- authors:
7
- - David Calavera
7
+ authors:
8
+ - David Calavera
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2012-01-20 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: trinidad_dbpool
15
- requirement: &70282795164040 !ruby/object:Gem::Requirement
16
- none: false
17
- requirements:
18
- - - ! '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :runtime
22
- prerelease: false
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
31
- version: 1.2.9
32
- type: :development
33
- prerelease: false
34
- version_requirements: *70282795207640
35
- - !ruby/object:Gem::Dependency
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
44
- prerelease: false
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
65
- type: :development
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
12
+
13
+ date: 2012-05-31 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: trinidad_dbpool
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.4.0
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "2.10"
35
+ type: :development
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: mocha
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0.10"
46
+ type: :development
47
+ version_requirements: *id003
79
48
  description: Addon to support PostgreSQL database pools in Trinidad
80
49
  email: calavera@apache.org
81
50
  executables: []
51
+
82
52
  extensions: []
83
- extra_rdoc_files:
84
- - LICENSE
85
- - README.rdoc
86
- files:
87
- - LICENSE
88
- - README.rdoc
89
- - VERSION
90
- - lib/trinidad_postgresql_dbpool_extension.rb
91
- - lib/trinidad_postgresql_dbpool_extension/postgresql_webapp_extension.rb
92
- - trinidad-libs/postgresql-8.4-701.jdbc4.jar
93
- homepage: http://github.com/calavera/trinidad-dbpool
53
+
54
+ extra_rdoc_files:
55
+ - LICENSE
56
+ - README.rdoc
57
+ files:
58
+ - lib/trinidad_postgresql_dbpool_extension.rb
59
+ - lib/trinidad_postgresql_dbpool_extension/postgresql_webapp_extension.rb
60
+ - trinidad-libs/postgresql-9.1-902.jdbc4.jar
61
+ - History.txt
62
+ - LICENSE
63
+ - README.rdoc
64
+ - Rakefile
65
+ homepage: http://github.com/trinidad/trinidad_dbpool_extension
94
66
  licenses: []
67
+
95
68
  post_install_message:
96
69
  rdoc_options: []
97
- require_paths:
98
- - lib
99
- required_ruby_version: !ruby/object:Gem::Requirement
70
+
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
100
74
  none: false
101
- requirements:
102
- - - ! '>='
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
80
  none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: "0"
111
85
  requirements: []
86
+
112
87
  rubyforge_project:
113
88
  rubygems_version: 1.8.15
114
89
  signing_key:
115
90
  specification_version: 3
116
91
  summary: Addon to support PostgreSQL database pools in Trinidad
117
92
  test_files: []
93
+
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.3.1