debian/0000755000000000000000000000000012254571124007171 5ustar debian/heckle.1.diff0000644000000000000000000000133212254571124011414 0ustar --- heckle.1.a 2009-04-26 01:11:55.000000000 +0200 +++ heckle.1.b 2009-04-26 01:13:17.000000000 +0200 @@ -19,6 +19,7 @@ .TP \fB\-F\fR, \fB\-\-force\fR Ignore initial test failures + Best used with \fB\-\-focus\fR .TP \fB\-\-assignments\fR @@ -32,11 +33,13 @@ .TP \fB\-T\fR, \fB\-\-timeout\fR SECONDS The maximum time for a test run in seconds + Used to catch infinite loops .TP \fB\-n\fR, \fB\-\-nodes\fR NODES Nodes to mutate -Possible values: call,cvasgn,dasgn,dasgn_curr,false,gasgn,iasgn,if,iter,lasgn,lit,str,true,until,while + +Possible values: call, cvasgn ,dasgn, dasgn_curr, false, gasgn, iasgn, if, iter, lasgn, lit, str, true, until, while .TP \fB\-x\fR, \fB\-\-exclude\-nodes\fR NODES Nodes to exclude debian/ruby-tests.rb0000644000000000000000000000047412254562135011646 0ustar require 'rbconfig' ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']) # instead of using Inline's regular directory in the user's home, use # a temporary directory require 'tmpdir' ENV['INLINEDIR'] = Dir.mktmpdir exec "#{ruby} -I. -Itest/ -rminitest/autorun ./test/test_heckle.rb" debian/source/0000755000000000000000000000000012254567752010505 5ustar debian/source/format0000644000000000000000000000001412111135465011673 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000156612254564442010266 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 UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1) %: dh $@ --buildsystem=ruby --with ruby override_dh_installman: # Generate manpage: INLINEDIR=. help2man --no-info --include=debian/heckle.h2m \ -h "-I lib/ bin/heckle -h" --version-string $(UPSTREAM_VERSION) /usr/bin/ruby >heckle.1 patch heckle.1 © 2012 Gunnar Wolf License: MIT 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. debian/ruby-heckle.manpages0000644000000000000000000000001112111135465013104 0ustar heckle.1 debian/control0000644000000000000000000000243312254567723010610 0ustar Source: ruby-heckle Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier , Gunnar Wolf Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.5.0~), ruby-ruby2ruby, ruby-parser, help2man Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-heckle.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-heckle.git;a=summary Homepage: http://www.rubyforge.org/projects/seattlerb XS-Ruby-Versions: all Package: ruby-heckle Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-ruby2ruby, ruby-parser Description: Mutation tester (unit test sadism(tm)/test pentester) for Ruby Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything. . Think about it as pen-testing. It's like hiring a white-hat hacker to try to break into your server and making sure you detect it. You learn the most by trying to break things and watching the outcome in an act of unit test sadism. debian/changelog0000644000000000000000000001054112254570061011043 0ustar ruby-heckle (2.0.0~b1-1) unstable; urgency=medium * Imported Upstream version 2.0.0~b1 + now supports newer versions of Ruby * debian/copyright: use DEP5 copyright-format/1.0 official URL for Format field * debian/control: + remove obsolete DM-Upload-Allowed flag + use canonical URI in Vcs-* fields + build for all supported Ruby versions (Closes: #730897) + build with newer gem2deb to add support for Ruby2.0 (and drop Ruby1.8) + replace ruby1.8 by ruby | ruby-interpreter in Depends * debian/patches: + drop 10_correct-path-for-ruby-interpreter (not needed any more) + refresh 11_no-rubygemsa and 13_optional-zentest + add no-loadpath-manipulation.patch to prevent modifications of the loadpath when launching bin/heckle * debian/rules: fix help2man command to generate the man page * debian/ruby-tests.rb: add test/ in loadpath and load minitest when running tests * Drop transitional packages -- Cédric Boutillier Thu, 19 Dec 2013 14:01:22 +0100 ruby-heckle (1.4.3-4) unstable; urgency=low * Use ruby1.8 in help2man command in debian/rules (Closes: #676200) * Remove hecklex.1 manpage as there is no hecklex binary * Override lintian warning about duplicate description of transitional packages * Build-depend on gem2deb >=0.3.0 -- Cédric Boutillier Tue, 26 Jun 2012 11:27:04 +0200 ruby-heckle (1.4.3-3) unstable; urgency=low [ Cédric Boutillier ] * Repackaged using the gem2deb infrastructure [ Gunnar Wolf ] * Make the package build only for Ruby 1.8, as it depends on ruby-parsetree. FWIW, using ruby-sourcify was attempted, but it's not a complete enough replacement. -- Gunnar Wolf Sat, 19 May 2012 17:52:59 -0500 libheckle-ruby (1.4.3-2.1) unstable; urgency=low * Non-maintainer upload. * FTBFS: /usr/lib/ruby/vendor_ruby/inline.rb:53:in `require': no such file to load -- rubygems (LoadError) (Closes: #642787). - debian/control: add rubygems to Build-Depends. * updated Maintainer field by previous maintainer's request. thanks Sebastien Delafond for the great works. -- HIGUCHI Daisuke (VDR dai) Sun, 08 Jan 2012 16:15:17 +0900 libheckle-ruby (1.4.3-2) unstable; urgency=low * Dropped 12_parsetree-backwards-compatibility.dpatch * Depend on libparsetree-ruby1.8 (>= 3.0.4) * Depend on libruby2ruby-ruby1.8 (>= 1.2.4) -- Tobias Grimm Sun, 06 Dec 2009 10:53:13 +0100 libheckle-ruby (1.4.3-1) unstable; urgency=low * New upstream release. * Bumped standards revision to 3.8.3. * Move some build dependencies to Build-Depends-Indep. * Fixed lintian warnings. -- Sebastien Delafond Fri, 20 Nov 2009 13:24:38 +0100 libheckle-ruby (1.4.2-2) unstable; urgency=low * Build-depend on libparsetree-ruby1.8 (>= 2.2.1-2) to fix FTBS caused by chanegs in Ruby 1.8.7.174 (Closes: #533927) * Increased standards version to 3.8.2 -- Tobias Grimm Fri, 10 Jul 2009 11:28:27 +0200 libheckle-ruby (1.4.2-1) unstable; urgency=low * New upstream release * Added debian/watch * Added Homepage field to debian/control * Using cdbs now * Added Debian Ruby Extras Maintainers to list of uploaders * Added package VCS links to debian/control * Updated debian/copyright * Generate and install manpage for /usr/bin/heckle * Added 12_parsetree-backwards-compatibility.dpatch * Added 13_optional-zentest.dpatch -- Tobias Grimm Tue, 28 Apr 2009 21:02:03 +0200 libheckle-ruby (1.4.1-4) unstable; urgency=low * Removed an unnecessary 'require rubygems' (Closes: #521110) * Added Tobias Grimm to uploaders * Bumped standards version to 3.8.1, debhelper (>= 5) * Changed section to 'ruby' -- Tobias Grimm Tue, 21 Apr 2009 21:17:38 +0200 libheckle-ruby (1.4.1-3) unstable; urgency=low * Correct typos in dependencies (Closes: #483033). -- Sebastien Delafond Mon, 26 May 2008 20:28:41 -0700 libheckle-ruby (1.4.1-2) unstable; urgency=low * Added missing dependency on libruby2ruby-ruby1.8. -- Sebastien Delafond Sun, 11 May 2008 21:31:52 -0700 libheckle-ruby (1.4.1-1) unstable; urgency=low * Initial Release (Closes: #480583). -- Sebastien Delafond Sat, 10 May 2008 19:40:37 -0700 debian/patches/0000755000000000000000000000000012254565434010627 5ustar debian/patches/no-loadpath-manipulation.patch0000644000000000000000000000056212254565433016556 0ustar Description: do not modify the LOAD_PATH to find the library Author: Cédric Boutillier Origin: vendor Forwarded: no Last-Update: 2013-12-19 --- a/bin/heckle +++ b/bin/heckle @@ -1,8 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') -$LOAD_PATH << 'lib' - require 'heckle_runner' exit HeckleRunner.run debian/patches/series0000644000000000000000000000010212254565174012036 0ustar 11_no-rubygems 13_optional-zentest no-loadpath-manipulation.patch debian/patches/13_optional-zentest0000644000000000000000000000146612254561514014376 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 13_optional-zentest.dpatch by Tobias Grimm ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Debian doesn't have ZenTest packaged, so use it only if it is ## DP: available via rubygems. @DPATCH@ --- a/lib/test_unit_heckler.rb +++ b/lib/test_unit_heckler.rb @@ -2,7 +2,13 @@ require 'test/unit/testcase' require 'heckle' -require 'zentest_mapping' +begin + require 'zentest_mapping' + HAVE_ZENTEST = true +rescue LoadError + # if zentest isn't available, just don't use it + HAVE_ZENTEST = false +end $: << 'lib' << 'test' @@ -102,7 +108,7 @@ self.class.load_test_files unless @@tests_loaded end - include ZenTestMapping + include ZenTestMapping if HAVE_ZENTEST def tests_pass? silence_stream do debian/patches/11_no-rubygems0000644000000000000000000000064712254561266013330 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 11_no-rubygems.dpatch by Tobias Grimm ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Don't require rubygems - all required libs are available in ## DP: depending packages. @DPATCH@ --- a/lib/heckle.rb +++ b/lib/heckle.rb @@ -1,4 +1,3 @@ -require 'rubygems' require 'ruby_parser' require 'sexp_processor' require 'ruby2ruby' debian/ruby-heckle.examples0000644000000000000000000000001112111135465013127 0ustar sample/* debian/heckle.h2m0000644000000000000000000000044412111135465011032 0ustar [name] heckle \- mutate Ruby code and run test [description] `heckle' is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything. debian/watch0000644000000000000000000000014112111135465010212 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/heckle .*/heckle-(.*).tar.gz debian/ruby-heckle.docs0000644000000000000000000000001312111135465012243 0ustar README.txt debian/compat0000644000000000000000000000000212111135465010363 0ustar 7