debian/0000755000000000000000000000000011633753212007171 5ustar debian/copyright0000644000000000000000000000415411633753212011130 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: Ruby/DBI dbd-odbc Source: http://rubyforge.org/projects/ruby-dbi Files: * Copyright: Copyright (c) 2008 Erik Hollensbe, Christopher Maujean Copyright (c) 2001-2004 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/control0000644000000000000000000000271611633753212010602 0ustar Source: ruby-dbd-odbc 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-odbc Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-dbi, ruby-odbc Replaces: libdbd-odbc-ruby (<< 0.2.5+gem2deb-1~), libdbd-odbc-ruby1.8 (<< 0.2.5+gem2deb-1~) Breaks: libdbd-odbc-ruby (<< 0.2.5+gem2deb-1~), libdbd-odbc-ruby1.8 (<< 0.2.5+gem2deb-1~) Provides: libdbd-odbc-ruby, libdbd-odbc-ruby1.8 Description: Ruby/DBI ODBC driver Ruby/DBI is a database independent interface for accessing databases, similar to Perl's DBI. . This package contains Ruby/DBI driver for ODBC. Package: libdbd-odbc-ruby Section: oldlibs Architecture: all Depends: ${misc:Depends}, ruby-dbd-odbc Description: Transitional package for ruby-dbd-odbc This is a transitional package to ease upgrades to the ruby-dbd-odbc package. It can safely be removed. Package: libdbd-odbc-ruby1.8 Section: oldlibs Architecture: all Depends: ${misc:Depends}, ruby-dbd-odbc Description: Transitional package for ruby-dbd-odbc This is a transitional package to ease upgrades to the ruby-dbd-odbc package. It can safely be removed. debian/compat0000644000000000000000000000000211633753212010367 0ustar 7 debian/watch0000644000000000000000000000011611633753212010220 0ustar version=3 http://rubyforge.org/frs/?group_id=234 .*/dbd-odbc-([\d\.]*).tar.gz debian/patches/0000755000000000000000000000000011633753212010620 5ustar debian/patches/0001-remove-usage-of-rubygems.patch0000644000000000000000000000242511633753212017056 0ustar From: Dmitry Borodaenko Date: Wed, 14 Sep 2011 01:17:04 +0300 Subject: remove usage of rubygems --- lib/dbd/ODBC.rb | 6 ------ test/ts_dbd.rb | 10 +--------- 2 files changed, 1 insertions(+), 15 deletions(-) diff --git a/lib/dbd/ODBC.rb b/lib/dbd/ODBC.rb index 2661bf4..c351175 100644 --- a/lib/dbd/ODBC.rb +++ b/lib/dbd/ODBC.rb @@ -34,12 +34,6 @@ $:.delete(".") # FIXME oh for the love of pete.. require "odbc" $: << "." -begin - require 'rubygems' - gem 'dbi' -rescue LoadError => e -end - require 'dbi' module DBI 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/series0000644000000000000000000000004411633753212012033 0ustar 0001-remove-usage-of-rubygems.patch debian/rules0000755000000000000000000000070111633753212010247 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.yaml0000644000000000000000000000001011633753212013102 0ustar --- [] debian/changelog0000644000000000000000000000216711633753212011051 0ustar ruby-dbd-odbc (0.2.5+gem2deb-1) unstable; urgency=low * Switch to gem2deb-based packaging: - source and binary packages renamed to ruby-dbd-odbc - transitional packages added - source format changed to 3.0 (quilt). -- Dmitry Borodaenko Wed, 14 Sep 2011 01:01:10 +0300 libdbd-odbc-ruby (0.2.5-1) unstable; urgency=low * New upstream release: - experimental support for ODBC timeouts. * Standards-Version upgraded to 3.8.2: - section changed from interpreters to ruby. * Debhelper compat level upgraded to 5. -- Dmitry Borodaenko Wed, 29 Jul 2009 11:20:00 +0300 libdbd-odbc-ruby (0.2.4-2) unstable; urgency=low * Upload to unstable. -- Dmitry Borodaenko Sat, 21 Feb 2009 12:44:40 +0200 libdbd-odbc-ruby (0.2.4-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). * Prepare to build versions for Ruby 1.8 and 1.9 (depends on #507695). -- Dmitry Borodaenko Wed, 03 Dec 2008 21:50:21 +0200 debian/source/0000755000000000000000000000000011633753212010471 5ustar debian/source/format0000644000000000000000000000001411633753212011677 0ustar 3.0 (quilt)