From: Dmitry Borodaenko <angdraug@debian.org>
Date: Tue, 13 Sep 2011 23:03:29 +0300
Subject: remove usage of rubygems
---
lib/dbd/Pg.rb | 7 -------
test/dbd/postgresql/test_bytea.rb | 6 ------
test/ts_dbd.rb | 10 +---------
3 files changed, 1 insertions(+), 22 deletions(-)
diff --git a/lib/dbd/Pg.rb b/lib/dbd/Pg.rb
index dba4f67..10fc415 100644
--- a/lib/dbd/Pg.rb
+++ b/lib/dbd/Pg.rb
@@ -29,13 +29,6 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#++
-begin
- require 'rubygems'
- gem 'pg'
- gem 'dbi'
-rescue Exception => e
-end
-
require 'dbi'
require 'pg'
diff --git a/test/dbd/postgresql/test_bytea.rb b/test/dbd/postgresql/test_bytea.rb
index 312caa9..ca9f836 100644
--- a/test/dbd/postgresql/test_bytea.rb
+++ b/test/dbd/postgresql/test_bytea.rb
@@ -1,11 +1,5 @@
require 'dbd/Pg'
-begin
- require 'rubygems'
- gem 'pg'
-rescue Exception => e
-end
-
require 'pg'
LEN = 50
diff --git a/test/ts_dbd.rb b/test/ts_dbd.rb
index fcd301e..29339f3 100644
--- a/test/ts_dbd.rb
+++ b/test/ts_dbd.rb
@@ -1,5 +1,3 @@
-require 'rubygems'
-gem 'test-unit'
# figure out what tests to run
require 'yaml'
require 'test/unit/testsuite'
@@ -96,13 +94,7 @@ if __FILE__ == $0
begin
require 'dbi'
rescue LoadError => e
- begin
- require 'rubygems'
- gem 'dbi'
- require 'dbi'
- rescue LoadError => e
- abort "DBI must already be installed or must come with this package for tests to work."
- end
+ abort "DBI must already be installed or must come with this package for tests to work."
end
Deprecate.set_action(proc { })
--