debian/0000755000000000000000000000000011633744346007201 5ustar debian/copyright0000644000000000000000000000417611633744346011144 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: Ruby/DBI dbd-pg Source: http://rubyforge.org/projects/ruby-dbi Files: * Copyright: Copyright (c) 2008 Erik Hollensbe, Christopher Maujean Copyright (c) 2001, 2002, 2003 Jim Weirich, Michael Neumann License: BSD-3-clause All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2002-2011, Dmitry Borodaenko License: GPL-2+ The files hereby included are free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000345511633744346010613 0ustar Source: ruby-dbd-pg Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Dmitry Borodaenko DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.8~) Standards-Version: 3.9.2 Homepage: http://www.rubyforge.org/projects/ruby-dbi XS-Ruby-Versions: all Package: ruby-dbd-pg Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-dbi, ruby-pg Replaces: libdbd-pg-ruby (<< 0.3.9+gem2deb-1~), libdbd-pg-ruby1.8 (<< 0.3.9+gem2deb-1~), libdbd-pg-ruby1.9.1 (<< 0.3.9+gem2deb-1~) Breaks: libdbd-pg-ruby (<< 0.3.9+gem2deb-1~), libdbd-pg-ruby1.8 (<< 0.3.9+gem2deb-1~), libdbd-pg-ruby1.9.1 (<< 0.3.9+gem2deb-1~) Provides: libdbd-pg-ruby, libdbd-pg-ruby1.8, libdbd-pg-ruby1.9.1 Description: Ruby/DBI PostgreSQL driver Ruby/DBI is a database independent interface for accessing databases, similar to Perl's DBI. . This package contains Ruby/DBI driver for PostgreSQL database. Package: libdbd-pg-ruby Section: oldlibs Architecture: all Depends: ${misc:Depends}, ruby-dbd-pg Description: Transitional package for ruby-dbd-pg This is a transitional package to ease upgrades to the ruby-dbd-pg package. It can safely be removed. Package: libdbd-pg-ruby1.8 Section: oldlibs Architecture: all Depends: ${misc:Depends}, ruby-dbd-pg Description: Transitional package for ruby-dbd-pg This is a transitional package to ease upgrades to the ruby-dbd-pg package. It can safely be removed. Package: libdbd-pg-ruby1.9.1 Section: oldlibs Architecture: all Depends: ${misc:Depends}, ruby-dbd-pg Description: Transitional package for ruby-dbd-pg This is a transitional package to ease upgrades to the ruby-dbd-pg package. It can safely be removed. debian/compat0000644000000000000000000000000211633744346010377 0ustar 7 debian/watch0000644000000000000000000000011411633744346010226 0ustar version=3 http://rubyforge.org/frs/?group_id=234 .*/dbd-pg-([\d\.]*).tar.gz debian/patches/0000755000000000000000000000000011633744346010630 5ustar debian/patches/0001-remove-usage-of-rubygems.patch0000644000000000000000000000324511633744346017067 0ustar From: Dmitry Borodaenko 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 { }) -- debian/patches/series0000644000000000000000000000004411633744346012043 0ustar 0001-remove-usage-of-rubygems.patch debian/rules0000755000000000000000000000070111633744346010257 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/ruby-test-files.yaml0000644000000000000000000000000711633744346013120 0ustar --- [] debian/changelog0000644000000000000000000000465211633744346011062 0ustar ruby-dbd-pg (0.3.9+gem2deb-1) unstable; urgency=low * Switch to gem2deb-based packaging: - source and binary packages renamed to ruby-dbd-pg - transitional packages added - source format changed to 3.0 (quilt). -- Dmitry Borodaenko Tue, 13 Sep 2011 19:33:51 +0300 libdbd-pg-ruby (0.3.9-1) unstable; urgency=low * New upstream release. -- Dmitry Borodaenko Sat, 13 Mar 2010 15:41:24 +0200 libdbd-pg-ruby (0.3.8-3) unstable; urgency=low * Switch from Ruby 1.9 to 1.9.1. Closes: #569851. * Standards-Version upgraded to 3.8.4. -- Dmitry Borodaenko Sun, 28 Feb 2010 14:28:05 +0200 libdbd-pg-ruby (0.3.8-2) unstable; urgency=low * include_date_in_time_conversion.patch wasn't really included upstream, so it's back, along with quilt. -- Dmitry Borodaenko Sat, 08 Aug 2009 00:25:30 +0300 libdbd-pg-ruby (0.3.8-1) unstable; urgency=low * New upstream release: - drop include_date_in_time_conversion.patch, included upstream. * Quilt build-dependency is out again. * Bumped Standards-Version to 3.8.2: - section changed from interpreters to ruby. -- Dmitry Borodaenko Wed, 29 Jul 2009 11:25:31 +0300 libdbd-pg-ruby (0.3.7-3) unstable; urgency=low * include_date_in_time_conversion.patch: fixes conversion of Time objects to TIMESTAMP PostgreSQL type (RubyForge bug #24398). * Quilt build-dependency is back. * Bumped debhelper compat (and build-dependency) version to 5. * Bumped Standards-Version to 3.8.1. -- Dmitry Borodaenko Sun, 15 Mar 2009 15:26:25 +0200 libdbd-pg-ruby (0.3.7-2) unstable; urgency=low * Upload to unstable. -- Dmitry Borodaenko Sat, 21 Feb 2009 12:50:12 +0200 libdbd-pg-ruby (0.3.7-1) experimental; urgency=low * New upstream release. * load_type_map.patch patch incorporated upstream, quilt no longed necessary. -- Dmitry Borodaenko Wed, 14 Jan 2009 12:39:11 +0200 libdbd-pg-ruby (0.3.6-1) experimental; urgency=low * First release of libdbd-mysql-ruby as a separate package (prior to Ruby/DBI 0.4.0, all DBDs were included in the libdbi-ruby package). * Build versions for Ruby 1.8 and 1.9. * load_type_map.patch: get rid of a warning in pg/database.rb. * Use quilt for patch management. -- Dmitry Borodaenko Wed, 03 Dec 2008 21:20:14 +0200 debian/source/0000755000000000000000000000000011633744346010501 5ustar debian/source/format0000644000000000000000000000001411633744346011707 0ustar 3.0 (quilt)