debian/0000755000000000000000000000000011772715626007204 5ustar debian/watch0000644000000000000000000000013511771437144010227 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ronn .*/ronn-(.*).tar.gz debian/ruby-tests.rb0000644000000000000000000000004611771437144011645 0ustar Dir["test/*.rb"].each {|f| require f} debian/ruby-ronn.manpages0000644000000000000000000000003511771437144012645 0ustar man/ronn-format.7 man/ronn.1 debian/rules0000755000000000000000000000070111771437144010255 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/control0000644000000000000000000000204711772715626010612 0ustar Source: ruby-ronn Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Martin Ueding Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-contest, ruby-hpricot (>= 0.8.2), ruby-rdiscount (>= 1.5.8), ruby-mustache (>= 0.7.0), ruby-json Standards-Version: 3.9.3 Homepage: http://rtomayko.github.com/ronn XS-Ruby-Versions: all Package: ruby-ronn Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${misc:Depends}, ruby | ruby-interpreter, ruby-hpricot (>= 0.8.2), ruby-rdiscount (>= 1.5.8), ruby-mustache (>= 0.7.0) Description: Builds manuals from Markdown Ronn builds manuals. It converts simple, human readable textfiles to roff for terminal display, and also to HTML for the web. . The source format includes all of Markdown but has a more rigid structure and syntax extensions for features commonly found in manpages (definition lists, link notation, etc.). The ronn-format(7) manual page defines the format in detail. debian/patches/0000755000000000000000000000000011772715626010633 5ustar debian/patches/not-require-rubygems0000644000000000000000000000171411771437144014661 0ustar Description: Do not require rubygems Since this is not deployed as a ruby gem any more, requiring rubygems does not make sense. --- Origin: vendor Forwarded: no Reviewed-By: Cédric Boutillier Last-Update: 2011-10-04 --- ruby-ronn-0.7.3.orig/bin/ronn +++ ruby-ronn-0.7.3/bin/ronn @@ -43,25 +43,9 @@ end ## # Libraries and LOAD_PATH shenanigans -begin - require 'rdiscount' - require 'hpricot' - require 'ronn' -rescue LoadError => boom - if boom.to_s =~ /ronn/ - libdir = File.expand_path("../../lib", __FILE__).sub(%r|^#{Dir.pwd}/|, './') - if File.directory?(libdir) && !$:.include?(libdir) - warn "warn: #{boom}. adding #{libdir} to RUBYLIB ..." - $:.unshift libdir - retry - end - elsif !defined?(Gem) - warn "warn: #{boom}. loading rubygems ..." - require 'rubygems' - retry - end - abort boom.to_s -end +require 'rdiscount' +require 'hpricot' +require 'ronn' ## # Argument defaults debian/patches/series0000644000000000000000000000012711772715626012050 0ustar not-require-rubygems use-correct-interpreter disable_tests_relying_on_hash_order.patch debian/patches/disable_tests_relying_on_hash_order.patch0000644000000000000000000000076711772715626021136 0ustar Description: Disable tests relying on ordered hashes Bug: https://github.com/rtomayko/ronn/issues/56 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674380 Origin: vendor --- a/test/test_ronn.rb +++ b/test/test_ronn.rb @@ -80,7 +80,7 @@ if expected != output File.open(wrong, 'wb') { |f| f.write(output) } diff = `diff -u #{dest} #{wrong} 2>/dev/null` - flunk diff + #flunk diff elsif File.exist?(wrong) File.unlink(wrong) end debian/patches/use-correct-interpreter0000644000000000000000000000644311771437144015354 0ustar Description: Use the correct interpreter in the unit tests --- Origin: vendor Forwarded: no Reviewed-By: Cédric Boutillier Last-Update: 2011-11-04 --- a/test/test_ronn.rb +++ b/test/test_ronn.rb @@ -5,17 +5,19 @@ # setup PATH so that we execute the right ronn command bindir = File.dirname(testdir) + "/bin" - ENV['PATH'] = "#{bindir}:#{ENV['PATH']}" +# ENV['PATH'] = "#{bindir}:#{ENV['PATH']}" # make sure the load path is setup correctly libdir = File.expand_path("#{testdir}/../lib") $:.unshift(libdir) unless $:.any? { |path| File.expand_path(path) == libdir } ENV['RUBYLIB'] = $:.join(':') + ronn = ENV['RUBY_TEST_BIN'] + " " + bindir + "/ronn" + require 'ronn' test "takes ronn text on stdin and produces roff on stdout" do - output = `echo '# hello(1) -- hello world' | ronn --date=2009-11-23` + output = `echo '# hello(1) -- hello world' | #{ronn} --date=2009-11-23` lines = output.split("\n") assert_equal 7, lines.size assert_equal %[.\\" generated with Ronn/v#{Ronn::version}], lines.shift @@ -37,12 +39,12 @@ end test "produces html instead of roff with the --html argument" do - output = `echo '# hello(1) -- hello world' | ronn --html` + output = `echo '# hello(1) -- hello world' | #{ronn} --html` assert_match(/

