debian/0000755000000000000000000000000012272174422007171 5ustar debian/patches/0000755000000000000000000000000012272165732010624 5ustar debian/patches/series0000644000000000000000000000007312272164767012050 0ustar 0001-Make-test.rb-exit-with-error-if-an-error-occurs.patch debian/patches/0001-Make-test.rb-exit-with-error-if-an-error-occurs.patch0000644000000000000000000000134712272165731023145 0ustar From: Apollon Oikonomopoulos Date: Thu, 11 Apr 2013 11:22:51 +0300 Subject: Make test.rb exit with error if an error occurs Forwarded: no Last-Update: 2014-01-29 --- test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.rb b/test.rb index 6a2a066..7c2fd47 100644 --- a/test.rb +++ b/test.rb @@ -1,7 +1,10 @@ require 'rpatricia' +$all_tests_ok = true + def my_test condition puts (condition)? "ok!" : "error!" + $all_tests_ok &= condition end puts "test: creating Patricia object" @@ -64,3 +67,5 @@ puts "test: return all nodes in Hash" my_test(t.nodes == {"127.0.0.0/24"=>"", "192.168.1.0/24"=>"", "192.168.2.0/24"=>"", "192.168.3.100/32"=>""}) t.destroy + +abort unless $all_tests_ok debian/rules0000755000000000000000000000070112272164767010262 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-rpatricia.docs0000644000000000000000000000000712272164767013010 0ustar README debian/source/0000755000000000000000000000000012272164767010504 5ustar debian/source/format0000644000000000000000000000001412272164767011712 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000025012272166064011043 0ustar ruby-rpatricia (1.0.1-1) unstable; urgency=low * Initial release (Closes: #705161) -- Apollon Oikonomopoulos Wed, 29 Jan 2014 13:54:54 +0200 debian/ruby-tests.rb0000644000000000000000000000007412272173555011646 0ustar require 'test.rb' Dir['{test}/*.rb'].each { |f| require f } debian/compat0000644000000000000000000000000212272164767010402 0ustar 7 debian/copyright0000644000000000000000000000466612272165526011145 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: rpatricia Source: http://www.goto.info.waseda.ac.jp/~tatsuya/rpatricia/ Files: * Copyright: 2007-2014 Tatsuya Mori 2010-2014 Eric Wong License: LGPL-2.1+ rpatricia is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . rpatricia 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 Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with rpatricia. If not, see . On Debian systems the full text of the GNU Lesser General Public License is available at /usr/share/common-licenses/LGPL-2.1 . Files: ext/rpatricia/patricia.* Copyright: Copyright (c) 1999-2013 The Regents of the University of Michigan ("The Regents") and Merit Network, Inc. License: BSD-2-Clause Files: debian/* Copyright: 2014 Apollon Oikonomopoulos License: BSD-2-Clause License: BSD-2-Clause 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. . 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 HOLDER 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/watch0000644000000000000000000000014712272164767010237 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/rpatricia .*/rpatricia-(.*).tar.gz debian/control0000644000000000000000000000217512272172262010601 0ustar Source: ruby-rpatricia Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Apollon Oikonomopoulos Build-Depends: debhelper (>= 9), gem2deb (>= 0.3.0~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-rpatricia.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-rpatricia.git;a=summary Homepage: http://www.goto.info.waseda.ac.jp/~tatsuya/rpatricia/ XS-Ruby-Versions: all Package: ruby-rpatricia Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: efficient IPv4/IPv6 prefix storage and lookup for Ruby rPatricia provides a Ruby library for efficient IPv4 and IPv6 address/prefix storage and lookups. Internally it uses a Patricia trie (also known as radix tree), a data structure commonly used for routing table lookups and supports prefix insertion/removal and best/exact match lookups. . The trie data structure is implemented in C, making rPatricia fast and featuring a low memory footprint.