debian/0000755000000000000000000000000012262614350007167 5ustar debian/compat0000644000000000000000000000000212201761475010371 0ustar 9 debian/changelog0000644000000000000000000000211512262613375011046 0ustar ruby-soap4r (2.0.5-3) unstable; urgency=medium [ David Suárez ] * Fix failing tests on ruby2.0 (Closes: #730912) * debian/source/options: remove 'single-debian-patch' options and add 'unapply-patches' one [ Antonio Terceiro ] * Don't use ruby-libxml based parser added debian/patches/dont-use-libxml-based-parser.patch. The parser seems to be written for a old version of ruby-libxml and my quick attempt at fixing it didn't work. My level of patience with anything that involves XML is quite low, so it's possible that the problem is still properly fixable. (Closes: #725672) -- Antonio Terceiro Mon, 06 Jan 2014 17:50:04 -0300 ruby-soap4r (2.0.5-2) unstable; urgency=low * Remove usage os iconv which is deprecated under Ruby 1.9 * Ignore test failures on Ruby 1.8 which will go away soon. -- Antonio Terceiro Sat, 07 Sep 2013 19:28:29 -0300 ruby-soap4r (2.0.5-1) unstable; urgency=low * Initial release (Closes: #629979) -- Antonio Terceiro Sun, 11 Aug 2013 21:05:40 +0200 debian/copyright0000644000000000000000000000651712201761405011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: soap4r-ruby1.9 Source: https://github.com/noeticpenguin/soap4r-noeticpenguin Files: * Copyright: Copyright (C) 2000-2007 NAKAMURA Hiroshi 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 (see the file RUBYS), or any later version. . TERMS OF THE RUBY LICENSE: . Ruby is copyrighted free software by Yukihiro Matsumoto . You can redistribute it and/or modify it under either the terms of the GPL (see the file GPL), 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) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 3. You may distribute the software in object code or binary form, provided that you do at least ONE of the following: . a) distribute the binaries 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 binaries 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 these terms. . For the list of those files and their copying conditions, see the file LEGAL. . 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. Comment: 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'. Files: debian/* Copyright: 2013 Antonio Terceiro License: The debian packaging is released under the same terms as the original package. debian/control0000644000000000000000000000166312262611370010577 0ustar Source: ruby-soap4r Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Antonio Terceiro Build-Depends: debhelper (>= 9), gem2deb (>= 0.4.1~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-soap4r.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-soap4r.git;a=summary Homepage: https://github.com/noeticpenguin/soap4r-noeticpenguin XS-Ruby-Versions: all Package: ruby-soap4r Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: SOAP library for the Ruby programming language This library was originally part of the standard library up until Ruby 1.8. It was removed from the standard library in Ruby 1.9 for compatibility reasons. . This version of the library was forward-ported to Ruby 1.9. debian/rules0000755000000000000000000000076112262611370010252 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_installdocs: dh_installdocs # move distributed binaries to documentation directory as examples mv $(CURDIR)/debian/ruby-soap4r/usr/bin $(CURDIR)/debian/ruby-soap4r/usr/share/doc/ruby-soap4r/examples override_dh_installexamples: find $(CURDIR)/debian/ruby-soap4r/usr/share/doc/ruby-soap4r/examples/ -executable -exec chmod -x '{}' ';' override_dh_clean: dh_clean $(shell find lib/ -name \*.orig | xargs -n 1 echo -X) debian/source/0000755000000000000000000000000012262611775010477 5ustar debian/source/format0000644000000000000000000000001412201703465011674 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000001712262611370012102 0ustar unapply-patchesdebian/watch0000644000000000000000000000016112201703465010215 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/soap4r-ruby1.9 .*/soap4r-ruby1.9-(.*).tar.gz debian/patches/0000755000000000000000000000000012262614025010615 5ustar debian/patches/dont-use-libxml-based-parser.patch0000644000000000000000000000064612262613126017236 0ustar Description: Don't use the libxml-based parser. Author: Antonio Terceiro Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725672 Forwarded: not-needed --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/lib/xsd/xmlparser.rb +++ b/lib/xsd/xmlparser.rb @@ -52,7 +52,6 @@ end PARSER_LIBS = [ - 'libxmlparser', 'xmlparser', 'xmlscanner', 'rexmlparser' debian/patches/series0000644000000000000000000000012212262613712012027 0ustar drop-iconv-usage.patch fix-failing-ruby2-tests dont-use-libxml-based-parser.patch debian/patches/fix-failing-ruby2-tests0000644000000000000000000000140412262611370015135 0ustar Description: Fix failing ruby2.0 tests Fix tests: - change script encoding to 'US-ASCII' - lowercase 'http' protocol (ruby2 URI module default behaviour is to always lowercase it) Bug-Debian: #730912 Author: David Suárez Last-Update: 2014-01-04 --- ruby-soap4r-2.0.5.orig/test/xsd/test_xsd.rb +++ ruby-soap4r-2.0.5/test/xsd/test_xsd.rb @@ -1,3 +1,5 @@ +# encoding: US-ASCII + require 'test/unit' require 'xsd/datatypes' @@ -941,7 +943,7 @@ class TestXSD2 < Test::Unit::TestCase "http://foo/bar/baz", "http://foo/bar#baz", "http://foo/bar%20%20?a+b", - "HTTP://FOO/BAR%20%20?A+B", + "http://FOO/BAR%20%20?A+B", ] targets.each do |str| assert_parsed_result(XSD::XSDAnyURI, str) debian/patches/drop-iconv-usage.patch0000644000000000000000000000313112262613537015025 0ustar diff --git a/lib/xsd/iconvcharset.rb b/lib/xsd/iconvcharset.rb index 57733a8..7901098 100644 --- a/lib/xsd/iconvcharset.rb +++ b/lib/xsd/iconvcharset.rb @@ -5,29 +5,12 @@ # 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. - -require 'iconv' - - module XSD - class IconvCharset def self.safe_iconv(to, from, str) - iconv = Iconv.new(to, from) - out = "" - begin - out << iconv.iconv(str) - rescue Iconv::IllegalSequence => e - out << e.success - ch, str = e.failed.split(//, 2) - out << '?' - warn("Failed to convert #{ch}") - retry - end - return out + str.force_encoding(from).chars.map { |c| c.valid_encoding? && c || '?' }.join.encode(to) end -end - +end if RUBY_VERSION > '1.9' end diff --git a/test/xsd/test_iconvcharset.rb b/test/xsd/test_iconvcharset.rb new file mode 100644 index 0000000..452291c --- /dev/null +++ b/test/xsd/test_iconvcharset.rb @@ -0,0 +1,20 @@ +# encoding: UTF-8 + +require 'test/unit' +require 'xsd/iconvcharset' + +class TestIconvCharset < Test::Unit::TestCase + + def test_iso88591_utf8 + assert_equal "á", XSD::IconvCharset.safe_iconv("utf-8", "iso-8859-1", "\xE1") + end + + def test_utf8_iso88591 + assert_equal "\xE1".force_encoding('iso-8859-1'), XSD::IconvCharset.safe_iconv("iso-8859-1", "utf-8", "á") + end + + def test_invalid_encoding + assert_equal "á?á".encode('iso-8859-1'), XSD::IconvCharset.safe_iconv("iso-8859-1", "utf-8", "á\x8Dá".force_encoding('ascii-8bit')) + end + +end if RUBY_VERSION > '1.9' debian/ruby-tests.rake0000644000000000000000000000031612203003651012143 0ustar require 'gem2deb/rake/testtask' Gem2Deb::Rake::TestTask.new do |test| # FIXME enable more of the upstream test suite test.pattern = 'test/xsd/test_*.rb' test.verbose = true end task :default => :test debian/ruby-soap4r.examples0000644000000000000000000000001112201756637013116 0ustar sample/*