debian/0000775000000000000000000000000012245441567007202 5ustar debian/ruby-tests.rake0000664000000000000000000000050412245441567012166 0ustar require 'rake/testtask' require 'rspec/core/rake_task' Rake::TestTask.new(:unittests) do |t| t.test_files = FileList['tests/tc_*.rb'] t.verbose = false end Rake::TestTask.new(:bugtests) do |t| t.test_files = FileList['tests/bug_*.rb'] t.verbose = false end task :default => [:unittests] debian/patches/0000775000000000000000000000000012245441567010631 5ustar debian/patches/series0000664000000000000000000000017412245441567012050 0ustar disable_test_requiring_network.patch remove-local-extension-dir-from-tests-loadpath.patch add-support-for-curl-7.33.0.patch debian/patches/disable_test_requiring_network.patch0000664000000000000000000000104012245441567020145 0ustar Description: disable test requiring network access Author: Cédric Boutillier Bug-Debian: http://bugs.debian.org/710940 Last-Update: 2013-06-04 --- a/tests/tc_curl_easy.rb +++ b/tests/tc_curl_easy.rb @@ -896,7 +896,7 @@ assert_equal 'COPY', curl.body_str end - def test_easy_http_verbs_must_respond_to_str + def est_easy_http_verbs_must_respond_to_str # issue http://github.com/taf2/curb/issues#issue/45 assert_nothing_raised do c = Curl::Easy.new ; c.url = 'http://example.com' ; c.http(:get) debian/patches/remove-local-extension-dir-from-tests-loadpath.patch0000664000000000000000000000142212245441567022717 0ustar Description: Remove local extension dir from tests load path Fix test segfault due to the wrong ruby version extension gets loaded. This is caused because the ext dir contains the last '.so' library builded and makes his way into the test load path Author: David Suárez Bug-Debian: http://bugs.debian.org/720256 Last-Update: 2013-10-19 --- ruby-curb-0.8.5.orig/tests/helper.rb +++ ruby-curb-0.8.5/tests/helper.rb @@ -4,10 +4,10 @@ $CURB_TESTING = true require 'uri' $TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), '..')) -$EXTDIR = File.join($TOPDIR, 'ext') +#$EXTDIR = File.join($TOPDIR, 'ext') $LIBDIR = File.join($TOPDIR, 'lib') $:.unshift($LIBDIR) -$:.unshift($EXTDIR) +#$:.unshift($EXTDIR) require 'curb' require 'test/unit' debian/patches/add-support-for-curl-7.33.0.patch0000664000000000000000000000515012245441567016372 0ustar Description: Add support for curl 7.33.0 Handle the new error code 'CURLM_ADDED_ALREADY'. This fix the test 'test_reusing_handle' that fails because an unexpected exception. Author: David Suárez Forwarded: https://github.com/taf2/curb/pull/169 Last-Update: 2013-10-20 --- a/ext/curb_errors.c +++ b/ext/curb_errors.c @@ -118,6 +118,9 @@ VALUE mCurlErrBadEasyHandle; VALUE mCurlErrOutOfMemory; VALUE mCurlErrInternalError; VALUE mCurlErrBadSocket; +#if HAVE_CURLM_ADDED_ALREADY +VALUE mCurlErrAddedAlready; +#endif VALUE mCurlErrUnknownOption; /* binding errors */ @@ -493,6 +496,11 @@ VALUE rb_curl_multi_error(CURLMcode code exclz = mCurlErrUnknownOption; break; #endif +#if HAVE_CURLM_ADDED_ALREADY + case CURLM_ADDED_ALREADY: /* 7 */ + exclz = mCurlErrAddedAlready; + break; +#endif default: exclz = eCurlErrError; exmsg = "Unknown error result from libcurl"; @@ -625,6 +633,9 @@ void init_curb_errors() { mCurlErrOutOfMemory = rb_define_class_under(mCurlErr, "MultiOutOfMemory", eCurlErrError); mCurlErrInternalError = rb_define_class_under(mCurlErr, "MultiInternalError", eCurlErrError); mCurlErrBadSocket = rb_define_class_under(mCurlErr, "MultiBadSocket", eCurlErrError); +#if HAVE_CURLM_ADDED_ALREADY + mCurlErrAddedAlready = rb_define_class_under(mCurlErr, "MultiAddedAlready", eCurlErrError); +#endif mCurlErrUnknownOption = rb_define_class_under(mCurlErr, "MultiUnknownOption", eCurlErrError); eCurlErrLDAPInvalidURL = rb_define_class_under(mCurlErr, "InvalidLDAPURLError", eCurlErrLDAPError); --- a/ext/curb_errors.h +++ b/ext/curb_errors.h @@ -116,6 +116,9 @@ extern VALUE mCurlErrOutOfMemory; extern VALUE mCurlErrInternalError; extern VALUE mCurlErrBadSocket; extern VALUE mCurlErrUnknownOption; +#if HAVE_CURLM_ADDED_ALREADY +extern VALUE mCurlErrAddedAlready; +#endif /* binding errors */ extern VALUE eCurlErrInvalidPostField; --- a/tests/tc_curl_multi.rb +++ b/tests/tc_curl_multi.rb @@ -466,7 +466,7 @@ class TestCurbCurlMulti < Test::Unit::Te m.add(c) m.add(c) rescue => e - assert_equal Curl::Err::MultiBadEasyHandle, e.class + assert Curl::Err::MultiBadEasyHandle == e.class || Curl::Err::MultiAddedAlready == e.class end def test_multi_default_timeout --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -357,6 +357,8 @@ have_constant "curlopt_gssapi_delegation have_constant "curlgssapi_delegation_policy_flag" have_constant "curlgssapi_delegation_flag" +have_constant "CURLM_ADDED_ALREADY" + if try_compile('int main() { return 0; }','-Wall') $CFLAGS << ' -Wall' end debian/control0000664000000000000000000000174212245441567010611 0ustar Source: ruby-curb Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Praveen Arimbrathodiyil Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.1~), ruby-rspec, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-curb.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-curb.git;a=summary Homepage: http://curb.rubyforge.org/ XS-Ruby-Versions: all Package: ruby-curb Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby libcurl bindings Curb (probably CUrl-RuBy or something) provides Ruby-language bindings for the libcurl(3), a fully-featured client-side URL transfer library. . Curb is a work-in-progress, and currently only supports libcurl's 'easy' and 'multi' modes. debian/source/0000775000000000000000000000000012245441567010502 5ustar debian/source/format0000664000000000000000000000001412245441567011710 0ustar 3.0 (quilt) debian/ruby-curb.docs0000664000000000000000000000000712245441567011763 0ustar README debian/ruby-curb.lintian-overrides0000664000000000000000000000011112245441567014465 0ustar # Upstream does not provide a changelog ruby-curb: no-upstream-changelog debian/rules0000775000000000000000000000064512245441567010267 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 # # 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/compat0000664000000000000000000000000212245441567010400 0ustar 7 debian/changelog0000664000000000000000000000175512245441567011064 0ustar ruby-curb (0.8.5-1build1) trusty; urgency=low * No-change-rebuild against libcurl 7.33.0 -- Andreas Moog Wed, 27 Nov 2013 20:08:57 +0100 ruby-curb (0.8.5-1) unstable; urgency=low * Team upload * New upstream version * Fix test segfault due to the wrong ruby version extension getting loaded (Closes: #720256) * Add support for curl 7.33.0. This fix a test failing due to some api changes in the new curl version -- David Suárez Sun, 20 Oct 2013 11:59:36 +0200 ruby-curb (0.8.3-2) unstable; urgency=low * Team upload * debian/patches: add disable_test_requiring_network.patch to deactivate tests requiring network access (Closes: #710940) * Add unapply-patches to local-options -- Cédric Boutillier Tue, 04 Jun 2013 11:23:26 +0200 ruby-curb (0.8.3-1) unstable; urgency=low * Initial release (Closes: #708427) -- Praveen Arimbrathodiyil Wed, 15 May 2013 23:07:43 +0530 debian/watch0000664000000000000000000000013512245441567010232 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/curb .*/curb-(.*).tar.gz debian/copyright0000664000000000000000000000552712245441567011146 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: curb Source: http://rubygems.org/gems/curb Files: * Copyright: 2006 Ross Bamford (rosco AT roscopeco DOT co DOT uk) License: Ruby's License Files: debian/* Copyright: 2013 Praveen Arimbrathodiyil License: Ruby's License License: Ruby's License Curb is free software licensed under the following terms: . 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. . 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: . a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. . b) use the modified software only within your corporation or organization. . c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided. . d) make other distribution arrangements with the author. . 3. You may distribute the software in object code or executable form, provided that you do at least ONE of the following: . a) distribute the executables and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. . b) accompany the distribution with the machine-readable source of the software. . c) give non-standard executables non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 4. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the author, so that they are not under this terms. . They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some files under the ./missing directory. See each file for the copying condition. . 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. . 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.