debian/0000755000000000000000000000000012264155657007203 5ustar debian/rules0000755000000000000000000000131412264152234010246 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 override_dh_installman: mkdir man pod2man --center "" --release "" --name NOKOGIRI --utf8 debian/nokogiri.1.pod man/nokogiri.1 dh_installman override_dh_auto_clean: rm -rf man/ dh_auto_clean override_dh_installchangelogs: dh_installchangelogs CHANGELOG.rdoc debian/ruby-nokogiri.manpages0000644000000000000000000000001712264152234013502 0ustar man/nokogiri.1 debian/watch0000644000000000000000000000021112264153334010214 0ustar version=3 opts=dversionmangle=s/\+ds(\d)*// \ http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/nokogiri .*/nokogiri-(.*).tar.gz debian/source/0000755000000000000000000000000012264152234010467 5ustar debian/source/format0000644000000000000000000000001412264152234011675 0ustar 3.0 (quilt) debian/nokogiri.1.pod0000644000000000000000000000201712264152234011653 0ustar =encoding UTF-8 =head1 NAME nokogiri - an HTML, XML, SAX, and Reader parser =head1 DESCRIPTION Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri’s many features is the ability to search documents via XPath or CSS3 selectors. The B command parses a document, and launches an interactive ruby session (B(1)), allowing one to analysing the result interactively. =head1 SYNOPSYS B |I> [I] =head1 OPTIONS =over =item B<--type> [I] Set the type of the document to be parsed =item B<-E>, B<--encoding> I Set the encoding of the document =item B<-e> I Specifies script from command-line =item B<--rng> |I> Validate using this rng file =item B<-?>, B<--help> Show a message very similar to this man page =item B<-v>, B<--version> Show the version of the program =back =head1 EXAMPLES nokogiri http://www.ruby-lang.org/ nokogiri ./public/index.html curl -s http://nokogiri.org | nokogiri -e'p $_.css("h1").length' debian/ruby-nokogiri.docs0000644000000000000000000000003312264152234012635 0ustar README.rdoc README.ja.rdoc debian/gbp.conf0000644000000000000000000000015012264152234010602 0ustar [DEFAULT] pristine-tar = True [git-import-orig] filter = ['ports/archives'] filter-pristine-tar = True debian/copyright0000644000000000000000000000362112264154032011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: nokogiri Homepage: http://nokogiri.org/ Comment: the upstream tarball is repacked to remove ports/archives/ containing of convenience copies of the libraries libxml2 (version 2.8.0) and libxslt (version 1.1.26) Files: * Copyright: 2008-2012 Aaron Patterson 2008-2012 Mike Dalessio 2008-2012 Charles Nutter 2008-2012 Patrick Mahoney 2008-2012 Yoko Harada License: Expat Files: debian/* Copyright: 2009 Ryan Niebur 2011 Lucas Nussbaum 2012-2013 Cédric Boutillier License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000167512264154650010607 0ustar Source: ruby-nokogiri Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Lucas Nussbaum , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.5.0~), libxml2-dev, libxslt-dev, ruby-minitest Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-nokogiri.git Vcs-Browser: http://anonscm.debian.org/?p=pkg-ruby-extras/ruby-nokogiri.git;a=summary Homepage: http://nokogiri.org XS-Ruby-Versions: all Package: ruby-nokogiri Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: HTML, XML, SAX, and Reader parser for Ruby Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. It is able to search documents via XPath or CSS3 selectors, and is a drop-in replacement for Hpricot (though not bug for bug). debian/patches/0000755000000000000000000000000012264152234010616 5ustar debian/patches/always_use_system_libraries.patch0000644000000000000000000000170012264152234017451 0ustar Description: always use system libraries and remov the dependency to mini_portile Author: Jérémy Bobbio Origin: vendor Forwarded: not-needed diff --git a/Rakefile b/Rakefile index 2e5564a..dddae2d 100644 --- a/Rakefile +++ b/Rakefile @@ -40,10 +40,6 @@ HOE = Hoe.spec 'nokogiri' do # GENERATED_TOKENIZER ] - self.extra_deps += [ - ["mini_portile", "~> 0.5.0"], - ] - self.extra_dev_deps += [ ["hoe-bundler", ">= 1.1"], ["hoe-debugging", ">= 1.0.3"], diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index 47df402..91baff3 100644 --- a/ext/nokogiri/extconf.rb +++ b/ext/nokogiri/extconf.rb @@ -45,7 +45,7 @@ if windows_p XML2_HEADER_DIRS = [File.join(INCLUDEDIR, "libxml2"), INCLUDEDIR] else - if ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES'] + if ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES'] || true HEADER_DIRS = [ # First search /opt/local for macports '/opt/local/include', debian/patches/skip_test_reader_entity_reference_without_dtdload.patch0000644000000000000000000000214312264152234024056 0ustar Description: disable test_reader_entity_reference_without_dtdload These tests fail with libxml2 2.9, but were passing with 2.8 Origin: vendor Author: Cédric Boutillier Forwarded: no Last-Update: 2013-08-16 --- a/test/xml/test_entity_reference.rb +++ b/test/xml/test_entity_reference.rb @@ -231,15 +231,15 @@ assert_equal [], nodes.compact.map(&:strip).reject(&:empty?) end - test_relative_and_absolute_path :test_reader_entity_reference_without_dtdload do - html = File.read xml_document - assert_raises(Nokogiri::XML::SyntaxError) do - reader = Nokogiri::XML::Reader html, path do |cfg| - cfg.default_xml - end - reader.each { |n| n } - end - end + # test_relative_and_absolute_path :test_reader_entity_reference_without_dtdload do + # html = File.read xml_document + # assert_raises(Nokogiri::XML::SyntaxError) do + # reader = Nokogiri::XML::Reader html, path do |cfg| + # cfg.default_xml + # end + # reader.each { |n| n } + # end + # end end end end debian/patches/series0000644000000000000000000000027012264152234012032 0ustar remove-annoying-warning.patch no-require-rubygems.patch skip_test_reader_entity_reference_without_dtdload.patch deactivate_test_reader_blocking.patch always_use_system_libraries.patch debian/patches/deactivate_test_reader_blocking.patch0000644000000000000000000000107212264152234020201 0ustar Description: deactivate reader_blocking test, hanging on kFreeBSD ports Author: Cédric Boutillier Origin: vendor Bug: https://github.com/sparklemotion/nokogiri/issues/965 Last-Update: 2013-09-03 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/test/test_reader.rb +++ b/test/test_reader.rb @@ -36,7 +36,7 @@ # Issue #831 # Make sure that the reader doesn't block reading the entire input - def test_reader_blocking + def _test_reader_blocking rd, wr = IO.pipe() node_out = nil t = Thread.start do debian/patches/remove-annoying-warning.patch0000644000000000000000000000142212264152234016416 0ustar Description: Remove annoying warning about the version of libxml used Author: Ryan Niebur Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546843 Forwarded: not-needed Index: git/lib/nokogiri/version.rb =================================================================== --- git.orig/lib/nokogiri/version.rb 2013-11-03 11:47:24.422149897 +0100 +++ git/lib/nokogiri/version.rb 2013-11-03 11:48:37.348681267 +0100 @@ -36,11 +36,7 @@ def warnings return [] unless libxml2? - if compiled_parser_version != loaded_parser_version - ["Nokogiri was built against LibXML version #{compiled_parser_version}, but has dynamically loaded #{loaded_parser_version}"] - else - [] - end + [] end def to_hash debian/patches/no-require-rubygems.patch0000644000000000000000000000045412264152234015563 0ustar Description: Remove requirement on rubygems Origine: vendor --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/bin/nokogiri +++ b/bin/nokogiri @@ -3,7 +3,6 @@ require 'open-uri' require 'irb' require 'uri' -require 'rubygems' require 'nokogiri' parse_class = Nokogiri debian/compat0000644000000000000000000000000212264152234010365 0ustar 7 debian/README.source0000644000000000000000000000071412264153252011351 0ustar This package uses the Debian 3.0 (quilt) source package format. The upstream tarball has been repacked to remove ports/archives containing convenience copies of the following libraries: libxml2-2.8.0.tar.gz libxslt-1.1.26.tar.gz The removal has been done with git-buildpackage, during the import of the upstream tarball via git import-orig command and its filter option (see debian/gbp.conf). Cédric Boutillier Last Update: 2014-01-11 debian/changelog0000644000000000000000000001502512264155501011044 0ustar ruby-nokogiri (1.6.1+ds-1) unstable; urgency=medium * Imported Upstream version 1.6.1+ds - version 1.6.1 fixes security issues CVE-2013-6460 CVE-2013-6461 (Closes: #734836) * Mention in copyright file and README.source that the tarball is repacked to remove convenience copies * Add a dversionmangle option in debian/watch * Bump Standards-Version to 3.9.5 (no changes needed) -- Cédric Boutillier Sat, 11 Jan 2014 06:48:45 +0100 ruby-nokogiri (1.6.0-1) unstable; urgency=low * Team upload. * New upstream release: - Strip embedded code copy from upstream source. - Update patches: remove-annoying-warning.patch: refreshed; fix_tests_assert_match.patch: deleted, merged upstream; minitest5_support.patch: deleted, merged upstream. - Add a patch to always use the system libraries. * Stop fiddling test/files/bogus.xml now that its properly shipped in upstream tarball. -- Jérémy Bobbio Sun, 03 Nov 2013 11:54:08 +0100 ruby-nokogiri (1.5.9-3) unstable; urgency=low * add deactivate_test_reader_blocking.patch, deactivating a test hanging on kFreeBSD ports * build against gem2deb >= 0.5.0~ to add ruby2.0 and drop ruby1.8 support -- Cédric Boutillier Tue, 03 Sep 2013 01:14:52 +0200 ruby-nokogiri (1.5.9-2) unstable; urgency=low * Do not exclude test/xml/test_xinclude.rb from tests anymore * debian/patches: add 2 patches to fix FTBFS (Closes: #714930) + minitest5_support.patch: add support for MiniTest 5 + skip_test_reader_entity_reference_without_dtdload.patch: disable tests failing with libxml2 2.9 -- Cédric Boutillier Fri, 16 Aug 2013 23:19:16 +0200 ruby-nokogiri (1.5.9-1) unstable; urgency=low * New upstream version * debian/rules: + create empty file missing from the archive for the purpose of tests + install upstream changelog * debian/copyright: + update my email address and year * debian/control: + update my email address + bump Standars-Version to 3.9.4 (no changes needed) + remove obsolete DM-Upload-Allowed flag + use canonical anonscm.debian.org URLs for Vcs-* fields + remove obsolete transitional packages * debian/source: + remove lintian-overrides, about transtional packages * debian/patches/: + remove include_missing_test_document_url_directory.patch, missing file added upstream + add fix_tests_assert_match.patch to make tests pass with minitest gem * update manpage nokogiri(1) to take into account new options -- Cédric Boutillier Fri, 10 May 2013 01:05:44 +0200 ruby-nokogiri (1.5.5-1) unstable; urgency=low * New upstream version * Build-depend on gem2deb >= 0.3.0~ * add include_missing_test_document_url_directory.patch + include test/files/test_document_url/ missing from the gem released by upstream * cosmetic refreshment of remove-annoying-warning.patch -- Cédric Boutillier Tue, 26 Jun 2012 14:07:29 +0200 ruby-nokogiri (1.5.4-1) unstable; urgency=low * New upstream version * Drop fix-format-security-issue.patch: included upstream -- Cédric Boutillier Fri, 15 Jun 2012 23:53:43 +0200 ruby-nokogiri (1.5.3-1) unstable; urgency=low * New upstream version * debian/patches: + drop fix-sporadically-failing-tests.patch (applied upstream) + add fix-format-security-issue.patch (cherrypicked from upstream) Fixes FTBFS with -Werror=format-security flag (Closes: #676207) -- Cédric Boutillier Sat, 09 Jun 2012 16:08:57 +0200 ruby-nokogiri (1.5.2-1) unstable; urgency=low * New upstream version * Add myself to Uploaders: * Bump Standards-Version to 3.9.3 (no changes needed) * Exclude temporarily test_xinclude.rb from the tests, as xinclude.xml is missing in this version * Add fix-sporadically-failing-tests.patch (Closes: #661690) * Set Priority: to extra for transitional packages * Override lintian warnings about duplicate decription for transitional packages * Convert copyright file to DEP-5 * Provide a simple manpage for nokogiri binary -- Cédric Boutillier Sun, 13 May 2012 15:40:26 +0200 ruby-nokogiri (1.5.0-1) unstable; urgency=low * Switch to gem2deb. Rename source and binary packages. * New upstream version. Closes: #604623. -- Lucas Nussbaum Fri, 29 Jul 2011 18:50:38 +0200 libnokogiri-ruby (1.4.0-4) unstable; urgency=low * fix failing tests (and resulting FTBFS) with libxml 2.7.8, thanks to Mike Dalessio (Closes: #606296) -- Ryan Niebur Mon, 13 Dec 2010 20:28:41 -0800 libnokogiri-ruby (1.4.0-3.1) unstable; urgency=low * Non-maintainer upload. * debian/patches - add fix-test_element_description.rb.patch from upstream git to fix FTBFS (Closes: #577355) -- Hideki Yamane Fri, 23 Jul 2010 01:32:30 +0900 libnokogiri-ruby (1.4.0-3) unstable; urgency=low * Fix test to also work in UTC. Closes: #566055. -- Lucas Nussbaum Thu, 21 Jan 2010 10:58:36 +1300 libnokogiri-ruby (1.4.0-2) unstable; urgency=low * Drop 1.9 package, add 1.9.1 package. Closes: #565825. * Enable the test suite. + Make ruby1.9.1 test suite failures non-fatal. -- Lucas Nussbaum Wed, 20 Jan 2010 21:22:44 +1300 libnokogiri-ruby (1.4.0-1) unstable; urgency=low * New upstream release * update email address * close a launchpad bug too -- Ryan Niebur Thu, 05 Nov 2009 07:32:08 -0800 libnokogiri-ruby (1.3.3-2) unstable; urgency=low * add quilt patching * get rid of the annoying libxml warning messages (Closes: 546843) (LP: 475250) -- Ryan Niebur Tue, 15 Sep 2009 21:49:02 -0700 libnokogiri-ruby (1.3.3-1) unstable; urgency=low * New upstream release * Debian Policy 3.8.3 -- Ryan Niebur Wed, 02 Sep 2009 17:36:50 -0700 libnokogiri-ruby (1.3.2-1) unstable; urgency=low * new upstream version * Debian Policy 3.8.2 * install the upstream changelog -- Ryan Niebur Sat, 27 Jun 2009 23:28:37 -0700 libnokogiri-ruby (1.3.1-1) unstable; urgency=low * New upstream release * improve debian/rules a bit * add DMUA field -- Ryan Niebur Mon, 01 Jun 2009 17:26:41 -0700 libnokogiri-ruby (1.2.3-1) unstable; urgency=low * Initial release (Closes: 520583) -- Ryan Niebur Sun, 22 Mar 2009 12:13:48 -0700 debian/ruby-tests.rb0000644000000000000000000000017512264152234011640 0ustar $: << 'test' Encoding.default_external = "UTF-8" if RUBY_VERSION >= '1.9.1' Dir['test/**/test_*.rb'].each { |f| require f }