debian/0000755000000000000000000000000012222373475007175 5ustar debian/ruby-tests.rb0000644000000000000000000000004612222373475011643 0ustar $: << 'test' require 'test_webrobots' debian/patches/0000755000000000000000000000000012222373475010624 5ustar debian/patches/disable-internet-tests0000644000000000000000000000562412222373475015147 0ustar Author: Christian Hofstaedtler Forwarded: not-needed Last-updated: 2012-05-05 Description: Disable test requiring Internet Package builds can not rely on working Internet to be available. As skip() does not work on 1.8, this patch comments the test out. Index: ruby-webrobots/test/test_webrobots.rb =================================================================== --- ruby-webrobots.orig/test/test_webrobots.rb 2012-05-05 23:33:39.201696147 +0200 +++ ruby-webrobots/test/test_webrobots.rb 2012-05-05 23:35:47.831921873 +0200 @@ -465,33 +465,33 @@ end end - context "robots.txt in the real world" do - setup do - @testbot = WebRobots.new('TestBot') - @msnbot = WebRobots.new('TestMSNBot') # matches msnbot - end - - should "be parsed for major sites" do - assert_nothing_raised { - assert !@testbot.allowed?("http://www.google.com/search") - assert !@testbot.allowed?("https://www.google.com/search") - assert !@testbot.allowed?("http://www.google.com/news/section?pz=1&cf=all&ned=jp&topic=y&ict=ln") - assert @testbot.allowed?("http://www.google.com/news/directory?pz=1&cf=all&ned=us&hl=en&sort=users&category=6") - } - assert_nothing_raised { - assert @testbot.allowed?("http://www.yahoo.com/") - assert !@testbot.allowed?("http://www.yahoo.com/?") - assert !@testbot.allowed?("http://www.yahoo.com/p/foo") - } - assert_nothing_raised { - assert !@testbot.allowed?("http://store.apple.com/vieworder") - assert @msnbot.allowed?("http://store.apple.com/vieworder") - } - assert_nothing_raised { - assert !@testbot.allowed?("http://github.com/login") - } - end - end +# context "robots.txt in the real world" do +# setup do +# @testbot = WebRobots.new('TestBot') +# @msnbot = WebRobots.new('TestMSNBot') # matches msnbot +# end +# +# should "be parsed for major sites" do +# assert_nothing_raised { +# assert !@testbot.allowed?("http://www.google.com/search") +# assert !@testbot.allowed?("https://www.google.com/search") +# assert !@testbot.allowed?("http://www.google.com/news/section?pz=1&cf=all&ned=jp&topic=y&ict=ln") +# assert @testbot.allowed?("http://www.google.com/news/directory?pz=1&cf=all&ned=us&hl=en&sort=users&category=6") +# } +# assert_nothing_raised { +# assert @testbot.allowed?("http://www.yahoo.com/") +# assert !@testbot.allowed?("http://www.yahoo.com/?") +# assert !@testbot.allowed?("http://www.yahoo.com/p/foo") +# } +# assert_nothing_raised { +# assert !@testbot.allowed?("http://store.apple.com/vieworder") +# assert @msnbot.allowed?("http://store.apple.com/vieworder") +# } +# assert_nothing_raised { +# assert !@testbot.allowed?("http://github.com/login") +# } +# end +# end context "meta robots tag" do setup do debian/patches/series0000644000000000000000000000005512222373475012041 0ustar remove-rubygems-calls disable-internet-tests debian/patches/remove-rubygems-calls0000644000000000000000000000177412222373475015004 0ustar Author: Gunnar Wolf Forwarded: not-needed Last-updated: 2012-01-18 Description: Remove Rubygems calls Rubygems and Bundler are forbidden by Debian policy to be used within packaged Ruby modules Index: ruby-webrobots/test/helper.rb =================================================================== --- ruby-webrobots.orig/test/helper.rb 2012-01-18 12:53:54.000000000 -0600 +++ ruby-webrobots/test/helper.rb 2012-01-18 12:59:26.000000000 -0600 @@ -1,12 +1,12 @@ -require 'rubygems' -require 'bundler' -begin - Bundler.setup(:default, :development) -rescue Bundler::BundlerError => e - $stderr.puts e.message - $stderr.puts "Run `bundle install` to install missing gems" - exit e.status_code -end +# require 'rubygems' +# require 'bundler' +# begin +# Bundler.setup(:default, :development) +# rescue Bundler::BundlerError => e +# $stderr.puts e.message +# $stderr.puts "Run `bundle install` to install missing gems" +# exit e.status_code +# end require 'test/unit' require 'shoulda' debian/source/0000755000000000000000000000000012222373475010475 5ustar debian/source/format0000644000000000000000000000001412222373475011703 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212222373475010373 0ustar 7 debian/copyright0000644000000000000000000000311212222373475011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: webrobots Source: https://github.com/knu/webrobots Files: * Copyright: ©2010, 2011 Akinori MUSHA License: BSD-2-clause Files: debian/* Copyright: 2012 Gunnar Wolf License: BSD-2-clause License: BSD-2-clause All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/changelog0000644000000000000000000000214612222373475011052 0ustar ruby-webrobots (0.1.1-1) unstable; urgency=low * New upstream release -- Gunnar Wolf Mon, 30 Sep 2013 17:11:41 -0500 ruby-webrobots (0.0.13-3) unstable; urgency=low * Team upload. * Rebuild with recent gem2deb -- Vincent Fourmond Sun, 24 Jun 2012 01:19:34 +0200 ruby-webrobots (0.0.13-2) unstable; urgency=low * Remove a test so package build does not depend on the Internet (Closes: #666642) -- Christian Hofstaedtler Sat, 05 May 2012 23:20:41 +0200 ruby-webrobots (0.0.13-1) unstable; urgency=low * New upstream version -- Gunnar Wolf Tue, 27 Mar 2012 10:06:28 -0600 ruby-webrobots (0.0.12-2) unstable; urgency=low * Nokogiri has to be build-depended upon, as it is used for running the tests (Closes: #663050) * Standards version 3.9.2→3.9.3 (no changes needed) -- Gunnar Wolf Thu, 08 Mar 2012 16:52:53 -0600 ruby-webrobots (0.0.12-1) unstable; urgency=low * Initial release (Closes: #656362) -- Gunnar Wolf Wed, 18 Jan 2012 12:53:10 -0600 debian/rules0000755000000000000000000000070112222373475010253 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/ruby-webrobots.docs0000644000000000000000000000001412222373475013027 0ustar README.rdoc debian/watch0000644000000000000000000000014712222373475010230 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/webrobots .*/webrobots-(.*).tar.gz debian/control0000644000000000000000000000154512222373475010605 0ustar Source: ruby-webrobots Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Gunnar Wolf Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-shoulda, ruby-nokogiri Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-webrobots.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-webrobots.git;a=summary Homepage: https://github.com/knu/webrobots XS-Ruby-Versions: all Package: ruby-webrobots Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, racc, ruby-nokogiri Description: Library for creating robots.txt-aware web robots This library helps write robots.txt-compliant web robots in Ruby, based on Nokogiri's functionality.