debian/0000755000000000000000000000000012265615305007173 5ustar debian/rules0000755000000000000000000000142211772244352010254 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 # TODO this should not be needed if the upstream tarball was obtained through # gemwatch (it would already have a metadata.yml file). UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1) export DH_RUBY_GEMSPEC=debian/sqlite3-$(UPSTREAM_VERSION).gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_installdocs: cd faq && ruby faq.rb > faq.html dh_installdocs override_dh_clean: rm -f faq/faq.html dh_clean debian/sqlite3-1.3.6.gemspec0000644000000000000000000000745011772244352012577 0ustar # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = "sqlite3" s.version = "1.3.6" s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version= s.authors = ["Jamis Buck", "Luis Lavena", "Aaron Patterson"] s.date = "2012-04-16" s.description = "This module allows Ruby programs to interface with the SQLite3\ndatabase engine (http://www.sqlite.org). You must have the\nSQLite engine installed in order to build this module.\n\nNote that this module is only compatible with SQLite 3.6.16 or newer." s.email = ["jamis@37signals.com", "luislavena@gmail.com", "aaron@tenderlovemaking.com"] s.extensions = ["ext/sqlite3/extconf.rb"] s.extra_rdoc_files = ["API_CHANGES.rdoc", "CHANGELOG.rdoc", "Manifest.txt", "README.rdoc", "ext/sqlite3/backup.c", "ext/sqlite3/database.c", "ext/sqlite3/exception.c", "ext/sqlite3/sqlite3.c", "ext/sqlite3/statement.c"] s.files = ["API_CHANGES.rdoc", "CHANGELOG.rdoc", "ChangeLog.cvs", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "ext/sqlite3/backup.c", "ext/sqlite3/backup.h", "ext/sqlite3/database.c", "ext/sqlite3/database.h", "ext/sqlite3/exception.c", "ext/sqlite3/exception.h", "ext/sqlite3/extconf.rb", "ext/sqlite3/sqlite3.c", "ext/sqlite3/sqlite3_ruby.h", "ext/sqlite3/statement.c", "ext/sqlite3/statement.h", "faq/faq.rb", "faq/faq.yml", "lib/sqlite3.rb", "lib/sqlite3/constants.rb", "lib/sqlite3/database.rb", "lib/sqlite3/errors.rb", "lib/sqlite3/pragmas.rb", "lib/sqlite3/resultset.rb", "lib/sqlite3/statement.rb", "lib/sqlite3/translator.rb", "lib/sqlite3/value.rb", "lib/sqlite3/version.rb", "setup.rb", "tasks/faq.rake", "tasks/gem.rake", "tasks/native.rake", "tasks/vendor_sqlite3.rake", "test/helper.rb", "test/test_backup.rb", "test/test_collation.rb", "test/test_database.rb", "test/test_database_readonly.rb", "test/test_deprecated.rb", "test/test_encoding.rb", "test/test_integration.rb", "test/test_integration_open_close.rb", "test/test_integration_pending.rb", "test/test_integration_resultset.rb", "test/test_integration_statement.rb", "test/test_sqlite3.rb", "test/test_statement.rb", "test/test_statement_execute.rb", "test/test_result_set.rb", ".gemtest"] s.homepage = "http://github.com/luislavena/sqlite3-ruby" s.rdoc_options = ["--main", "README.rdoc"] s.require_paths = ["lib"] s.required_ruby_version = Gem::Requirement.new(">= 1.8.7") s.rubyforge_project = "sqlite3" s.rubygems_version = "1.8.23" s.summary = "This module allows Ruby programs to interface with the SQLite3 database engine (http://www.sqlite.org)" s.test_files = ["test/test_backup.rb", "test/test_collation.rb", "test/test_database.rb", "test/test_database_readonly.rb", "test/test_deprecated.rb", "test/test_encoding.rb", "test/test_integration.rb", "test/test_integration_open_close.rb", "test/test_integration_pending.rb", "test/test_integration_resultset.rb", "test/test_integration_statement.rb", "test/test_result_set.rb", "test/test_sqlite3.rb", "test/test_statement.rb", "test/test_statement_execute.rb"] if s.respond_to? :specification_version then s.specification_version = 3 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then s.add_development_dependency(%q, ["~> 3.10"]) s.add_development_dependency(%q, ["~> 0.7.0"]) s.add_development_dependency(%q, ["~> 0.2.2"]) s.add_development_dependency(%q, ["~> 3.0"]) else s.add_dependency(%q, ["~> 3.10"]) s.add_dependency(%q, ["~> 0.7.0"]) s.add_dependency(%q, ["~> 0.2.2"]) s.add_dependency(%q, ["~> 3.0"]) end else s.add_dependency(%q, ["~> 3.10"]) s.add_dependency(%q, ["~> 0.7.0"]) s.add_dependency(%q, ["~> 0.2.2"]) s.add_dependency(%q, ["~> 3.0"]) end end debian/ruby-sqlite3.docs0000644000000000000000000000005211635725565012417 0ustar README.rdoc faq/faq.html API_CHANGES.rdoc debian/watch0000644000000000000000000000014312230211334010204 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/sqlite3 .*/sqlite3-(.*).tar.gz debian/source/0000755000000000000000000000000011635725565010505 5ustar debian/source/format0000644000000000000000000000001411635725565011713 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000512712230212336011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: SQLite3/Ruby Source: https://github.com/sparklemotion/sqlite3-ruby Files: * Copyright: Copyright (c) 2004, Jamis Buck (jamis@jamisbuck.org) License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * 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. . * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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: Copyright 2005-2011 Dmitry Borodaenko License: GPL-2+ This program is 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. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . 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/control0000644000000000000000000000161212265615305010576 0ustar Source: ruby-sqlite3 Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Dmitry Borodaenko Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.5.0~), libsqlite3-dev, ruby-hoe, ruby-redcloth, ruby-minitest Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-sqlite3.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-sqlite3.git;a=summary Homepage: https://github.com/sparklemotion/sqlite3-ruby XS-Ruby-Versions: all Package: ruby-sqlite3 Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: SQLite3 interface for Ruby This module allows Ruby programs to interface with the SQLite3 database engine. . Note that this module is NOT compatible with SQLite 2.x. debian/ruby-sqlite3.doc-base0000644000000000000000000000063212230252555013132 0ustar Document: ruby-sqlite3-faq Title: SQLite3/Ruby Frequently Asked Questions Author: Jamis Buck Abstract: This document provides answers to frequently asked questions about the usage of the interface between Ruby and and SQLite3 database engine provided by the ruby-sqlite3 package. Section: Programming/Ruby Format: HTML Index: /usr/share/doc/ruby-sqlite3/faq.html Files: /usr/share/doc/ruby-sqlite3/faq.html debian/patches/0000755000000000000000000000000012265615254010625 5ustar debian/patches/series0000644000000000000000000000005012265615241012031 0ustar fix_test_insert_duplicate_records.patch debian/patches/fix_test_insert_duplicate_records.patch0000644000000000000000000000300712265615254020632 0ustar Description: Fix for new unique constraint message of SQLite 3.8.2 in test SQlite 3.8,2 changed one of the error messages to have a capitalized word. The regexp in the test used to match this message should be updated Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735512 Bug: https://github.com/sparklemotion/sqlite3-ruby/issues/116 Origin: https://github.com/strzibny/sqlite3-ruby/commit/d860ce240fcafad4656014ecc84d3f89a38bc1a8.patch Forwarded: https://github.com/sparklemotion/sqlite3-ruby/pull/117 d860ce240fcafad4656014ecc84d3f89a38bc1a8 Mon Sep 17 00:00:00 2001 Author: Josef Stribny Reviewed-by: Cédric Boutillier Date: Thu, 12 Dec 2013 15:13:22 +0100 --- test/test_statement.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test_statement.rb b/test/test_statement.rb index 8cb3d97..31b4c6b 100644 --- a/test/test_statement.rb +++ b/test/test_statement.rb @@ -30,7 +30,11 @@ def test_insert_duplicate_records stmt.execute('ruby') exception = assert_raises(SQLite3::ConstraintException) { stmt.execute('ruby') } - assert_match /column(s)? .* (is|are) not unique/, exception.message + # SQLite 3.8.2 returns new error message: + # UNIQUE constraint failed: *table_name*.*column_name* + # Older versions of SQLite return: + # column *column_name* is not unique + assert_match /(column(s)? .* (is|are) not unique|UNIQUE constraint failed: .*)/, exception.message end ### -- 1.8.5.1 debian/compat0000644000000000000000000000000211635725565010403 0ustar 7 debian/changelog0000644000000000000000000001255112265615305011051 0ustar ruby-sqlite3 (1.3.8-2) unstable; urgency=medium * Team upload * add fix_test_insert_duplicate_records.patch to match messages modified in libsqlite3 3.8.2 (Closes: #735512) * Bump Standards-Version to 3.9.5 (no changes needed) -- Cédric Boutillier Thu, 16 Jan 2014 00:17:37 +0100 ruby-sqlite3 (1.3.8-1) unstable; urgency=low * Team upload * Imported Upstream version 1.3.8 * 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) + build against against gem2deb >= 0.5 to add support for Ruby 2.0 and drop Ruby 1.8 * debian/copyright: use copyright-format/1.0 official URL for Format * debian/watch: use gemwatch service * Update homepage to point to github.com/sparklemotion/sqlite3-ruby * Register SQLite3/Ruby FAQ in doc-base -- Cédric Boutillier Fri, 18 Oct 2013 13:02:30 +0200 ruby-sqlite3 (1.3.6-2) unstable; urgency=low * Team upload. * Bump build-depends on gem2deb to >= 0.3.0~ * debian/rules: use debian/sqlite3-1.3.6.gemspec as a gemspec -- Antonio Terceiro Sun, 24 Jun 2012 17:54:27 -0300 ruby-sqlite3 (1.3.6-1) unstable; urgency=low * New upstream release. * Standards-Version upgraded to 3.9.3. * Avoid requiring test/helper.rb twice to prevent the included monkey patch of Test::Unit::TestCase from breaking unit tests. -- Dmitry Borodaenko Sat, 21 Apr 2012 15:13:02 +0300 ruby-sqlite3 (1.3.5-1) unstable; urgency=low * New upstream release. * Point Vcs-* control fields at git.debian.org. -- Dmitry Borodaenko Sun, 08 Jan 2012 19:25:09 +0300 ruby-sqlite3 (1.3.4-1) unstable; urgency=low * New upstream release. * Switch to gem2deb-based packaging: - source and binary packages renamed to ruby-sqlite3 - transitional packages added - source format changed to 3.0 (quilt). -- Dmitry Borodaenko Wed, 07 Sep 2011 12:11:28 +0300 sqlite3-ruby (1.3.3-1) unstable; urgency=low * New upstream release - defined functions are kept in a hash to prevent GC (closes: #601494) * Standards-Version upgraded to 3.9.2. * Watch file updated to track github instead of RubyForge. -- Dmitry Borodaenko Sat, 21 May 2011 15:02:27 +0300 sqlite3-ruby (1.3.1-2) unstable; urgency=low * Added missing Build-Depends on redcloth. Closes: #598692. -- Dmitry Borodaenko Fri, 01 Oct 2010 11:12:51 +0300 sqlite3-ruby (1.3.1-1) unstable; urgency=low * New upstream release - DL driver silently dropped by upstream since 1.3.0 - compatibile with Ruby 1.9.2 (closes: #593207) * With DL driver gone, quilt is no longer needed. * debian/watch updated to detect .tgz files. * Changed Section from interpreters to ruby. * Debhelper compat level upgraded to 5. * Standards-Version upgraded to 3.9.1. -- Dmitry Borodaenko Fri, 01 Oct 2010 03:19:02 +0300 sqlite3-ruby (1.2.4-2.1) unstable; urgency=low * Non-maintainer upload. * Switch from Ruby 1.9 to 1.9.1. Closes: #565826. -- Lucas Nussbaum Sat, 13 Feb 2010 10:01:53 +0100 sqlite3-ruby (1.2.4-2) unstable; urgency=low * The included C wrappers were generated by an old buggy SWIG version, regenerate them with current SWIG (Closes: #454533). -- Dmitry Borodaenko Sun, 26 Oct 2008 14:19:34 +0200 sqlite3-ruby (1.2.4-1) unstable; urgency=low * New upstream release: - Fix linking against Ruby 1.8.5 - Ruby 1.9 compatibility tweaks for Array#zip - Avoid using Object#extend for greater speedups - Fix incorrect permissions on database.rb and translator.rb - Package the updated C file for source builds. * Replaced dpatch with quilt. * Build a module for Ruby 1.9 in libsqlite3-ruby1.9. -- Dmitry Borodaenko Tue, 30 Sep 2008 00:39:11 +0300 sqlite3-ruby (1.2.2-1) unstable; urgency=low * New upstream release (Closes: #487937). * dpatch support added. * Make DL driver use libsqlite3.so.0 (Closes: #457296). * Updated to Standards-Version 3.8.0: - Homepage: field added to control file. -- Dmitry Borodaenko Wed, 25 Jun 2008 14:05:45 +0300 sqlite3-ruby (1.2.1-1) unstable; urgency=low * New upstream release (Closes: #418416). * All previous patches included upstream. -- Dmitry Borodaenko Wed, 18 Apr 2007 21:07:38 +0100 sqlite3-ruby (1.1.0-4) unstable; urgency=low * Merge upstream fix for type_conversion of typeless columns. -- Dmitry Borodaenko Tue, 09 Jan 2007 01:50:34 +0000 sqlite3-ruby (1.1.0-3) unstable; urgency=low * Several fixes by Mike Kasick: - avoid warnings in verbose mode (Closes: #405612, #398982) - reset statement handle in Statement#bind_param (Closes: #405614). -- Dmitry Borodaenko Mon, 08 Jan 2007 20:50:52 +0000 sqlite3-ruby (1.1.0-2) unstable; urgency=low * Fix for use of callbacks (upstream patch #2955). Closes: #365711. * Bumped Standards-Version to 3.7.2. -- Dmitry Borodaenko Fri, 5 May 2006 14:01:16 +0300 sqlite3-ruby (1.1.0-1) unstable; urgency=low * Initial release. -- Dmitry Borodaenko Fri, 19 Aug 2005 14:51:14 +0300 debian/ruby-tests.rb0000644000000000000000000000007511750215626011643 0ustar $: << 'test' Dir['test/**/test_*.rb'].each { |f| require f }