debian/0000755000000000000000000000000012320322463007163 5ustar debian/copyright0000644000000000000000000000262112155551560011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: do_mysql Source: http://github.com/datamapper/do Files: * Copyright: 2007-2011 Yehuda Katz 2007-2011 Dirkjan Bussink License: Expat Files: debian/* Copyright: 2011-2013 Cédric Boutillier License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/changelog0000644000000000000000000000740212320322463011040 0ustar ruby-dataobjects-mysql (0.10.13-1build1) trusty; urgency=medium * No-change upload to drop dependencies on ruby1.8. -- Matthias Klose Sun, 06 Apr 2014 21:03:48 +0200 ruby-dataobjects-mysql (0.10.13-1) unstable; urgency=low * New upstream version * debian/control: + remove obsolete DM-Upload-Allowed flag + use canonical URI in Vcs-* fields + drop transitional packages + bump Standards-Version to 3.9.4 (no changes needed) + update my email address + update version dependency for ruby-dataobjects * debian/copyright: update my email address and years * remove lintian overrides, about transitional packages -- Cédric Boutillier Thu, 06 Jun 2013 23:02:05 +0200 ruby-dataobjects-mysql (0.10.8-4) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Cédric Boutillier Tue, 26 Jun 2012 08:20:09 +0200 ruby-dataobjects-mysql (0.10.8-3) unstable; urgency=low * Build-depend on ruby-dataobjects >= 0.10.8-3~ to ensure that the shared spec using asynchronous operations is deactivated for all arches, as it currently fails on hurd-i386 and kfreebsd-i386 -- Cédric Boutillier Thu, 24 May 2012 00:45:11 +0200 ruby-dataobjects-mysql (0.10.8-2) unstable; urgency=low * Do not build-depend on a particular version of mysql. -- Cédric Boutillier Wed, 09 May 2012 08:17:47 +0200 ruby-dataobjects-mysql (0.10.8-1) unstable; urgency=low * New upstream release * Bump Standards-Version to 3.9.3 (no change needed) * Use official DEP5 copyright format URL * Use ruby-tests.rake to run the tests to circumvent the fact that tests are not run automatically with RSpec >= 2.8.0. -- Cédric Boutillier Sat, 21 Apr 2012 15:29:17 +0200 ruby-dataobjects-mysql (0.10.7-1) unstable; urgency=low * New upstream release * Conversion to gem2deb packaging + rename source and binary packages * Apply 0010_remove_rubygems_from_specs.patch * Apply 0020_remove_loadpath_manipulation_in_specs.patch * Add debian/start_mysqld_and_auto_install.sh to start mysqld before installing and running the test suite * override lintian warning about duplicate description for transitional packages * Add myself as an uploader -- Cédric Boutillier Tue, 25 Oct 2011 23:51:22 +0200 libdataobjects-mysql-ruby (0.10.2-1) unstable; urgency=low * New upstream release. * debian/watch + updated from alioth gemwatch. * debian/control + corrected typo error. + updated depends to libddataobjects-ruby1.9 to 1.9.1. -- Deepak Tripathi Mon, 31 May 2010 22:28:01 +0530 libdataobjects-mysql-ruby (0.10.1-1) unstable; urgency=low * New upstream release. * Bumped standard version * Update debian/copyright * Added debian/source/format * Modified debian/watch for .gem * Ported to ruby1.9.1 * debian/control + added DM-Upload field. + added Homepage and Vcs-* entry + keeping under pkg-ruby-extras group. + taking over from Sebestien. -- Deepak Tripathi Sat, 08 May 2010 01:18:17 +0530 libdataobjects-mysql-ruby (0.9.11-1) unstable; urgency=low * New upstream release (Closes: #542300). * Added debian/watch file. * Conform to latest policy. -- Sebastien Delafond Wed, 19 Aug 2009 11:41:01 +0200 libdataobjects-mysql-ruby (0.2.4-2) unstable; urgency=low * Depend on libdataobjects-ruby. -- Sebastien Delafond Mon, 12 May 2008 15:18:41 -0700 libdataobjects-mysql-ruby (0.2.4-1) unstable; urgency=low * Initial Release. -- Sebastien Delafond Mon, 12 May 2008 14:57:06 -0700 debian/ruby-dataobjects-mysql.docs0000644000000000000000000000002011744534762014452 0ustar README.markdown debian/compat0000644000000000000000000000000211744534762010401 0ustar 7 debian/patches/0000755000000000000000000000000011744534762010632 5ustar debian/patches/0010_remove_rubygems_from_specs.patch0000644000000000000000000000054011744534762017744 0ustar Description: remove requirement on rubygems in spec_helper Author: Cédric Boutillier Last-Update: 2011-10-26 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ $TESTING=true JRUBY = RUBY_PLATFORM =~ /java/ -require 'rubygems' +#require 'rubygems' require 'rspec' require 'date' require 'ostruct' debian/patches/series0000644000000000000000000000012711744534762012047 0ustar 0010_remove_rubygems_from_specs.patch 0020_remove_loadpath_manipulation_in_specs.patch debian/patches/0020_remove_loadpath_manipulation_in_specs.patch0000644000000000000000000000231711744534762022133 0ustar Description: remove $LOAD_PATH manipulation in specs They should use the copy installed in debian/ Author: Cédric Boutillier Last-Update: 2011-11-03 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,15 +9,15 @@ require 'win32console' if RUBY_PLATFORM =~ /mingw|mswin/ driver_lib = File.expand_path('../../lib', __FILE__) -$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib) +#$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib) # Prepend data_objects/do_jdbc in the repository to the load path. # DO NOT USE installed gems, except when running the specs from gem. -repo_root = File.expand_path('../../..', __FILE__) -(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib| - lib_path = "#{repo_root}/#{lib}/lib" - $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path) -end +#repo_root = File.expand_path('../../..', __FILE__) +#(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib| +# lib_path = "#{repo_root}/#{lib}/lib" +# $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path) +#end require 'data_objects' require 'data_objects/spec/setup' debian/control0000644000000000000000000000206012154174301010565 0ustar Source: ruby-dataobjects-mysql Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Deepak Tripathi , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), libmysqlclient-dev, mysql-server, ruby-dataobjects (>= 0.10.13~), ruby-rspec (>= 2.5), rake Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-dataobjects-mysql.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-dataobjects-mysql.git;a=summary Homepage: https://github.com/datamapper/do XS-Ruby-Versions: all Package: ruby-dataobjects-mysql Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-dataobjects (>= 0.10.13~) Description: MySQL adapter for ruby-dataobjects The purpose of DataObjects.rb is to propose a single interface for Ruby to various databases. This package provides the adapter for MySQL to this unified interface. debian/start_mysqld_and_auto_install.sh0000644000000000000000000000233611757264562015673 0ustar #!/bin/sh # # start_mysqld_and_auto_install.sh - starts an instance of mysqld before # auto_installing and running do_mysql's test suite. It is inspired by # debian/test_mysql.sh from libdbi-drivers source package. set -e MYTEMP_DIR=`mktemp -d` ME=`whoami` export MYSQL_UNIX_PORT=${MYTEMP_DIR}/mysql.sock DO_MYSQL_USER=root DO_MYSQL_PASS= DO_MYSQL_DBNAME=do_test DO_MYSQL_DATABASE=/${DO_MYSQL_DBNAME} mysql_install_db --no-defaults --datadir=${MYTEMP_DIR} --force --skip-name-resolve --user=${DO_MYSQL_USER} /usr/sbin/mysqld --no-defaults --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} --datadir=${MYTEMP_DIR} --skip-networking & echo -n pinging mysqld. attempts=0 while ! /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} ping ; do sleep 3 attempts=$((attempts+1)) if [ ${attempts} -gt 10 ] ; then echo "skipping test, mysql server could not be contacted after 30 seconds" exit 0 fi done mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE ${DO_MYSQL_DBNAME};" mysql --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES ON ${DO_MYSQL_DBNAME}.* TO '${DO_MYSQL_USER}'@'localhost' IDENTIFIED BY '${DO_MYSQL_PASS}';" dh_auto_install /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} shutdown rm -rf ${MYTEMP_DIR} debian/rules0000755000000000000000000000132111744534762010260 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 # need to start an mysqld instance to run the tests override_dh_auto_install: chmod +x debian/start_mysqld_and_auto_install.sh debian/start_mysqld_and_auto_install.sh # install upstream changelog override_dh_installchangelogs: dh_installchangelogs ChangeLog.markdown debian/source/0000755000000000000000000000000011744534762010503 5ustar debian/source/format0000644000000000000000000000001411744534762011711 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014511744534762010234 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/do_mysql .*/do_mysql-(.*).tar.gz debian/ruby-tests.rake0000644000000000000000000000022011744535004012150 0ustar require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = './spec/*_spec.rb' end task :default => :spec