debian/0000755000000000000000000000000012211601232007154 5ustar debian/watch0000644000000000000000000000014312167471616010230 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/coderay .*/coderay-(.*).tar.gz debian/patches/0000755000000000000000000000000012167471616010630 5ustar debian/patches/0002-Add-lack-file-for-UnitTest.patch0000644000000000000000000000147112167471616017111 0ustar From: Youhei SASAKI Date: Tue, 28 Feb 2012 19:13:27 +0900 Subject: Add lack file for UnitTest Signed-off-by: Youhei SASAKI --- test/lib/assert_warning.rb | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 test/lib/assert_warning.rb diff --git a/test/lib/assert_warning.rb b/test/lib/assert_warning.rb new file mode 100644 index 0000000..828b464 --- /dev/null +++ b/test/lib/assert_warning.rb @@ -0,0 +1,15 @@ +class Test::Unit::TestCase + + def assert_warning expected_warning + require 'stringio' + oldstderr = $stderr + $stderr = StringIO.new + yield + $stderr.rewind + given_warning = $stderr.read.chomp + assert_equal expected_warning, given_warning + ensure + $stderr = oldstderr + end + +end debian/patches/0003-Add-Encoding.default_external.patch0000644000000000000000000000131412167471616017771 0ustar From: Youhei SASAKI Date: Tue, 28 Feb 2012 20:44:20 +0900 Subject: Add Encoding.default_external Add Encoding.default_external = "UTF-8" due to sbuild/pbuilder locale settings. This might be Debian specific. Signed-off-by: Youhei SASAKI --- test/functional/basic.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/test/functional/basic.rb b/test/functional/basic.rb index 3053b54..37d52f0 100755 --- a/test/functional/basic.rb +++ b/test/functional/basic.rb @@ -1,4 +1,5 @@ # encoding: utf-8 +Encoding.default_external = "UTF-8" if defined? Encoding require 'test/unit' require File.expand_path('../../lib/assert_warning', __FILE__) debian/patches/series0000644000000000000000000000016212167471616012044 0ustar 0001-Remove-rubygems-depends.patch 0002-Add-lack-file-for-UnitTest.patch 0003-Add-Encoding.default_external.patch debian/patches/0001-Remove-rubygems-depends.patch0000644000000000000000000000366012167471616016744 0ustar From: Youhei SASAKI Date: Tue, 28 Feb 2012 19:30:32 +0900 Subject: Remove rubygems depends Signed-off-by: Youhei SASAKI --- lib/coderay/encoders/json.rb | 11 ++--------- lib/coderay/for_redcloth.rb | 13 +------------ 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/lib/coderay/encoders/json.rb b/lib/coderay/encoders/json.rb index a9e40dc..51a8539 100644 --- a/lib/coderay/encoders/json.rb +++ b/lib/coderay/encoders/json.rb @@ -20,15 +20,8 @@ module Encoders begin require 'json' rescue LoadError - begin - require 'rubygems' unless defined? Gem - gem 'json' - require 'json' - rescue LoadError - $stderr.puts "The JSON encoder needs the JSON library.\n" \ - "Please gem install json." - raise - end + $stderr.puts "The JSON encoder needs the JSON library.\n" \ + raise end register_for :json diff --git a/lib/coderay/for_redcloth.rb b/lib/coderay/for_redcloth.rb index f9df32b..88ef585 100644 --- a/lib/coderay/for_redcloth.rb +++ b/lib/coderay/for_redcloth.rb @@ -13,18 +13,7 @@ module CodeRay module ForRedCloth def self.install - gem 'RedCloth', '>= 4.0.3' if defined? gem require 'redcloth' - unless RedCloth::VERSION.to_s >= '4.0.3' - if defined? gem - raise 'CodeRay.for_redcloth needs RedCloth version 4.0.3 or later. ' + - "You have #{RedCloth::VERSION}. Please gem install RedCloth." - else - $".delete 'redcloth.rb' # sorry, but it works - require 'rubygems' - return install # retry - end - end unless RedCloth::VERSION.to_s >= '4.2.2' warn 'CodeRay.for_redcloth works best with RedCloth version 4.2.2 or later.' end @@ -92,4 +81,4 @@ module CodeRay end -CodeRay::ForRedCloth.install \ No newline at end of file +CodeRay::ForRedCloth.install debian/ruby-test-files.yaml0000644000000000000000000000004212167471616013117 0ustar --- - ./test/functional/suite.rb debian/compat0000644000000000000000000000000212167471616010377 0ustar 7 debian/coderay.10000644000000000000000000000174112167471616010714 0ustar .TH CODERAY 1 "August 2009" .SH NAME coderay \- scans a file and generates syntax-highlighted html output .SH SYNOPSIS .B coderay [\fIoptions\fR] [\fIfilename\fR] .br .SH DESCRIPTION This manual page documents briefly the .B coderay command. .SH OPTIONS .TP .B \- Specify language of input file. .TP .B \- Specify format of output file (default HTML) .SH SEE ALSO Run .B coderay without any arguments to see full usage message. .TP .BR coderay_stylesheet (1). .br .SH AUTHOR coderay was written by Kornelius Kalnbach. .PP This manual page was written by Joshua Timberman , for the Debian project (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU Lesser General Public License can be found in /usr/share/common-licenses/LGPL-2.1. debian/control0000644000000000000000000000337512211601104010565 0ustar Source: coderay Section: ruby Priority: optional Maintainer: Joshua Timberman Uploaders: Debian Ruby Extras Maintainers , Deepak Tripathi , Antonio Terceiro , Youhei SASAKI Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-redcloth Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/coderay.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/coderay.git;a=summary Homepage: http://coderay.rubychan.de XS-Ruby-Versions: all Package: ruby-coderay Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby library for syntax highlighting CodeRay is a Ruby library that can scan an input file or text in a web page and encode it as syntax highlighted HTML output. . CodeRay supports many input languages including: C, C++, CSS, Delphi, diff, Groovy, HTML, RHTML (Erb+HTML), Nitro-XHTML, Java, JavaScript, JSON, PHP, Python, Ruby, SQL and YAML. . CodeRay can output to HTML, JSON, XML, Yaml. Package: coderay Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-coderay Description: Helper programs for CodeRay Ruby lib for syntax highlighting CodeRay is a Ruby library that can scan an input file or text in a web page and encode it as syntax highlighted HTML output. . CodeRay supports many input languages including: C, C++, CSS, Delphi, diff, Groovy, HTML, RHTML (Erb+HTML), Nitro-XHTML, Java, JavaScript, JSON, PHP, Python, Ruby, SQL and YAML. . CodeRay can output to HTML, JSON, XML, Yaml. . The coderay binary scans a file and outputs in HTML. debian/rules0000755000000000000000000000034712167471616010265 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: dh_auto_install mkdir -p debian/coderay/usr/bin mv debian/ruby-coderay/usr/bin/* debian/coderay/usr/bin/ rmdir debian/ruby-coderay/usr/bin debian/coderay.manpages0000644000000000000000000000005512167471616012344 0ustar debian/coderay.1 debian/coderay_stylesheet.1 debian/coderay_stylesheet.10000644000000000000000000000167212167471616013170 0ustar .TH CODERAY_STYLESHEET 1 "August 2009" .SH NAME coderay_stylesheet \- output the default cascading stylesheet used by CodeRay. .SH SYNOPSIS .B coderay_stylesheet .SH DESCRIPTION This script simply outputs the default cascading stylesheet used by CodeRay, so that it may be saved and customized for usage on a web site using the CodeRay library. .SH AUTHOR coderay and coderay_stylesheet was written by Kornelius Kalnbach. .PP This manual page was written by Joshua Timberman , for the Debian project (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU Lesser General Public License can be found in /usr/share/common-licenses/LGPL-2.1. debian/changelog0000644000000000000000000000637112211601232011035 0ustar coderay (1.1.0-1) unstable; urgency=low * Imported Upstream version 1.1.0 * Drop transitional packages -- Youhei SASAKI Wed, 04 Sep 2013 18:51:14 +0900 coderay (1.0.9-1) unstable; urgency=low [ Cédric Boutillier ] * Team upload. * debian/control: remove obsolete DM-Upload-Allowed flag * use canonical URI in Vcs-* fields [ Youhei SASAKI ] * Imported Upstream version 1.0.9 * Bump Standard Version: 3.9.4 -- Youhei SASAKI Tue, 28 May 2013 22:05:47 +0900 coderay (1.0.8-1) experimental; urgency=low * Imported Upstream version 1.0.8 * Add ruby-redcloth into Build-Depends * Format URI update: DEP5 -> Formant/1.0 -- Youhei SASAKI Sun, 20 Jan 2013 06:44:17 +0900 coderay (1.0.6-2) unstable; urgency=low * Team upload. * Bump build dependency on gem2deb to >= 0.3.0~. -- Paul van Tilburg Wed, 27 Jun 2012 21:08:34 +0200 coderay (1.0.6-1) unstable; urgency=low * Imported Upstream version 1.0.6 -- Youhei SASAKI Thu, 26 Apr 2012 19:26:09 +0900 coderay (1.0.5-1) unstable; urgency=low * New Upstream version: 1.0.5 * Update patch: 0001-Remove-require-rubygems.patch * New patch: 0002-Add-lack-file-for-UnitTest.patch * Update debian/doc: name of README file was changed * Update debian/control: + Add me to Uploaders + Bump Standard Version: 3.9.3 + Add "Priority: extra" to Transitional packages * Unapply patches after build -- Youhei SASAKI Tue, 28 Feb 2012 19:46:58 +0900 coderay (0.9.8-1) unstable; urgency=low * New upstream release + This release does not embed term/ansicolor, and therefore does not conflict with ruby-term-ansicolor anymore (Closes: #599820). * Migrate packages to new Ruby packaging policy + rename lib*-ruby to ruby-* + use gem2deb * Add myself to Uploaders -- Antonio Terceiro Fri, 19 Aug 2011 19:24:58 -0700 coderay (0.9.7-1) UNRELEASED; urgency=low * New upstream release, does not embed ansicolor.rb (Closes: #599820). * debian/copyright + update and convert to dep5 format. * debian/control + add VCS fields + coderay depends on ruby package, not ruby1.8 * debian/rules + get-orig-source to fix upstream tarball mtime + work around libsetup modifying source (see #571981) -- Jérémy Lal Mon, 31 Jan 2011 00:58:11 +0100 coderay (0.9.4-1) UNRELEASED; urgency=low * New upstream release * debian/control + add ruby1.9.1 package + standard version to 3.9.1 * debian/rules + 1.9.1 package needs to remove same as 1.8 package -- Joshua Timberman Fri, 03 Sep 2010 01:17:22 -0600 coderay (0.9.3-1) UNRELEASED; urgency=low * New upstream release * Bumped Standard Version to 3.8.4 * debian/control + added myself to uploaders. * debian/copright + added debian's copyright information. * added debian/source. * Switch to quilt 3.0 format. -- Deepak Tripathi Sun, 16 May 2010 00:39:17 -0400 coderay (0.8.359-1) unstable; urgency=low * Initial release (Closes: #540662) -- Joshua Timberman Sun, 09 Aug 2009 08:07:54 -0600 debian/coderay.docs0000644000000000000000000000002212167471616011473 0ustar README_INDEX.rdoc debian/source/0000755000000000000000000000000012167471616010501 5ustar debian/source/format0000644000000000000000000000001412167471616011707 0ustar 3.0 (quilt) debian/source/lintian-overrides0000644000000000000000000000023512167471616014062 0ustar coderay source: duplicate-short-description libcoderay-ruby libcoderay-ruby1.8 coderay source: duplicate-long-description libcoderay-ruby libcoderay-ruby1.8 debian/copyright0000644000000000000000000000675512167471616011151 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://coderay.rubychan.de/ Upstream-Contact: Kornelius Kalnbach Copyright: 2009, Kornelius Kalnbach License: LGPL-2.1 Files: debian/* Copyright: 2011 Jérémy Lal 2010 Deepak Tripathi 2009 Opscode, Inc 2009 Joshua Timberman License: GPL-3 Files: lib/coderay/encoders/term.rb Copyright: 2009 Rob Aldred (http://robaldred.co.uk) 2009 Nathan Weizenbaum (http://nex-3.com) License: MIT Files: lib/coderay/scanners/sql.rb Copyright: 2009 Josh Goebel License: LGPL-2.1 Files: lib/coderay/scanners/yaml.rb Copyright: 2004 Jamis Buck License: BSD-3-clause License: GPL-3 On Debian systems, full text of the GPL-3 license can be found in `/usr/share/common-licenses/GPL-3' License: LGPL-2.1 On Debian systems, full text of the LGPL-2.1 license can be found in `/usr/share/common-licenses/LGPL-2.1' License: MIT 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: BSD-3-clause 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. . * The names of its contributors may not 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.