debian/0000755000000000000000000000000012574053513007173 5ustar debian/patches/0000755000000000000000000000000012574053513010622 5ustar debian/patches/no_rubygems_nor_bundler0000644000000000000000000000216312574053513015471 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' debian/patches/series0000644000000000000000000000010212574053513012030 0ustar use_systemwide_installation no_rubygems_nor_bundler fix_test_path debian/patches/fix_test_path0000644000000000000000000000126612574053513013413 0ustar Author: Gunnar Wolf Forwarded: not-needed Last-Update: 2013-05-23 Description: Explicitly declare 'test' in the tests' search path Index: git/test/html2haml_test.rb =================================================================== --- git.orig/test/html2haml_test.rb +++ git/test/html2haml_test.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$: << './test' require 'test_helper' class Html2HamlTest < MiniTest::Unit::TestCase Index: git/test/erb_test.rb =================================================================== --- git.orig/test/erb_test.rb +++ git/test/erb_test.rb @@ -1,3 +1,4 @@ +$: << './test' require 'test_helper' class ErbTest < MiniTest::Unit::TestCase debian/patches/use_systemwide_installation0000644000000000000000000000121112574053513016372 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/html2haml.10000644000000000000000000000272112574053513011147 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/watch0000644000000000000000000000014712574053513010226 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/html2haml .*/html2haml-(.*).tar.gz debian/source/0000755000000000000000000000000012574053513010473 5ustar debian/source/format0000644000000000000000000000001412574053513011701 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000227012574053513011046 0ustar ruby-html2haml (2.0.0-1) unstable; urgency=medium * New upstream version: - Now using Nokogiri instead of hpricot. (Closes: #796499) * Update Depends and Build-Depends. * Refresh patches. * Update debian/copyright. * Switch to debhelper compat level 9. * Update Vcs-* URL. * Bump Standards-Version, no changes required. * Add myself to the list of Uploaders. -- Jérémy Bobbio Wed, 09 Sep 2015 17:45:57 +0200 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/copyright0000644000000000000000000000442212574053513011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: html2haml Source: https://github.com/haml/html2haml Files: * Copyright: 2014 Stefan Natchev 2006-2015 Hampton Catlin, Nathan Weizenbaum and Norman Clarke 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. Files: debian/* Copyright: 2013-2015 Jérémy Bobbio 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/compat0000644000000000000000000000000212574053513010371 0ustar 9 debian/ruby-test-files.yaml0000644000000000000000000000006012574053513013111 0ustar --- - test/erb_test.rb - test/html2haml_test.rb debian/manpages0000644000000000000000000000002312574053513010704 0ustar debian/html2haml.1 debian/control0000644000000000000000000000235112574053513010577 0ustar Source: ruby-html2haml Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Gunnar Wolf , Jérémy Bobbio Build-Depends: debhelper (>= 9), gem2deb (>= 0.3.1~) Build-Depends-Indep: ruby-nokogiri (>= 1.6.0), ruby-erubis (>= 2.7.0), ruby-parser (>= 3.5), ruby-haml (>= 4.0.0), ruby-minitest (>= 4.4.0), rake, ruby-tilt Standards-Version: 3.9.6 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-html2haml.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-html2haml.git 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-nokogiri (>= 1.6.0), ruby-erubis (>= 2.7.0), ruby-parser (>= 3.5), ruby-haml (>= 4.0.0), ruby-tilt 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/rules0000755000000000000000000000023312574053513010251 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs -O--buildsystem=ruby Changelog.markdown debian/gbp.conf0000644000000000000000000000003612574053513010611 0ustar [DEFAULT] pristine-tar = True debian/ruby-html2haml.docs0000644000000000000000000000001212574053513012705 0ustar README.md