debian/0000755000000000000000000000000012311632336007166 5ustar debian/watch0000644000000000000000000000014312133037730010214 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/hpricot .*/hpricot-(.*).tar.gz debian/source.lintian-overrides0000644000000000000000000000036712133037730014053 0ustar ruby-hpricot source: duplicate-short-description libhpricot-ruby libhpricot-ruby1.8 libhpricot-ruby1.9 libhpricot-ruby1.9.1 ruby-hpricot source: duplicate-long-description libhpricot-ruby libhpricot-ruby1.8 libhpricot-ruby1.9 libhpricot-ruby1.9.1 debian/ruby-tests.rb0000644000000000000000000000020512260540245011631 0ustar $: << 'test' system("find -name fast_xs.so -delete") Encoding.default_external = "UTF-8" Dir['test/test*.rb'].each { |f| require f } debian/rules0000755000000000000000000000104112133037730010241 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 ifeq (ia64, $(shell dpkg-architecture -qDEB_BUILD_ARCH)) export DH_RUBY_IGNORE_TESTS=all endif # 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-hpricot.docs0000644000000000000000000000001212133037730012457 0ustar README.md debian/copyright0000644000000000000000000000526712152655404011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: hpricot Source: https://github.com/hpricot/hpricot Files: * Copyright: Copyright 2006, 2008, 2010 why the lucky stiff License: Expat Files: ext/fast_xs/FastXsService.java Copyright: Copyright 2002-2005 The Apache Software Foundation Copyright 2006 why the lucky stiff License: Apache 2.0 and Expat Comment: Mostly Expat, but one class is licensed Apache 2.0 Files: lib/hpricot/blankslate.rb Copyright: Copyright 2004 Jim Weirich (jim@weirichhouse.org) License: other Files: debian/* Copyright: Copyright 2011 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. License: Apache 2.0 Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. License: other All rights reserved. . Permission is granted for use, copying, modification, distribution, and distribution of modified versions of this work as long as the above copyright notice is included. debian/source/0000755000000000000000000000000012133037730010465 5ustar debian/source/format0000644000000000000000000000001412133037730011673 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012265476430010626 5ustar debian/patches/03_disable_failing_tests.diff0000644000000000000000000000432312265476225016304 0ustar Index: ruby-hpricot/test/test_parser.rb =================================================================== --- ruby-hpricot.orig/test/test_parser.rb 2014-01-15 13:17:57.148058553 +0100 +++ ruby-hpricot/test/test_parser.rb 2014-01-15 13:18:22.503906306 +0100 @@ -169,17 +169,17 @@ class TestParser < Test::Unit::TestCase assert imgs.all? { |x| x.name == 'img' } end - def test_predicates - @boingboing = Hpricot.parse(TestFiles::BOINGBOING) - assert_equal 2, @boingboing.search('//link[@rel="alternate"]').length - p_imgs = @boingboing.search('//div/p[/a/img]') - assert_equal 16, p_imgs.length - assert p_imgs.all? { |x| x.name == 'p' } - p_imgs = @boingboing.search('//div/p[a/img]') - assert_equal 16, p_imgs.length - assert p_imgs.all? { |x| x.name == 'p' } - assert_equal 1, @boingboing.search('//input[@checked]').length - end +# def test_predicates +# @boingboing = Hpricot.parse(TestFiles::BOINGBOING) +# assert_equal 2, @boingboing.search('//link[@rel="alternate"]').length +# p_imgs = @boingboing.search('//div/p[/a/img]') +# assert_equal 16, p_imgs.length +# assert p_imgs.all? { |x| x.name == 'p' } +# p_imgs = @boingboing.search('//div/p[a/img]') +# assert_equal 16, p_imgs.length +# assert p_imgs.all? { |x| x.name == 'p' } +# assert_equal 1, @boingboing.search('//input[@checked]').length +# end def test_tag_case @tenderlove = Hpricot.parse(TestFiles::TENDERLOVE) @@ -216,11 +216,11 @@ class TestParser < Test::Unit::TestCase assert_equal doc.to_html, '

Paragraph 1

Paragraph 2

