debian/0000755000000000000000000000000012254152117007166 5ustar debian/rules0000755000000000000000000000105311674467003010255 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 export DH_RUBY_IGNORE_TESTS=ruby1.9.1 # # 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_installchangelogs: dh_installchangelogs History.rdoc debian/watch0000644000000000000000000000014711635725445010235 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/bluecloth .*/bluecloth-(.*).tar.gz debian/source/0000755000000000000000000000000011635725445010502 5ustar debian/source/format0000644000000000000000000000001411635725445011710 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000001053112152114522011114 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: bluecloth Source: http://deveiate.org/projects/BlueCloth/ Files: * Copyright: Copyright (c) 2004-2011, Michael Granger License: BSD-3-clause Files: ext/* Copyright: Copyright (c) 2007, David L Parsons License: BSD-4-clause All rights reserved. . 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, sublicence, 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: . 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, and in the same place and form as other copyright, license and disclaimer information. . 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: . This product includes software developed by David Loren Parsons . in the same place and form as other third-party acknowledgments. Alternately, this acknowledgment may appear in the software itself, in the same form and location as other such third-party acknowledgments. . 4. Except as contained in this notice, the name of David Loren Parsons shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from David Loren Parsons. . THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 DAVID LOREN PARSONS 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. Files: ext/bluecloth.* ext/extconf.* ext/Makefile Copyright: Copyright (c) 2004-2011, Michael Granger License: BSD-3-clause Files: debian/* Copyright: Copyright 2011 Cédric Boutillier License: BSD-3-clause License: BSD-3-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: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * 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. . * Neither the name of the author/s, nor the names of the project's contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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/control0000644000000000000000000000202312254143335010570 0ustar Source: ruby-bluecloth Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Arnaud Cornet , Paul van Tilburg , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.5.0~), ruby-rspec Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-bluecloth.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-bluecloth.git;a=summary Homepage: http://deveiate.org/projects/BlueCloth XS-Ruby-Versions: all Package: ruby-bluecloth Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby implementation of Markdown BlueCloth is a Ruby implementation of Markdown, a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). debian/ruby-bluecloth.docs0000644000000000000000000000001411674467003013003 0ustar README.rdoc debian/patches/0000755000000000000000000000000012254151566010624 5ustar debian/patches/02_test_deactivate_BEGIN_headers.diff0000644000000000000000000001727311674467003017541 0ustar Description: Deactivates $LOAD_PATH modification Test files contain a header adding to the LOAD_PATH the 'lib' and 'ext' directories of the package. This is not needed since the needed files are installed somewhere else. It even causes segfaults since the ext directory may contain extensions compiled for another ruby version than the one against the tests are run. Author: Cédric Boutillier Last-Update: 2011-08-13 --- a/spec/discount_spec.rb +++ b/spec/discount_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth_spec.rb +++ b/spec/bluecloth_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/contributions_spec.rb +++ b/spec/contributions_spec.rb @@ -6,8 +6,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bugfix_spec.rb +++ b/spec/bugfix_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'timeout' --- a/spec/markdowntest_spec.rb +++ b/spec/markdowntest_spec.rb @@ -6,8 +6,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/titles_spec.rb +++ b/spec/bluecloth/titles_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/links_spec.rb +++ b/spec/bluecloth/links_spec.rb @@ -7,7 +7,7 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/images_spec.rb +++ b/spec/bluecloth/images_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/blockquotes_spec.rb +++ b/spec/bluecloth/blockquotes_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/entities_spec.rb +++ b/spec/bluecloth/entities_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/hrules_spec.rb +++ b/spec/bluecloth/hrules_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/lists_spec.rb +++ b/spec/bluecloth/lists_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/autolinks_spec.rb +++ b/spec/bluecloth/autolinks_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/code_spans_spec.rb +++ b/spec/bluecloth/code_spans_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/emphasis_spec.rb +++ b/spec/bluecloth/emphasis_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/101_changes_spec.rb +++ b/spec/bluecloth/101_changes_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/inline_html_spec.rb +++ b/spec/bluecloth/inline_html_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' --- a/spec/bluecloth/paragraphs_spec.rb +++ b/spec/bluecloth/paragraphs_spec.rb @@ -7,8 +7,8 @@ libdir = basedir + 'lib' - $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) - $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) +# $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) +# $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' debian/patches/series0000644000000000000000000000007612254144030012030 0ustar 02_test_deactivate_BEGIN_headers.diff 04_drop_tidy_part.patch debian/patches/04_drop_tidy_part.patch0000644000000000000000000000521012254151566015171 0ustar Description: drop the 'tidy' part of tests ruby-tidy is Ruby 1.8 only, and should disappear from the archive Author: Cédric Boutillier Last-Update: 2013-12-17 Forwarded: no --- a/spec/lib/matchers.rb +++ b/spec/lib/matchers.rb @@ -2,7 +2,7 @@ require 'bluecloth' -require 'tidy' +#require 'tidy' require 'diff/lcs' require 'diff/lcs/callbacks' require 'spec/lib/constants' @@ -132,26 +132,26 @@ ### Variant of the regular TransformMatcher that normalizes the two strings using the 'tidy' ### library before comparing. - class TidyTransformMatcher < TransformMatcher + #class TidyTransformMatcher < TransformMatcher - TIDY_OPTIONS = {} + # TIDY_OPTIONS = {} - ### Set the matcher's expected output to a tidied version of the input +html+. - def initialize( html ) - @tidy = Tidy.open( TIDY_OPTIONS ) - @html = @tidy.clean( html ) - end - - - ### Returns true if the HTML generated by the given +bluecloth+ object matches the - ### expected HTML after normalizing them both with 'tidy'. - def matches?( bluecloth ) - @bluecloth = bluecloth - @output_html = @tidy.clean( bluecloth.to_html ) - return @output_html == @html - end + # ### Set the matcher's expected output to a tidied version of the input +html+. + # def initialize( html ) + # @tidy = Tidy.open( TIDY_OPTIONS ) + # @html = @tidy.clean( html ) + # end + + + # ### Returns true if the HTML generated by the given +bluecloth+ object matches the + # ### expected HTML after normalizing them both with 'tidy'. + # def matches?( bluecloth ) + # @bluecloth = bluecloth + # @output_html = @tidy.clean( bluecloth.to_html ) + # return @output_html == @html + # end - end + #end class TransformRegexpMatcher @@ -210,9 +210,9 @@ end ### Generate a matcher that expects to match a normalized version of the specified +html+. - def be_transformed_into_normalized_html( html ) - return BlueCloth::Matchers::TidyTransformMatcher.new( html ) - end + #def be_transformed_into_normalized_html( html ) + # return BlueCloth::Matchers::TidyTransformMatcher.new( html ) + #end ### Generate a matcher that expects to match the given +regexp+. def be_transformed_into_html_matching( regexp ) --- a/spec/markdowntest_spec.rb +++ b/spec/markdowntest_spec.rb @@ -12,7 +12,7 @@ require 'rspec' require 'bluecloth' -require 'tidy' +#require 'tidy' require 'spec/lib/helpers' @@ -33,7 +33,7 @@ expected = resultfile.read options = { :smartypants => false } - the_markdown( markdown, options ).should be_transformed_into_normalized_html( expected ) + #the_markdown( markdown, options ).should be_transformed_into_normalized_html( expected ) end end debian/compat0000644000000000000000000000000211635725445010400 0ustar 7 debian/changelog0000644000000000000000000000431512254152101011034 0ustar ruby-bluecloth (2.2.0-4) unstable; urgency=medium * debian/control: + update my email address + bump Standards-Version to 3.9.5 (no changes needed) + drop obsolete DM-Upload-Allowed flag + use canonical URIs in Vcs-* fields + build with more recent gem2deb, to add ruby2.0 support and drop ruby1.8 + drop dependency on libtidy-ruby, which is ruby 1.8 only + drop transitional packages * debian/patches: + add 04_drop_tidy_part.patch to remove any use of tidy in the tests * debian/sources: remove lintian-overrides, about transitional packages * add rspec/autorun in ruby-tests.rb -- Cédric Boutillier Tue, 17 Dec 2013 22:32:38 +0100 ruby-bluecloth (2.2.0-3) unstable; urgency=low * Team upload. * Rebuild with recent gem2deb * Conforms to standards 3.9.3 -- Vincent Fourmond Sun, 24 Jun 2012 02:22:33 +0200 ruby-bluecloth (2.2.0-2) unstable; urgency=low * Refine wildcard pattern in debian/ruby-tests.rb to exclude files not supposed to be loaded directly. -- Cédric Boutillier Tue, 24 Jan 2012 14:31:16 +0100 ruby-bluecloth (2.2.0-1) unstable; urgency=low * New upstream release. * Upstream now ships a manpage. Using it instead of generating one. * Drop 01_tests_disable_rubygems.diff, applied upstream. * Refresh 02_test_deactivate_BEGIN_headers.diff, partially applied upstream. * Override lintian warning about duplicate descriptions for transitional packages. -- Cédric Boutillier Thu, 22 Dec 2011 00:27:48 +0100 ruby-bluecloth (2.1.0-1) unstable; urgency=low * New upstream release. * Migrated to gem2deb packaging. + rename source and binary packages. * Use Homepage field in debian/control (Closes: #615312, #615406). * Add myself to the uploaders. -- Cédric Boutillier Sat, 13 Aug 2011 12:46:54 +0200 libbluecloth-ruby (1.0.0-1) unstable; urgency=low [ Arnaud Cornet ] * Initial debian package. * Do not use the uploaders rule anymore. [ Paul van Tilburg ] * Added myself to the uploaders (currently as sponsor). -- Paul van Tilburg Wed, 18 Apr 2007 20:42:32 +0200 debian/ruby-tests.rb0000644000000000000000000000011112254144405011626 0ustar require "rspec/autorun" Dir['spec/**/*_spec.rb'].each { |f| require f } debian/ruby-bluecloth.manpages0000644000000000000000000000002511674467003013650 0ustar man/man1/bluecloth.1