debian/0000755000000000000000000000000012207215315007164 5ustar debian/ruby-html2haml.docs0000644000000000000000000000001212207215315012676 0ustar README.md debian/gbp.conf0000644000000000000000000000003612207215315010602 0ustar [DEFAULT] pristine-tar = True debian/rules0000755000000000000000000000023312207215315010242 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs -O--buildsystem=ruby Changelog.markdown debian/control0000644000000000000000000000231212207215315010565 0ustar Source: ruby-html2haml Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Gunnar Wolf Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.1~) Build-Depends-Indep: ruby-hpricot (>= 0.8.6), ruby-erubis (>= 2.7.0), ruby-parser, ruby-haml (>= 4.0.0), ruby-minitest (>= 4.4.0), rake, ruby-tilt Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-html2haml.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-html2haml.git;a=summary Homepage: https://github.com/haml/html2haml XS-Ruby-Versions: all Package: ruby-html2haml Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-hpricot (>= 0.8.6), ruby-parser, ruby-haml (>= 4.0.0), ruby-tilt Recommends: ruby-erubis (>= 2.7.0) Description: Converts HTML into Haml This package was split by its upstream author from the 'Haml' gem (package ruby-haml). It allows converting between HTML and HAML markups, and while mainly aimed at being used within Ruby code, includes an executable wrapper that allows it to be called from the command line. debian/manpages0000644000000000000000000000002312207215315010675 0ustar debian/html2haml.1 debian/ruby-test-files.yaml0000644000000000000000000000006012207215315013102 0ustar --- - test/erb_test.rb - test/html2haml_test.rb debian/compat0000644000000000000000000000000212207215315010362 0ustar 7 debian/copyright0000644000000000000000000000440112207215315011116 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: html2haml Source: https://github.com/haml/html2haml Files: * Copyright: 2006-2013 Hampton Catlin, Nathan Weizenbaum and Norman Clarke License: MIT Copyright (c) 2006-2013 Hampton Catlin, Nathan Weizenbaum and Norman Clarke . 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. Files: debian/* Copyright: 2013 Gunnar Wolf License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License, or (at your opinion) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/changelog0000644000000000000000000000136212207215315011040 0ustar ruby-html2haml (1.0.1-3) unstable; urgency=low * Team upload. * Add missing Depends on ruby-tilt. (Closes: #721046) -- Jérémy Bobbio Tue, 27 Aug 2013 23:31:51 +0200 ruby-html2haml (1.0.1-2) unstable; urgency=low [ Jérémy Bobbio ] * Team upload. * Add git-buildpackage configuration. * Add missing Build-Depends on ruby-tilt. (Closes: #713136) * Remove cruft in debian/rules. * Ship upstream changelog. [ Gunnar Wolf ] * Removed extra boilerplate lines from debian/copyright. -- Jérémy Bobbio Sun, 23 Jun 2013 19:16:36 +0200 ruby-html2haml (1.0.1-1) unstable; urgency=low * Initial release (Closes: #709507) -- Gunnar Wolf Thu, 23 May 2013 16:38:22 -0500 debian/source/0000755000000000000000000000000012207215315010464 5ustar debian/source/format0000644000000000000000000000001412207215315011672 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014712207215315010217 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/html2haml .*/html2haml-(.*).tar.gz debian/html2haml.10000644000000000000000000000272112207215315011140 0ustar .TH html2haml 1 "May 23, 2013" .SH NAME html2haml - Transforms an HTML file into corresponding Haml code. .SH SYNOPSIS .B html2haml [options] [INPUT] [OUTPUT] .SH DESCRIPTION Transforms an HTML file into corresponding Haml code. .SH OPTIONS .TP 8 .B \-e, \-\-erb Parse ERb tags. .TP 8 .B \-\-no\-erb Don't parse ERb tags. .TP 8 .B \-r, \-\-rhtml Deprecated; same as \-\-erb .TP 8 .B \-\-no\-rhtml Deprecated; same as \-\-no-erb .TP 8 .B \-x, \-\-xhtml Parse the input using the more strict XHTML parser. .TP 8 \-\-html\-attributes Use HTML style attributes instead of Ruby hash style. .TP 8 .B \-E, \-\-ex[:in] Specify the default external and internal character encodings. .TP 8 .B \-s, \-\-stdin Read input from standard input instead of an input file .TP 8 .B \-\-trace Show a full traceback on error .TP 8 .B \-\-unix-newlines Use Unix-style newlines in written files. .TP 8 .B \-?, \-h, \-\-help Show this message .TP 8 .B \-v, \-\-version Print version .PP Please note this program's function is to make a \fIfirst approach\fR towards converting your HTML. Although usually it will give you a nearly good result, it will often need tweaking \- This is specially true when you are parsing RHTML, as it can include parsable and conditional tags which can be misinterpreted and break nesting. .SH AUTHOR This manual page was written by Gunnar Wolf , based on the command-line output of this program, for the Debian GNU/Linux system (but may be freely used by others). debian/patches/0000755000000000000000000000000012207215315010613 5ustar debian/patches/use_systemwide_installation0000644000000000000000000000121112207215315016363 0ustar Author: Gunnar Wolf Forwarded: not-needed Last-Update: 2013-05-23 Description: We should use Ruby's default path We should use Ruby's default path, irrespective on where the binary is located. Index: ruby-html2haml/bin/html2haml =================================================================== --- ruby-html2haml.orig/bin/html2haml 2013-05-23 16:39:45.000000000 -0500 +++ ruby-html2haml/bin/html2haml 2013-05-23 17:31:58.000000000 -0500 @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../lib/html2haml' +require 'html2haml' require 'html2haml/exec' opts = Html2haml::Exec::HTML2Haml.new(ARGV) debian/patches/fix_test_path0000644000000000000000000000104112207215315013373 0ustar Author: Gunnar Wolf Forwarded: not-needed Last-Update: 2013-05-23 Description: Explicitly declare 'test' in the tests' search path --- ruby-html2haml-1.0.1.orig/test/html2haml_test.rb +++ ruby-html2haml-1.0.1/test/html2haml_test.rb @@ -1,3 +1,4 @@ +$: << './test' require 'test_helper' class Html2HamlTest < MiniTest::Unit::TestCase --- ruby-html2haml-1.0.1.orig/test/erb_test.rb +++ ruby-html2haml-1.0.1/test/erb_test.rb @@ -1,3 +1,4 @@ +$: << './test' require 'test_helper' class ErbTest < MiniTest::Unit::TestCase debian/patches/series0000644000000000000000000000010212207215315012021 0ustar use_systemwide_installation no_rubygems_nor_bundler fix_test_path debian/patches/no_rubygems_nor_bundler0000644000000000000000000000216312207215315015462 0ustar Author: Gunnar Wolf Forwarded: not-needed Last-Update: 2013-05-23 Description: Skip the 'rubygems' and 'bundler' calls Index: ruby-html2haml/lib/html2haml.rb =================================================================== --- ruby-html2haml.orig/lib/html2haml.rb 2013-05-23 17:20:12.000000000 -0500 +++ ruby-html2haml/lib/html2haml.rb 2013-05-23 17:20:35.000000000 -0500 @@ -1,5 +1,6 @@ -require "rubygems" -gem "haml", ">= 3.2" +# require "rubygems" +#gem "haml", ">= 3.2" +require 'haml' require File.expand_path("../html2haml/version", __FILE__) require "haml/util" require "haml/parser" Index: ruby-html2haml/test/test_helper.rb =================================================================== --- ruby-html2haml.orig/test/test_helper.rb 2013-05-23 17:20:12.000000000 -0500 +++ ruby-html2haml/test/test_helper.rb 2013-05-23 17:20:12.000000000 -0500 @@ -1,10 +1,10 @@ -require "rubygems" +# require "rubygems" if ENV["COVERAGE"] require "simplecov" SimpleCov.start end -require "bundler/setup" +# require "bundler/setup" require "minitest/autorun" require "html2haml" require 'html2haml/html'