[DRE-commits] r3470 - in packages/libheckle-ruby/trunk: . debian debian/patches

Tobias Grimm tiber-guest at alioth.debian.org
Sun Apr 26 11:47:44 UTC 2009


Author: tiber-guest
Date: 2009-04-26 11:47:44 +0000 (Sun, 26 Apr 2009)
New Revision: 3470

Added:
   packages/libheckle-ruby/trunk/debian/
   packages/libheckle-ruby/trunk/debian/changelog
   packages/libheckle-ruby/trunk/debian/compat
   packages/libheckle-ruby/trunk/debian/control
   packages/libheckle-ruby/trunk/debian/copyright
   packages/libheckle-ruby/trunk/debian/docs
   packages/libheckle-ruby/trunk/debian/heckle.1
   packages/libheckle-ruby/trunk/debian/heckle.1.diff
   packages/libheckle-ruby/trunk/debian/heckle.h2m
   packages/libheckle-ruby/trunk/debian/hecklex.1
   packages/libheckle-ruby/trunk/debian/install
   packages/libheckle-ruby/trunk/debian/libheckle-ruby1.8.dirs
   packages/libheckle-ruby/trunk/debian/manpages
   packages/libheckle-ruby/trunk/debian/patches/
   packages/libheckle-ruby/trunk/debian/patches/00list
   packages/libheckle-ruby/trunk/debian/patches/10_correct-path-for-ruby-interpreter.dpatch
   packages/libheckle-ruby/trunk/debian/patches/11_no-rubygems.dpatch
   packages/libheckle-ruby/trunk/debian/patches/12_fix-tests.dpatch.sik
   packages/libheckle-ruby/trunk/debian/patches/12_parsetree-backwards-compatibility.dpatch
   packages/libheckle-ruby/trunk/debian/patches/13_optional-zentest.dpatch
   packages/libheckle-ruby/trunk/debian/rules
   packages/libheckle-ruby/trunk/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: packages/libheckle-ruby/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/libheckle-ruby/trunk/debian/changelog