' end - def test_many_paths - @boingboing = Hpricot.parse(TestFiles::BOINGBOING) - assert_equal 62, @boingboing.search('p.posted, link[@rel="alternate"]').length - assert_equal 18, @boingboing.search('//div/p[a/img]|//link[@rel="alternate"]').length - end +# def test_many_paths +# @boingboing = Hpricot.parse(TestFiles::BOINGBOING) +# assert_equal 62, @boingboing.search('p.posted, link[@rel="alternate"]').length +# assert_equal 18, @boingboing.search('//div/p[a/img]|//link[@rel="alternate"]').length +# end def test_stacked_search @boingboing = Hpricot.parse(TestFiles::BOINGBOING) debian/patches/02_fix_default_external_encoding.diff0000644000000000000000000000101612133037730020007 0ustar Description: fix default external encoding to utf-8 for tests This is needed to run correctly the test suite in a clean building environment (where LANG=C). Author: Cédric Boutillier Bug: https://github.com/hpricot/hpricot/issues/52 Last-Update: 2011-08-19 --- a/test/load_files.rb +++ b/test/load_files.rb @@ -1,3 +1,7 @@ +if RUBY_VERSION =~ /1.9/ + Encoding.default_external = Encoding::UTF_8 +end + module TestFiles Dir.chdir(File.dirname(__FILE__)) do Dir['files/*.{html,xhtml,xml}'].each do |fname| debian/patches/series0000644000000000000000000000014312265476430012041 0ustar 01_tests_disable_rubygems.diff 02_fix_default_external_encoding.diff 03_disable_failing_tests.diff debian/patches/01_tests_disable_rubygems.diff0000644000000000000000000000201712133037730016510 0ustar Description: Disables usage of rubygems in nokogiri-bench.rb This part of the test suite is in fact not run, because Hpricot support has been dropped in nokogiri (>=1.4.0). Author: Cédric Boutillier Last-Update: 2011-08-14 --- a/test/nokogiri-bench.rb +++ b/test/nokogiri-bench.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -require 'rubygems' +#require 'rubygems' require 'open-uri' require 'hpricot' require 'nokogiri' @@ -9,11 +9,11 @@ N = 100 -unless Gem.loaded_specs['hpricot'].version > Gem::Version.new('0.6.161') - abort "** Use higher than Hpricot 0.6.161!" -end +#unless Gem.loaded_specs['hpricot'].version > Gem::Version.new('0.6.161') +# abort "** Use higher than Hpricot 0.6.161!" +#end -puts "Hpricot #{Gem.loaded_specs['hpricot'].version} vs. Nokogiri #{Gem.loaded_specs['nokogiri'].version}" +#puts "Hpricot #{Gem.loaded_specs['hpricot'].version} vs. Nokogiri #{Gem.loaded_specs['nokogiri'].version}" hdoc = Hpricot(content) ndoc = Nokogiri.Hpricot(content) debian/compat0000644000000000000000000000000212133037730010363 0ustar 7 debian/control0000644000000000000000000000247612311632313010575 0ustar Source: ruby-hpricot Section: ruby Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Ruby Extras Maintainers Uploaders: Ryan Niebur , Micah Anderson , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.0~), ruby-fast-xs (>= 0.8.0-3build1~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-hpricot.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-hpricot.git;a=summary Homepage: https://github.com/hpricot/hpricot XS-Ruby-Versions: all Package: ruby-hpricot Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-fast-xs Description: fast, enjoyable HTML parser Hpricot is a fast, flexible HTML parser written in C. It's designed to be very accomodating (like Tanaka Akira's HTree) and to have a very helpful library (like some JavaScript libs -- JQuery, Prototype -- give you). . Also, Hpricot can be handy for reading broken XML files, since many of the same principles are used. If a quote is missing, Hpricot tries to figure it out. If tags overlap, Hpricot works on sorting them out. debian/ruby-hpricot.NEWS0000644000000000000000000000076012260540245012316 0ustar ruby-hpricot (0.8.6-4) unstable; urgency=low Hpricot is over - Please consider an alternative like nokogiri. After years of lack of a proper maintainer for one of why's jewels, it has been decided to finally close the book on hpricot. Most users have migrated to alternatives and there is simply no time or energy to continue with the current codebase. https://github.com/hpricot/hpricot -- Jonas Genannt Tue, 31 Dec 2013 11:55:34 +0200 debian/changelog0000644000000000000000000001041712311632305011037 0ustar ruby-hpricot (0.8.6-5ubuntu1) trusty; urgency=medium * Adjust ruby-fast-xs rebuild version for Ubuntu. -- Colin Watson Mon, 17 Mar 2014 17:45:40 +0000 ruby-hpricot (0.8.6-5) unstable; urgency=medium * Team upload. * Disable tests that fail on armel, armhf, mipsel -- Christian Hofstaedtler Wed, 15 Jan 2014 13:21:54 +0100 ruby-hpricot (0.8.6-4) unstable; urgency=low * Team upload. [ Cédric Boutillier ] * debian/control: - remove obsolete DM-Upload-Allowed flag - use canonical URI in Vcs-* fields * debian/copyright: use DEP5 copyright-format/1.0 official URL for Format field [ Christian Hofstaedtler ] * Remove transitional packages * Bump Standards-Version to 3.9.5 (no changes) * Update Build-Depends for ruby2.0, drop ruby1.8 [ Jonas Genannt ] * d/ruby-hpricot.NEWS added NEWS file about hpricot EOL * d/ruby-tests.rb: force encoding to UTF-8, to make tests work -- Jonas Genannt Tue, 31 Dec 2013 11:59:31 +0100 ruby-hpricot (0.8.6-3) unstable; urgency=low * Stop shipping fast_xs and depend on it instead. Closes: 679606 -- Tollef Fog Heen Sat, 30 Jun 2012 20:58:04 +0200 ruby-hpricot (0.8.6-2) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Cédric Boutillier Tue, 26 Jun 2012 10:21:21 +0200 ruby-hpricot (0.8.6-1) unstable; urgency=low * New upstream version * Ignore test results on ia64 for now. See #653582. -- Cédric Boutillier Wed, 25 Jan 2012 22:45:51 +0100 ruby-hpricot (0.8.5-1) unstable; urgency=low * New upstream version * Priority of transitional packages set to extra * Override lintian warnings about duplicate description of transitional packages -- Cédric Boutillier Wed, 30 Nov 2011 13:02:54 +0100 ruby-hpricot (0.8.4-1) unstable; urgency=low * New upstream release * Migrated to gem2deb packaging + rename binary and source packages * Add myself to uploaders -- Cédric Boutillier Fri, 19 Aug 2011 16:56:30 +0200 libhpricot-ruby (0.8.2-1) unstable; urgency=low * New upstream release * switch to ruby 1.9.1 (Closes: #565837) * update email address -- Ryan Niebur Fri, 29 Jan 2010 23:53:30 -0800 libhpricot-ruby (0.8.1-1) unstable; urgency=low * New upstream release * Bump Standards-Version (no changes) * Add myself to uploaders -- Micah Anderson Wed, 19 Aug 2009 17:09:56 -0400 libhpricot-ruby (0.8-2) unstable; urgency=low * build ext/fast_xs too (Closes: #532949) -- Ryan Niebur Fri, 12 Jun 2009 22:55:53 -0700 libhpricot-ruby (0.8-1) unstable; urgency=low * fix watch file * New upstream release * remove patching, it's fixed upstream * take over package with permission from Ari * update standards version to 3.8.1 * add DMUA field * improve short descriptions * add ${misc:Depends} * fix d/copyright * update Homepage * remove debian/*.dirs, they are not needed -- Ryan Niebur Mon, 08 Jun 2009 00:15:45 -0700 libhpricot-ruby (0.6-2) unstable; urgency=low * Use new Homepage dpkg header. * Bump build-dep on r-p-t to >= 0.14, fixes the ruby1.9 install problem. * Install to /usr/lib/ruby/1.9.0, not /usr/lib/ruby/1.9. Closes: #484615. -- Lucas Nussbaum Mon, 16 Jun 2008 15:17:57 +0200 libhpricot-ruby (0.6-1) unstable; urgency=low * New upstream version * Fix FTBFS with new ruby (Closes: #427463) -- Ari Pollak Thu, 21 Jun 2007 11:40:50 -0400 libhpricot-ruby (0.5-2) unstable; urgency=low * Upload to unstable * Remove pkg-ruby-extras Uploaders rule as part of migration -- Ari Pollak Wed, 25 Apr 2007 11:05:01 -0400 libhpricot-ruby (0.5-1) experimental; urgency=low * New upstream version (Closes: #410458) * Update watch file to only track stable versions -- Ari Pollak Mon, 20 Nov 2006 15:33:32 -0500 libhpricot-ruby (0.4-1) unstable; urgency=low * Initial release (Closes: #391329) * Added note to debian/copyright about license inconsistency -- Ari Pollak Sat, 21 Oct 2006 19:22:48 -0400