From: Tony Cook <tony@develop=help.com>
Date: Wed, 18 Apr 2007 13:50:13 +0000 (+0000)
Subject: changed t82inline.t to always rebuild the Inline::C generated module
X-Git-Tag: Imager-0.57_01~18
X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/22f9ca4817f8186a26a8f28232352815202c5dc5

changed t82inline.t to always rebuild the Inline::C generated module
to avoid test failures caused by old builds being left.

include the Imager version number in the AUTO_INCLUDE code so that
bugs fixed in a new release will convince Inline to rebuild generated
modules.

http://rt.cpan.org/Ticket/Display.html?id=26278
---

diff --git a/Changes b/Changes
index eaf0388c..3d9cf5b0 100644
--- a/Changes
+++ b/Changes
@@ -15,6 +15,10 @@ Bug fixes:
 
  - document the difference() method's mindist parameter, and debug it.
 
+ - put the Imager releaser number in the Inline::C generated code to
+   regenerate Inline code when a new release of Imager is installed.
+   http://rt.cpan.org/Ticket/Display.html?id=26278
+
 Imager 0.56 - 1 Apr 2007
 ===========
 
diff --git a/lib/Imager/ExtUtils.pm b/lib/Imager/ExtUtils.pm
index b6cbc381..93a63f51 100644
--- a/lib/Imager/ExtUtils.pm
+++ b/lib/Imager/ExtUtils.pm
@@ -3,7 +3,7 @@ use strict;
 
 use vars qw($VERSION);
 
-$VERSION = "1.000";
+$VERSION = "1.001";
 
 =head1 NAME
 
@@ -50,7 +50,8 @@ sub inline_config {
     {
      INC => $class->includes,
      TYPEMAPS => $class->typemap,
-     AUTO_INCLUDE => <<'CODE',
+     AUTO_INCLUDE => <<CODE,
+/* Inserted by Imager $Imager::VERSION */
 #include "imext.h"
 #include "imperl.h"
 DEFINE_IMAGER_CALLBACKS;
diff --git a/t/t82inline.t b/t/t82inline.t
index 55b44494..cdbc5ff9 100644
--- a/t/t82inline.t
+++ b/t/t82inline.t
@@ -13,6 +13,7 @@ plan skip_all => "Inline won't work in directories with spaces"
 plan tests => 9;
 require Inline;
 Inline->import(with => 'Imager');
+Inline->import("FORCE"); # force rebuild
 
 Inline->bind(C => <<'EOS');
 #include <math.h>