debian/0000755000000000000000000000000012155633423007172 5ustar debian/ruby-tests.rb0000644000000000000000000000005512155633423011640 0ustar Dir['test/test_*.rb'].each { |f| require f } debian/ruby-httpclient.manpages0000644000000000000000000000002412155633423014040 0ustar debian/httpclient.1 debian/patches/0000755000000000000000000000000012155633423010621 5ustar debian/patches/series0000644000000000000000000000006012155633423012032 0ustar 0001-Remove-Hash-element-order-dependency.patch debian/patches/0001-Remove-Hash-element-order-dependency.patch0000644000000000000000000000156712155633423021223 0ustar From 5f4a3433dbd8a9d3e7737ec4adb8095d61f1c961 Mon Sep 17 00:00:00 2001 From: Hiroshi Nakamura Date: Wed, 14 Dec 2011 15:41:46 +0900 Subject: [PATCH] Remove Hash element order dependency For 1.8.7 and Rubinius. --- test/helper.rb | 4 +++ test/test_http-access2.rb | 35 ++++++++++++--------- test/test_httpclient.rb | 76 +++++++++++++++++++++++++++------------------ 3 files changed, 70 insertions(+), 45 deletions(-) Index: ruby-httpclient/test/helper.rb =================================================================== --- ruby-httpclient.orig/test/helper.rb 2013-06-10 15:33:15.000000000 -0500 +++ ruby-httpclient/test/helper.rb 2013-06-10 15:33:15.000000000 -0500 @@ -126,4 +126,8 @@ ENV.clear ENV.update(env) end + + def params(str) + HTTP::Message.parse(str).inject({}) { |r, (k, v)| r[k] = v.first; r } + end end debian/source/0000755000000000000000000000000012155633423010472 5ustar debian/source/format0000644000000000000000000000001412155633423011700 0ustar 3.0 (quilt) debian/source/lintian-overrides0000644000000000000000000000050312155633423014051 0ustar ruby-httpclient source: duplicate-short-description libhttp-access2-ruby libhttpclient-ruby libhttpclient-ruby1.8 libhttpclient-ruby1.9.1 libhttp-access2-ruby1.8 ruby-httpclient source: duplicate-long-description libhttp-access2-ruby libhttpclient-ruby libhttpclient-ruby1.8 libhttpclient-ruby1.9.1 libhttp-access2-ruby1.8 debian/compat0000644000000000000000000000000212155633423010370 0ustar 7 debian/httpclient.10000644000000000000000000000356012155633423011436 0ustar .\" Hey, EMACS: -*- nroff -*- .TH rgettext 1 "2013-06-10" .SH NAME httpclient \- Shell command for performing HTTP requests using Ruby httpclient .SH SYNOPSIS .TP httpclient [params] .TP httpclient .SH DESCRIPTION This program is an example/companion to the Ruby httpclient module, but can be used as a complete standalone HTTP client. .PP If invoked with a method and an URI, the specified URI will be requested via the method given from its server. The allowed methods are \fBhead\fP, \fBget\fP, \fBpost\fP, \fBput\fP, \fBdelete\fP, \fBoptions\fP, \fBpropfind\fP, \fBproppatch\fP and \fBtrace\fP. .PP Parameters can be specified as a third parameter and will be delivered accordingly (i.e. appended to the URI after a \fB?\fP sign if the method is \fBget\fP, but as the posted body if the method is \fBpost\fP) .PP Please note that no checks are done as to whether the requested parameters make sense in the context they are specified, they are just sent as-is. .TP $ httpclient get https://www.google.co.jp/ q=ruby .PP If no parameters are specified, an interactive Ruby (\fBirb\fP) session will be opened, binding an HTTPClient object as 'self'. You can then call HTTPClient instance methods like: .TP $ httpclient >> get "https://www.google.co.jp/", :q => :ruby .PP Httpclient will print the `wiredump' of your request (that is, the commands sent to the server via HTTP), then the request's headers, and finally the result. .SH OPTIONS .SH AUTHOR Gunnar Wolf .SH NOTES This manual page was written by Gunnar Wolf for the Debian project, but can be freely used by others. This is free documentation; 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. debian/copyright0000644000000000000000000000740012155633423011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: httpclient Source: https://github.com/nahi/httpclient Files: * Copyright: (C) 2000-2011 NAKAMURA, Hiroshi . License: GPL-2+ or Ruby Files: debian/* Copyright: © 2002-2006 Fumitoshi UKAY © 2009-2012 Ryan Niebur © 2010-2013 Gunnar Wolf © 2011-2012 Antonio Terceiro License: GPL-2+ or Ruby Files: debian/httpclient.1 Copyright: © 2013 Gunnar Wolf License: GPL-2+ License: Ruby This program is copyrighted free software by NAKAMURA, Hiroshi. You can redistribute it and/or modify it under the same terms of Ruby's license; either the dual license version in 2003, or any later version. . Ruby license follows. . Ruby is copyrighted free software by Yukihiro Matsumoto . You can redistribute it and/or modify it under either the terms of the GPL (see COPYING file), or the conditions below: . 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], fnmatch.[ch], glob.c, 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 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. . On Debian systems, a copy of the GNU General Public License v2 can be found in /usr/share/common-licenses/GPL-2 debian/changelog0000644000000000000000000001023012155633423011040 0ustar ruby-httpclient (2.3.3-2) unstable; urgency=low * Dropped transitional packages now that Wheezy is stable * Bump up standards-version 3.9.3→3.9.4 (no changes needed) -- Gunnar Wolf Tue, 11 Jun 2013 09:39:05 -0500 ruby-httpclient (2.3.3-1) unstable; urgency=low * New upstream release * Most of the 0001-Remove-Hash-element-order-dependency incorporated upstream -- Gunnar Wolf Mon, 10 Jun 2013 15:27:34 -0500 ruby-httpclient (2.2.4-2) unstable; urgency=low * debian/patches/0001-Remove-Hash-element-order-dependency.patch: cherry picked from upstream to remove dependency of the tests upon the ordering of hash keys (Closes: #674308) -- Antonio Terceiro Sun, 08 Jul 2012 18:20:13 -0300 ruby-httpclient (2.2.4-1) unstable; urgency=low * New upstream version * Transitional packages should be priority:extra * Standards-version 3.9.2→3.9.3 (no changes) * Corrected debian/copyright to properly comply with DEP5 -- Gunnar Wolf Thu, 08 Mar 2012 17:25:43 -0600 ruby-httpclient (2.2.1-1) unstable; urgency=low * New upstream release. * Migrating to new Ruby policy and gem2deb, taking the opportunity to rename the source package. -- Antonio Terceiro Sun, 28 Aug 2011 12:30:45 -0700 libhttp-access2-ruby (2.1.5.2-2) unstable; urgency=low * Port the package to Ruby 1.9.1 (Closes: #569847) * Added myself as an uploader * Standards-version 3.8.3→3.8.4 (no changes needed) * Replaced ambiguous «<» specifier on conflicts/provides with «<<» as Lintian helpfully suggests (policy 7.1) -- Gunnar Wolf Tue, 16 Feb 2010 16:26:46 -0600 libhttp-access2-ruby (2.1.5.2-1) unstable; urgency=low * adopt package (Closes: #532928) * New upstream release (Closes: #528470) * add watch file * use cdbs * rename binary packages to httpclient, leaving http-access2 transistional packages * add a ruby 1.9 package (Closes: #528469) * remove the patch, I don't think it's needed anymore.. * remove the README.Debian, it's not very useful * improve copyright file * add misc:depends * update section to ruby * Debian Policy 3.8.3 * add Homepage field * add DMUA field -- Ryan Niebur Thu, 03 Sep 2009 01:36:06 -0700 libhttp-access2-ruby (2.0.6-3) unstable; urgency=low * lib/http-access2.rb: apply patches http://dev.ctor.org/http-access2/changeset/128 http://dev.ctor.org/http-access2/changeset/129 closes: Bug#391530 -- Fumitoshi UKAI Mon, 6 Nov 2006 01:26:19 +0900 libhttp-access2-ruby (2.0.6-2) unstable; urgency=low * debian/control: recommends: libopenssl-ruby1.8 closes: Bug#396014 * lib/http-access2.rb: support Proxy authentication. apply patch http://dev.ctor.org/http-access2/ticket/6 closes: Bug#391530 * debian/docs: install README.txt debian/README.Debian: add some references closes: Bug#391843 -- Fumitoshi UKAI Mon, 30 Oct 2006 00:43:22 +0900 libhttp-access2-ruby (2.0.6-1) unstable; urgency=low * New upstream release * stop building ruby1.6 module closes: Bug#366585 * detailed description. closes: Bug#209745 -- Fumitoshi UKAI Fri, 12 May 2006 01:25:37 +0900 libhttp-access2-ruby (2.0.4-1) unstable; urgency=medium * New upstream release * required by ruby1.8's soap4r in sarge. closes: Bug#268732 -- Fumitoshi UKAI Sun, 29 Aug 2004 08:22:05 +0900 libhttp-access2-ruby (0.0.J-2) unstable; urgency=low * copy Ruby's license from ruby source. -- Fumitoshi UKAI Tue, 16 Sep 2003 13:06:13 +0900 libhttp-access2-ruby (0.0.J-1) unstable; urgency=low * New upstream release * build for both ruby1.6 and ruby1.8 -- Fumitoshi UKAI Mon, 8 Sep 2003 02:46:36 +0900 libhttp-access2-ruby (0.0.F-1) unstable; urgency=low * Initial Release. closes: Bug#153897 -- Fumitoshi UKAI Wed, 24 Jul 2002 00:45:22 +0900 libhttp-access2-ruby (0.0.F-0) experimental; urgency=low * Initial Release. -- Fumitoshi UKAI Fri, 12 Jul 2002 13:24:05 +0900 debian/rules0000755000000000000000000000070112155633423010250 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/watch0000644000000000000000000000015112155633423010220 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/httpclient .*/httpclient-(.*).tar.gz debian/ruby-httpclient.examples0000644000000000000000000000001112155633423014057 0ustar sample/* debian/ruby-httpclient.docs0000644000000000000000000000002712155633423013200 0ustar # FIXME: READMEs found debian/control0000644000000000000000000000406512155633423010602 0ustar Source: ruby-httpclient Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Antonio Terceiro , Ryan Niebur , Gunnar Wolf Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.7~) Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-httpclient.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-httpclient.git;a=summary Homepage: http://github.com/nahi/httpclient XS-Ruby-Versions: all Package: ruby-httpclient Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Replaces: libhttp-access2-ruby (<< 2.2.1-1~), libhttpclient-ruby (<< 2.2.1-1~), libhttpclient-ruby1.8 (<< 2.2.1-1~), libhttpclient-ruby1.9.1 (<< 2.2.1-1~), libhttp-access2-ruby1.8 (<< 2.2.1-1~) Breaks: libhttp-access2-ruby (<< 2.2.1-1~), libhttpclient-ruby (<< 2.2.1-1~), libhttpclient-ruby1.8 (<< 2.2.1-1~), libhttpclient-ruby1.9.1 (<< 2.2.1-1~), libhttp-access2-ruby1.8 (<< 2.2.1-1~) Provides: libhttp-access2-ruby, libhttpclient-ruby, libhttpclient-ruby1.8, libhttpclient-ruby1.9.1, libhttp-access2-ruby1.8 Description: HTTP client library for ruby (ruby 1.8 version) httpclient gives something like the functionality of libwww-perl (LWP) in Ruby. . Features: * methods like GET/HEAD/POST/* via HTTP/1.1. * HTTPS(SSL), Cookies, proxy, authentication(Digest, NTLM, Basic), etc. * asynchronous HTTP request, streaming HTTP request. * by contrast with net/http in standard distribution; o Cookies support o MT-safe o streaming POST (POST with File/IO) o Digest auth o Negotiate/NTLM auth for WWW-Authenticate (requires net/htlm module) o NTLM auth for WWW-Authenticate/Proxy-Authenticate (requires win32/sspi module) o extensible with filter interface o you don't have to care HTTP/1.1 persistent connection (httpclient cares instead of you).