===================================================================
--- packages/libheckle-ruby/trunk/debian/changelog	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/changelog	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,41 @@
+libheckle-ruby (1.4.2-1) UNRELEASED; 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 <etobi at debian.org>  Sat, 25 Apr 2009 21:54:58 +0200
+
+libheckle-ruby (1.4.1-4) unstable; urgency=low
+
+  * Removed an unnecessary 'require rubygems' (Closes: #521110)
+  * Added Tobias Grimm <etobi at debian.org> to uploaders
+  * Bumped standards version to 3.8.1, debhelper (>= 5)
+  * Changed section to 'ruby'
+
+ -- Tobias Grimm <etobi at debian.org>  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 <seb at debian.org>  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 <seb at debian.org>  Sun, 11 May 2008 21:31:52 -0700
+
+libheckle-ruby (1.4.1-1) unstable; urgency=low
+
+  * Initial Release (Closes: #480583).
+
+ -- Sebastien Delafond <seb at debian.org>  Sat, 10 May 2008 19:40:37 -0700

Added: packages/libheckle-ruby/trunk/debian/compat
===================================================================
--- packages/libheckle-ruby/trunk/debian/compat	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/compat	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1 @@
+5

Added: packages/libheckle-ruby/trunk/debian/control
===================================================================
--- packages/libheckle-ruby/trunk/debian/control	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/control	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,39 @@
+Source: libheckle-ruby
+Section: ruby
+Priority: optional
+Maintainer: Sebastien Delafond <seb at debian.org>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>, Tobias Grimm <etobi at debian.org>
+Build-Depends: debhelper (>= 5), cdbs, dpatch, help2man, ruby1.8, libruby2ruby-ruby1.8, libparsetree-ruby1.8
+Standards-Version: 3.8.1
+Homepage: http://seattlerb.rubyforge.org/heckle
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-ruby-extras/packages/libheckle-ruby/
+Vcs-Svn: svn://svn.debian.org/pkg-ruby-extras/packages/libheckle-ruby/
+
+Package: libheckle-ruby1.8
+Architecture: all
+Depends: ${misc:Depends}, ruby1.8, libruby2ruby-ruby1.8, libparsetree-ruby1.8
+Description: Heckle is a mutation tester
+ 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.
+
+Package: libheckle-ruby
+Architecture: all
+Depends: ${misc:Depends}, libheckle-ruby1.8
+Description: Heckle is a mutation tester
+ 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.
+ .
+ This package provide documentation and depends on the package 
+ containing the actual library for the default Ruby version.

Added: packages/libheckle-ruby/trunk/debian/copyright
===================================================================
--- packages/libheckle-ruby/trunk/debian/copyright	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/copyright	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,40 @@
+Upstream Homepage:
+    http://seattlerb.rubyforge.org/heckle/
+    http://rubyforge.org/projects/seattlerb/
+
+Upstream Authors:
+    Ryan Davis
+    Kevin Clark
+
+Debian Maintainers:
+    Sebastien Delafond <seb at debian.org> on
+    Tobias Grimm <tg at e-tobi.net>
+
+Copyright:
+    (C) 2006 - 2008 Ryan Davis, Kevin Clark
+
+Copyright (Debian packaging):
+    (C) 2008 - 2009 Sebastien Delafond
+    (C) 2008 - 2009 Tobias Grimm
+
+Licence:
+    (The MIT License)
+
+    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.

Added: packages/libheckle-ruby/trunk/debian/docs
===================================================================
--- packages/libheckle-ruby/trunk/debian/docs	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/docs	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,3 @@
+README.txt
+sample
+test

Added: packages/libheckle-ruby/trunk/debian/heckle.1
===================================================================
--- packages/libheckle-ruby/trunk/debian/heckle.1	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/heckle.1	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,47 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH HECKLEC "1" "April 2009" "hecklec 1.4.2" "User Commands"
+.SH NAME
+hecklec \- mutate Ruby code and run test
+.SH SYNOPSIS
+.B heckle
+\fIclass_name \fR[\fImethod_name\fR]
+.SH 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..TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Loudly explain heckle run
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Prints Heckle's version number
+.TP
+\fB\-t\fR, \fB\-\-tests\fR TEST_PATTERN
+Location of tests (glob)
+.TP
+\fB\-F\fR, \fB\-\-force\fR
+Ignore initial test failures
+Best used with \fB\-\-focus\fR
+.TP
+\fB\-\-assignments\fR
+Only mutate assignments
+.TP
+\fB\-b\fR, \fB\-\-branches\fR
+Only mutate branches
+.TP
+\fB\-f\fR, \fB\-\-focus\fR
+Apply the eye of sauron
+.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
+.TP
+\fB\-x\fR, \fB\-\-exclude\-nodes\fR NODES
+Nodes to exclude
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Show this message

Added: packages/libheckle-ruby/trunk/debian/heckle.1.diff
===================================================================
--- packages/libheckle-ruby/trunk/debian/heckle.1.diff	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/heckle.1.diff	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,25 @@
+--- heckle.1.a	2009-04-26 01:11:55.000000000 +0200
++++ heckle.1.b	2009-04-26 01:13:17.000000000 +0200
+@@ -21,6 +21,7 @@
+ .TP
+ \fB\-F\fR, \fB\-\-force\fR
+ Ignore initial test failures
++
+ Best used with \fB\-\-focus\fR
+ .TP
+ \fB\-\-assignments\fR
+@@ -34,11 +35,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

Added: packages/libheckle-ruby/trunk/debian/heckle.h2m
===================================================================
--- packages/libheckle-ruby/trunk/debian/heckle.h2m	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/heckle.h2m	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,8 @@
+[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.

Added: packages/libheckle-ruby/trunk/debian/hecklex.1
===================================================================
--- packages/libheckle-ruby/trunk/debian/hecklex.1	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/hecklex.1	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,47 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH HECKLEC "1" "April 2009" "hecklec 1.4.2" "User Commands"
+.SH NAME
+hecklec \- mutate Ruby code and run test
+.SH SYNOPSIS
+.B heckle
+\fIclass_name \fR[\fImethod_name\fR]
+.SH 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..TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Loudly explain heckle run
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Prints Heckle's version number
+.TP
+\fB\-t\fR, \fB\-\-tests\fR TEST_PATTERN
+Location of tests (glob)
+.TP
+\fB\-F\fR, \fB\-\-force\fR
+Ignore initial test failures
+Best used with \fB\-\-focus\fR
+.TP
+\fB\-\-assignments\fR
+Only mutate assignments
+.TP
+\fB\-b\fR, \fB\-\-branches\fR
+Only mutate branches
+.TP
+\fB\-f\fR, \fB\-\-focus\fR
+Apply the eye of sauron
+.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
+.TP
+\fB\-x\fR, \fB\-\-exclude\-nodes\fR NODES
+Nodes to exclude
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Show this message

Added: packages/libheckle-ruby/trunk/debian/install
===================================================================
--- packages/libheckle-ruby/trunk/debian/install	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/install	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,2 @@
+lib/*    usr/lib/ruby/1.8/
+bin/*    usr/bin/

Added: packages/libheckle-ruby/trunk/debian/libheckle-ruby1.8.dirs
===================================================================
--- packages/libheckle-ruby/trunk/debian/libheckle-ruby1.8.dirs	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/libheckle-ruby1.8.dirs	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,2 @@
+usr/lib/ruby/1.8
+usr/bin

Added: packages/libheckle-ruby/trunk/debian/manpages
===================================================================
--- packages/libheckle-ruby/trunk/debian/manpages	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/manpages	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1 @@
+heckle.1

Added: packages/libheckle-ruby/trunk/debian/patches/00list
===================================================================
--- packages/libheckle-ruby/trunk/debian/patches/00list	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/patches/00list	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,4 @@
+10_correct-path-for-ruby-interpreter
+11_no-rubygems
+12_parsetree-backwards-compatibility
+13_optional-zentest

Added: packages/libheckle-ruby/trunk/debian/patches/10_correct-path-for-ruby-interpreter.dpatch
===================================================================
--- packages/libheckle-ruby/trunk/debian/patches/10_correct-path-for-ruby-interpreter.dpatch	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/patches/10_correct-path-for-ruby-interpreter.dpatch	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,16 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_correct-path-for-ruby-interpreter.dpatch by Sebastien Delafond <seb at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Correct path to Ruby interpreter.
+
+ at DPATCH@
+diff -urNad heckle-1.4.1~/bin/heckle heckle-1.4.1/bin/heckle
+--- heckle-1.4.1~/bin/heckle	2007-06-05 19:52:31.000000000 -0700
++++ heckle-1.4.1/bin/heckle	2008-05-11 09:14:52.000000000 -0700
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby
++#!/usr/bin/ruby1.8
+ 
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
+ require 'test_unit_heckler'


Property changes on: packages/libheckle-ruby/trunk/debian/patches/10_correct-path-for-ruby-interpreter.dpatch
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/libheckle-ruby/trunk/debian/patches/11_no-rubygems.dpatch
===================================================================
--- packages/libheckle-ruby/trunk/debian/patches/11_no-rubygems.dpatch	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/patches/11_no-rubygems.dpatch	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,16 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 11_no-rubygems.dpatch by Tobias Grimm <etobi at debian.org>
+##
+## 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.
+
+ at DPATCH@
+diff -urNad libheckle-ruby-1.4.1~/lib/heckle.rb libheckle-ruby-1.4.1/lib/heckle.rb
+--- libheckle-ruby-1.4.1~/lib/heckle.rb	2007-06-06 04:52:31.000000000 +0200
++++ libheckle-ruby-1.4.1/lib/heckle.rb	2009-03-24 23:27:45.000000000 +0100
+@@ -1,4 +1,3 @@
+-require 'rubygems'
+ require 'parse_tree'
+ require 'ruby2ruby'
+ require 'timeout'


Property changes on: packages/libheckle-ruby/trunk/debian/patches/11_no-rubygems.dpatch
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/libheckle-ruby/trunk/debian/patches/12_fix-tests.dpatch.sik
===================================================================
--- packages/libheckle-ruby/trunk/debian/patches/12_fix-tests.dpatch.sik	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/patches/12_fix-tests.dpatch.sik	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,137 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_fix-tests.dpatch by Tobias Grimm <etobi at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad libheckle-ruby-1.4.2~/lib/heckle.rb libheckle-ruby-1.4.2/lib/heckle.rb
+--- libheckle-ruby-1.4.2~/lib/heckle.rb	2009-04-26 13:05:17.000000000 +0200
++++ libheckle-ruby-1.4.2/lib/heckle.rb	2009-04-26 13:05:33.000000000 +0200
+@@ -1,5 +1,6 @@
+ require 'parse_tree'
+ require 'sexp_processor'
++require 'unified_ruby'
+ require 'ruby2ruby'
+ require 'timeout'
+ require 'tempfile'
+@@ -17,6 +18,8 @@
+ 
+   class Timeout < Timeout::Error; end
+ 
++  include UnifiedRuby
++
+   ##
+   # The version of Heckle you are using.
+ 
+@@ -498,13 +501,7 @@
+   end
+ 
+   def current_tree
+-    ur = Unifier.new
+-
+-    sexp = ParseTree.translate(klass_name.to_class, method_name)
+-    raise "sexp invalid for #{klass_name}##{method_name}" if sexp == [nil]
+-    sexp = ur.process(sexp)
+-
+-    rewrite sexp
++    rewrite Sexp.from_array(ParseTree.translate(klass_name.to_class, method_name))
+   end
+ 
+   def reset
+diff -urNad libheckle-ruby-1.4.2~/test/test_heckle.rb libheckle-ruby-1.4.2/test/test_heckle.rb
+--- libheckle-ruby-1.4.2~/test/test_heckle.rb	2009-04-26 13:05:13.000000000 +0200
++++ libheckle-ruby-1.4.2/test/test_heckle.rb	2009-04-26 13:05:17.000000000 +0200
+@@ -25,10 +25,7 @@
+ end
+ 
+ class HeckleTestCase < Test::Unit::TestCase
+-  unless defined? Mini then
+-    undef_method :default_test
+-    alias :refute_equal :assert_not_equal
+-  end
++  undef_method :default_test unless defined? Mini
+ 
+   def setup
+     @nodes ||= Heckle::MUTATABLE_NODES
+@@ -43,7 +40,7 @@
+   end
+ 
+   def teardown
+-    @heckler.reset if defined?(@heckler) && @heckler
++    @heckler.reset if defined? @heckler
+   end
+ end
+ 
+@@ -161,8 +158,8 @@
+ 
+     3.times { @heckler.process(@heckler.current_tree) }
+ 
+-    refute_equal original_tree, @heckler.current_tree
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_tree, @heckler.current_tree
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset
+     assert_equal original_tree[2], @heckler.current_tree[2]
+@@ -173,7 +170,7 @@
+     original_tree = @heckler.current_tree.deep_clone
+ 
+     @heckler.process(@heckler.current_tree)
+-    refute_equal original_tree, @heckler.current_tree
++    assert_not_equal original_tree, @heckler.current_tree
+ 
+     @heckler.reset_tree
+     assert_equal original_tree, @heckler.current_tree
+@@ -184,16 +181,16 @@
+     original_mutatees = @heckler.mutatees.deep_clone
+ 
+     @heckler.process(@heckler.current_tree)
+-    refute_equal original_tree, @heckler.current_tree
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_tree, @heckler.current_tree
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset
+     assert_equal original_tree, @heckler.current_tree
+     assert_equal original_mutatees, @heckler.mutatees
+ 
+     3.times { @heckler.process(@heckler.current_tree) }
+-    refute_equal original_tree, @heckler.current_tree
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_tree, @heckler.current_tree
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset
+     assert_equal original_tree, @heckler.current_tree
+@@ -204,7 +201,7 @@
+     original_mutatees = @heckler.mutatees.deep_clone
+ 
+     @heckler.process(@heckler.current_tree)
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset_mutatees
+     assert_equal original_mutatees, @heckler.mutatees
+@@ -709,8 +706,8 @@
+                      s(:lasgn, :x, s(:nil)),
+                      s(:iter,
+                        s(:call, s(:lvar, :x), :each, s(:arglist)),
+-                       s(:lasgn, :y),
+-                       s(:lvar, :y)))))
++                       s(:dasgn_curr, :y),
++                       s(:dvar, :y)))))
+     
+     # This call causes the replacement of [:lasgn, :x...] above to
+     # become [:lasgn, :nil].  We then reset the tree to ensure that
+@@ -728,8 +725,8 @@
+                      s(:lasgn, :x, s(:array, s(:lit, 1), s(:lit, 2), s(:lit, 3))),
+                      s(:iter,
+                        s(:call, s(:lvar, :x), :each, s(:arglist)),
+-                       s(:lasgn, :_heckle_dummy),
+-                       s(:call, nil, :y, s(:arglist))))))
++                       s(:dasgn_curr, :y),
++                       s(:dvar, :y)))))
+ 
+     @heckler.process(@heckler.current_tree)
+     assert_equal(expected, @heckler.current_tree)

Added: packages/libheckle-ruby/trunk/debian/patches/12_parsetree-backwards-compatibility.dpatch
===================================================================
--- packages/libheckle-ruby/trunk/debian/patches/12_parsetree-backwards-compatibility.dpatch	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/patches/12_parsetree-backwards-compatibility.dpatch	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,139 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_parsetree-backwards-compatibility.dpatch by Tobias Grimm <etobi at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: heckle 1.4.2 requires a newer ParseTree version than the on  currently available
+## DP: in Debian. This patch reverts some of the changes in 1.4.2, so that it works
+## DP: with the older ParseTree version again.
+
+ at DPATCH@
+diff -urNad libheckle-ruby-1.4.2~/lib/heckle.rb libheckle-ruby-1.4.2/lib/heckle.rb
+--- libheckle-ruby-1.4.2~/lib/heckle.rb	2009-04-26 13:05:17.000000000 +0200
++++ libheckle-ruby-1.4.2/lib/heckle.rb	2009-04-26 13:05:33.000000000 +0200
+@@ -1,5 +1,6 @@
+ require 'parse_tree'
+ require 'sexp_processor'
++require 'unified_ruby'
+ require 'ruby2ruby'
+ require 'timeout'
+ require 'tempfile'
+@@ -17,6 +18,8 @@
+ 
+   class Timeout < Timeout::Error; end
+ 
++  include UnifiedRuby
++
+   ##
+   # The version of Heckle you are using.
+ 
+@@ -498,13 +501,7 @@
+   end
+ 
+   def current_tree
+-    ur = Unifier.new
+-
+-    sexp = ParseTree.translate(klass_name.to_class, method_name)
+-    raise "sexp invalid for #{klass_name}##{method_name}" if sexp == [nil]
+-    sexp = ur.process(sexp)
+-
+-    rewrite sexp
++    rewrite Sexp.from_array(ParseTree.translate(klass_name.to_class, method_name))
+   end
+ 
+   def reset
+diff -urNad libheckle-ruby-1.4.2~/test/test_heckle.rb libheckle-ruby-1.4.2/test/test_heckle.rb
+--- libheckle-ruby-1.4.2~/test/test_heckle.rb	2009-04-26 13:05:13.000000000 +0200
++++ libheckle-ruby-1.4.2/test/test_heckle.rb	2009-04-26 13:05:17.000000000 +0200
+@@ -25,10 +25,7 @@
+ end
+ 
+ class HeckleTestCase < Test::Unit::TestCase
+-  unless defined? Mini then
+-    undef_method :default_test
+-    alias :refute_equal :assert_not_equal
+-  end
++  undef_method :default_test unless defined? Mini
+ 
+   def setup
+     @nodes ||= Heckle::MUTATABLE_NODES
+@@ -43,7 +40,7 @@
+   end
+ 
+   def teardown
+-    @heckler.reset if defined?(@heckler) && @heckler
++    @heckler.reset if defined? @heckler
+   end
+ end
+ 
+@@ -161,8 +158,8 @@
+ 
+     3.times { @heckler.process(@heckler.current_tree) }
+ 
+-    refute_equal original_tree, @heckler.current_tree
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_tree, @heckler.current_tree
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset
+     assert_equal original_tree[2], @heckler.current_tree[2]
+@@ -173,7 +170,7 @@
+     original_tree = @heckler.current_tree.deep_clone
+ 
+     @heckler.process(@heckler.current_tree)
+-    refute_equal original_tree, @heckler.current_tree
++    assert_not_equal original_tree, @heckler.current_tree
+ 
+     @heckler.reset_tree
+     assert_equal original_tree, @heckler.current_tree
+@@ -184,16 +181,16 @@
+     original_mutatees = @heckler.mutatees.deep_clone
+ 
+     @heckler.process(@heckler.current_tree)
+-    refute_equal original_tree, @heckler.current_tree
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_tree, @heckler.current_tree
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset
+     assert_equal original_tree, @heckler.current_tree
+     assert_equal original_mutatees, @heckler.mutatees
+ 
+     3.times { @heckler.process(@heckler.current_tree) }
+-    refute_equal original_tree, @heckler.current_tree
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_tree, @heckler.current_tree
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset
+     assert_equal original_tree, @heckler.current_tree
+@@ -204,7 +201,7 @@
+     original_mutatees = @heckler.mutatees.deep_clone
+ 
+     @heckler.process(@heckler.current_tree)
+-    refute_equal original_mutatees, @heckler.mutatees
++    assert_not_equal original_mutatees, @heckler.mutatees
+ 
+     @heckler.reset_mutatees
+     assert_equal original_mutatees, @heckler.mutatees
+@@ -709,8 +706,8 @@
+                      s(:lasgn, :x, s(:nil)),
+                      s(:iter,
+                        s(:call, s(:lvar, :x), :each, s(:arglist)),
+-                       s(:lasgn, :y),
+-                       s(:lvar, :y)))))
++                       s(:dasgn_curr, :y),
++                       s(:dvar, :y)))))
+     
+     # This call causes the replacement of [:lasgn, :x...] above to
+     # become [:lasgn, :nil].  We then reset the tree to ensure that
+@@ -728,8 +725,8 @@
+                      s(:lasgn, :x, s(:array, s(:lit, 1), s(:lit, 2), s(:lit, 3))),
+                      s(:iter,
+                        s(:call, s(:lvar, :x), :each, s(:arglist)),
+-                       s(:lasgn, :_heckle_dummy),
+-                       s(:call, nil, :y, s(:arglist))))))
++                       s(:dasgn_curr, :y),
++                       s(:dvar, :y)))))
+ 
+     @heckler.process(@heckler.current_tree)
+     assert_equal(expected, @heckler.current_tree)


Property changes on: packages/libheckle-ruby/trunk/debian/patches/12_parsetree-backwards-compatibility.dpatch
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/libheckle-ruby/trunk/debian/patches/13_optional-zentest.dpatch
===================================================================
--- packages/libheckle-ruby/trunk/debian/patches/13_optional-zentest.dpatch	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/patches/13_optional-zentest.dpatch	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,35 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 13_optional-zentest.dpatch by Tobias Grimm <etobi at debian.org>
+##
+## 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.
+
+ at DPATCH@
+diff -urNad libheckle-ruby-1.4.2~/lib/test_unit_heckler.rb libheckle-ruby-1.4.2/lib/test_unit_heckler.rb
+--- libheckle-ruby-1.4.2~/lib/test_unit_heckler.rb	2009-02-09 01:47:07.000000000 +0100
++++ libheckle-ruby-1.4.2/lib/test_unit_heckler.rb	2009-04-26 13:33:24.000000000 +0200
+@@ -3,7 +3,13 @@
+ require 'test/unit/autorunner'
+ 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'
+ 
+@@ -103,7 +109,7 @@
+     self.class.load_test_files unless @@tests_loaded
+   end
+ 
+-  include ZenTestMapping
++  include ZenTestMapping if HAVE_ZENTEST
+ 
+   def tests_pass?
+     silence_stream do


Property changes on: packages/libheckle-ruby/trunk/debian/patches/13_optional-zentest.dpatch
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/libheckle-ruby/trunk/debian/rules
===================================================================
--- packages/libheckle-ruby/trunk/debian/rules	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/rules	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+
+DEB_INSTALL_CHANGELOGS_ALL := History.txt
+
+build: build-stamp
+
+build-stamp:
+	# Run unit tests:
+	/usr/bin/ruby1.8 -w -Ilib:test test/test_heckle.rb
+
+	# Generate manpage:
+	help2man --no-info --include=debian/heckle.h2m \
+	  -h "bin/heckle -h"  -v "bin/heckle -V" /usr/bin/ruby1.8  >heckle.1
+	patch heckle.1 <debian/heckle.1.diff
+
+	touch build-stamp
+
+clean::
+	rm -f heckle.1 build-stamp


Property changes on: packages/libheckle-ruby/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/libheckle-ruby/trunk/debian/watch
===================================================================
--- packages/libheckle-ruby/trunk/debian/watch	                        (rev 0)
+++ packages/libheckle-ruby/trunk/debian/watch	2009-04-26 11:47:44 UTC (rev 3470)
@@ -0,0 +1,2 @@
+version=2
+http://rubyforge.org/frs/?group_id=1513 .*heckle-(.*)\.tgz




More information about the Pkg-ruby-extras-commits mailing list