debian/0000755000000000000000000000000012313037463007170 5ustar debian/watch0000644000000000000000000000013112133040026010201 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ox .*/ox-(.*).tar.gz debian/rules0000755000000000000000000000070112133040026010233 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-ox.docs0000644000000000000000000000001212133040026011425 0ustar README.md debian/copyright0000644000000000000000000000501212133040026011106 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Ox Upstream-Contact: Peter Ohler Source: https://github.com/ohler55/ox Files: * Copyright: 2011, Peter Ohler 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 Peter Ohler 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 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 Files: debian/* Copyright: 2013, Paul van Tilburg 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/source/0000755000000000000000000000000012133040026010455 5ustar debian/source/format0000644000000000000000000000001412133040026011663 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012313037432010613 5ustar debian/patches/001-fix-cache-allocation.patch0000644000000000000000000000206312313037432016105 0ustar Description: Fix cache allocation bug Author: Peter Ohler Origin: backport, https://github.com/ohler55/ox/commit/5d6cdcc1f68f5ab0512575df4e6bb5c7b895255d Bug-Debian: https://bugs.debian.org/715190 Forwarded: not-needed Last-Update: 2014-03-21 Index: b/ext/ox/cache.c =================================================================== --- a/ext/ox/cache.c +++ b/ext/ox/cache.c @@ -50,7 +50,7 @@ static char* form_key(const char *s) { size_t len = strlen(s); - char *d = ALLOC_N(char, len); + char *d = ALLOC_N(char, len + 2); *d = (255 <= len) ? 255 : len; memcpy(d + 1, s, len + 1); Index: b/ext/ox/cache_test.c =================================================================== --- a/ext/ox/cache_test.c +++ b/ext/ox/cache_test.c @@ -31,6 +31,7 @@ #include "cache.h" static const char *data[] = { +#if 1 "one", "two", "one", @@ -38,6 +39,14 @@ "oney", "one", "tw", + "onexyzabcdefgh", +#else + "abc", + "abcd", + "ab", + "a", + "abcdefghijklmnop", +#endif 0 }; debian/patches/series0000644000000000000000000000007212313037104012023 0ustar 000-fix-so-load-path.patch 001-fix-cache-allocation.patch debian/patches/000-fix-so-load-path.patch0000644000000000000000000000065212133040026015201 0ustar Description: fix the load path of the extension The require of the extension in the Ruby library assumes it is in stalled as a gem and hence loads 'ox/ox', but it should just load the installed 'ox.so'. Author: Paul van Tilburg Last-Update: 2012-02-22 --- a/lib/ox.rb +++ b/lib/ox.rb @@ -99,4 +99,4 @@ require 'ox/bag' require 'ox/sax' -require 'ox/ox' # C extension +require 'ox.so' # C extension debian/compat0000644000000000000000000000000212133040026010353 0ustar 7 debian/control0000644000000000000000000000232112313037461010567 0ustar Source: ruby-ox Section: ruby Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Ruby Extras Maintainers Uploaders: Paul van Tilburg Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.0~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-ox.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-ox.git;a=summary Homepage: http://www.ohler.com/ox XS-Ruby-Versions: all Package: ruby-ox Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: fast XML parser and object serializer Optimized XML (Ox), as the name implies, was written to provide speed optimized XML handling. It was designed to be an alternative to Nokogiri and other Ruby XML parsers for generic XML parsing and as an alternative to Marshal for Object serialization. . Ox handles XML documents in three ways: it is a generic XML parser and writer, a fast Object / XML marshaller, and a stream SAX parser. The library is implemented in C for speed and has a lean, simple Ruby API. debian/changelog0000644000000000000000000000125712313037462011046 0ustar ruby-ox (1.8.9-2ubuntu1) trusty; urgency=medium * Backport cache allocation fix from upstream (closes: #715190). -- Colin Watson Fri, 21 Mar 2014 13:31:30 +0000 ruby-ox (1.8.9-2) unstable; urgency=medium * Team upload. [ Cédric Boutillier ] * use canonical URI in Vcs-* fields [ Christian Hofstaedtler ] * Update Build-Depends for ruby2.0, drop ruby1.8 support * Bump Standards-Version to 3.9.5 (no changes) -- Christian Hofstaedtler Mon, 23 Dec 2013 21:41:40 +0100 ruby-ox (1.8.9-1) unstable; urgency=low * Initial release (Closes: #701074) -- Paul van Tilburg Fri, 22 Feb 2013 11:17:47 +0100