debian/0000755000000000000000000000000012260545153007171 5ustar debian/ruby-hiredis.examples0000644000000000000000000000001312153113200013312 0ustar examples/* debian/copyright0000644000000000000000000000337012153113200011110 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: hiredis-rb Source: http://github.com/pietern/hiredis-rb Files: * Copyright: 2010-2012, Pieter Noordhuis License: BSD-3-clause Files: debian/* Copyright: 2013 Apollon Oikonomopoulos License: BSD-3-clause 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. . * Neither the name of Redis nor the names of its contributors may 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. debian/rules0000755000000000000000000000102012153113200010223 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 override_dh_auto_install: dh_auto_install dh_installchangelogs CHANGELOG.md debian/source/0000755000000000000000000000000012153113200010452 5ustar debian/source/format0000644000000000000000000000001412153113200011660 0ustar 3.0 (quilt) debian/control0000644000000000000000000000224112260545110010564 0ustar Source: ruby-hiredis Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Apollon Oikonomopoulos Build-Depends: debhelper (>= 9), gem2deb (>= 0.6.0~), libhiredis-dev (>= 0.11.0), netcat-openbsd Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/git/pkg-ruby-extras/ruby-hiredis.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-hiredis.git;a=summary Homepage: http://github.com/pietern/hiredis-rb XS-Ruby-Versions: all Package: ruby-hiredis Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Suggests: redis-server Description: Redis driver for Ruby using Hiredis ruby-hiredis provides a Ruby extension that wraps Hiredis. Both the synchronous connection API and a separate protocol reader are supported. It is primarily intended to speed up parsing multi bulk replies. . Hiredis is a minimalistic C client library for the Redis database, a persistent key-value database with support for atomically manipulating and querying data structures such as lists and sets. debian/ruby-tests.rb0000644000000000000000000000005312153113200011616 0ustar Dir['test/**/*.rb'].each { |f| require f } debian/watch0000644000000000000000000000011412153113200010177 0ustar version=3 https://github.com/pietern/hiredis-rb/tags .*/v(\d[\d\.]+).tar.gz debian/changelog0000644000000000000000000000073412260545137011051 0ustar ruby-hiredis (0.4.5-2) unstable; urgency=medium * Team upload. * Bump Standards-Version to 3.9.5 (no changes) * Update Build-Depends for ruby2.0, drop ruby1.8 * Add patch for ruby 1.9/2.0 compatibility, only touches tests -- Christian Hofstaedtler Tue, 31 Dec 2013 14:44:48 +0100 ruby-hiredis (0.4.5-1) unstable; urgency=low * Initial release (Closes: #705047) -- Apollon Oikonomopoulos Tue, 09 Apr 2013 16:38:35 +0300 debian/compat0000644000000000000000000000000212153113200010350 0ustar 9 debian/ruby-hiredis.docs0000644000000000000000000000001212153113200012423 0ustar README.md debian/patches/0000755000000000000000000000000012260544773010627 5ustar debian/patches/use_system_libhiredis.patch0000644000000000000000000000161512153113200016223 0ustar Description: Use system libhiredis Use Debian's libhiredis version instead of downloading one and statically linking against it. Author: Apollon Oikonomopoulos Last-Update: 2013-04-10 Forwarded: no --- a/ext/hiredis_ext/extconf.rb +++ b/ext/hiredis_ext/extconf.rb @@ -2,16 +2,9 @@ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] -hiredis_dir = File.expand_path(File.join(File.dirname(__FILE__), %w{.. .. vendor hiredis})) -unless File.directory?(hiredis_dir) - STDERR.puts "vendor/hiredis missing, please checkout its submodule..." - exit 1 -end +hiredis_dir = "/usr/include/hiredis" -# Make sure hiredis is built... -system("cd #{hiredis_dir} && make static") - -# Statically link to hiredis (mkmf can't do this for us) $CFLAGS << " -I#{hiredis_dir}" -$LDFLAGS << " #{hiredis_dir}/libhiredis.a" +$LDFLAGS << " -lhiredis" + create_makefile('hiredis/ext/hiredis_ext') debian/patches/ruby19.patch0000644000000000000000000000076212260544770013005 0ustar Index: ruby-hiredis/test/connection_test.rb =================================================================== --- ruby-hiredis.orig/test/connection_test.rb 2013-12-31 14:41:33.000000000 +0100 +++ ruby-hiredis/test/connection_test.rb 2013-12-31 14:43:18.398964667 +0100 @@ -35,7 +35,7 @@ module ConnectionTests end def test_connect_wrong_host - assert_raise RuntimeError, /can't resolve/i do + assert_raise RuntimeError do hiredis.connect("nonexisting", 6379) end end debian/patches/series0000644000000000000000000000005112260544532012031 0ustar use_system_libhiredis.patch ruby19.patch