NAME<\/h2>/, canonicalize(output)) end test "produces html fragment with the --fragment argument" do - output = `echo '# hello(1) -- hello world' | ronn --fragment` + output = `echo '# hello(1) -- hello world' | #{ronn} --fragment` assert_equal [ "
", "

NAME

", @@ -53,17 +55,17 @@ end test "abbides by the RONN_MANUAL environment variable" do - output = `echo '# hello(1) -- hello world' | RONN_MANUAL='Some Manual' ronn --html` + output = `echo '# hello(1) -- hello world' | RONN_MANUAL='Some Manual' #{ronn} --html` assert_match(/Some Manual/, output) end test "abbides by the RONN_DATE environment variable" do - output = `echo '# hello(1) -- hello world' | RONN_DATE=1979-01-01 ronn --html` + output = `echo '# hello(1) -- hello world' | RONN_DATE=1979-01-01 #{ronn} --html` assert_match(/January 1979/, output) end test "abbides by the RONN_ORGANIZATION environment variable" do - output = `echo '# hello(1) -- hello world' | RONN_ORGANIZATION='GitHub' ronn --html` + output = `echo '# hello(1) -- hello world' | RONN_ORGANIZATION='GitHub' #{ronn} --html` assert_match(/GitHub/, output) end @@ -73,7 +75,7 @@ next unless File.exist?(dest) wrong = dest + '.wrong' test File.basename(source, '.ronn') + ' HTML' do - output = `ronn --pipe --html --fragment #{source}` + output = `#{ronn} --pipe --html --fragment #{source}` expected = File.read(dest) rescue '' if expected != output File.open(wrong, 'wb') { |f| f.write(output) } @@ -91,7 +93,7 @@ next unless File.exist?(dest) wrong = dest + '.wrong' test File.basename(source, '.ronn') + ' roff' do - output = `ronn --pipe --roff --date=1979-01-01 #{source}`. + output = `#{ronn} --pipe --roff --date=1979-01-01 #{source}`. split("\n", 4).last # remove ronn version comments expected = File.read(dest) rescue '' if expected != output debian/copyright0000644000000000000000000000301211772715626011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ronn Source: https://github.com/rtomayko/ronn Files: * Copyright: Ryan Tomayko Chris Wanstrath Suraj N. Kurapati Hallison Batista License: Expat Files: debian/* Copyright: 2011 Martin Ueding 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/changelog0000644000000000000000000000100311772715626011050 0ustar ruby-ronn (0.7.3-2) unstable; urgency=low * Team upload. * Disable tests relying on ordered hashes (Closes: #674380) * Build against gem2deb >=0.3.0~ * Bump Standards-Version to 3.9.3 (no changes needed) * Update debian/copyright to DEP-5 copyright-format/1.0 -- Cédric Boutillier Thu, 28 Jun 2012 00:52:20 +0200 ruby-ronn (0.7.3-1) unstable; urgency=low * Initial release (Closes: #643672) -- Martin Ueding Sun, 25 Sep 2011 15:09:46 +0200 debian/compat0000644000000000000000000000000211771437144010375 0ustar 7 debian/ruby-ronn.docs0000644000000000000000000000001211771437144011775 0ustar README.md debian/source/0000755000000000000000000000000011771437144010477 5ustar debian/source/format0000644000000000000000000000001411771437144011705 0ustar 3.0 (quilt)