[Bps-public-commit] rt-extension-jsgantt branch, master, updated. fbdc2482e8a12e7478fb94ece75f9c1bf974c397

? sunnavy sunnavy at bestpractical.com
Wed Sep 22 21:20:54 EDT 2010


The branch, master has been updated
       via  fbdc2482e8a12e7478fb94ece75f9c1bf974c397 (commit)
       via  32932e8b630fdb755fa2062a80ca344e4f3abf1d (commit)
       via  e47cb1dc46e3bd8c00c60e010e1096db72999ed8 (commit)
      from  96fb60dd53f047b716de48601541b8ac31331630 (commit)

Summary of changes:
 Changes                        |    4 ++++
 META.yml                       |    6 +++---
 inc/Module/Install.pm          |   10 +++++++---
 inc/Module/Install/Base.pm     |    2 +-
 inc/Module/Install/Can.pm      |    2 +-
 inc/Module/Install/Fetch.pm    |    2 +-
 inc/Module/Install/Makefile.pm |    2 +-
 inc/Module/Install/Metadata.pm |    2 +-
 inc/Module/Install/Win32.pm    |    2 +-
 inc/Module/Install/WriteAll.pm |    2 +-
 lib/RT/Extension/JSGantt.pm    |    6 +++++-
 11 files changed, 26 insertions(+), 14 deletions(-)

- Log -----------------------------------------------------------------
commit e47cb1dc46e3bd8c00c60e010e1096db72999ed8
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 23 09:22:01 2010 +0800

    fix the bug when there are remote links

diff --git a/lib/RT/Extension/JSGantt.pm b/lib/RT/Extension/JSGantt.pm
index 996b377..cadc475 100644
--- a/lib/RT/Extension/JSGantt.pm
+++ b/lib/RT/Extension/JSGantt.pm
@@ -61,6 +61,8 @@ sub TicketsInfo {
 
         my $parent = 0;
         if ( $Ticket->MemberOf->Count ) {
+            # skip the remote links
+            next unless $Ticket->MemberOf->First->TargetObj;
             $parent = $Ticket->MemberOf->First->TargetObj->id;
         }
 
@@ -132,6 +134,8 @@ sub TicketsInfo {
         my @depends;
         if ( $depends->Count ) {
             while ( my $d = $depends->Next ) {
+                # skip the remote links
+                next unless $d->TargetObj; 
                 push @depends, $d->TargetObj->id;
             }
         }

commit 32932e8b630fdb755fa2062a80ca344e4f3abf1d
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 23 09:23:32 2010 +0800

    update inc/

diff --git a/inc/Module/Install.pm b/inc/Module/Install.pm
index cdd8f6d..8ee839d 100644
--- a/inc/Module/Install.pm
+++ b/inc/Module/Install.pm
@@ -22,7 +22,6 @@ use strict 'vars';
 use Cwd        ();
 use File::Find ();
 use File::Path ();
-use FindBin;
 
 use vars qw{$VERSION $MAIN};
 BEGIN {
@@ -32,7 +31,7 @@ BEGIN {
 	# This is not enforced yet, but will be some time in the next few
 	# releases once we can make sure it won't clash with custom
 	# Module::Install extensions.
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 
 	# Storage for the pseudo-singleton
 	$MAIN    = undef;
@@ -231,7 +230,12 @@ sub preload {
 sub new {
 	my ($class, %args) = @_;
 
-	FindBin->again;
+	delete $INC{'FindBin.pm'};
+	{
+		# to suppress the redefine warning
+		local $SIG{__WARN__} = sub {};
+		require FindBin;
+	}
 
 	# ignore the prefix on extension modules built from top level.
 	my $base_path = Cwd::abs_path($FindBin::Bin);
diff --git a/inc/Module/Install/Base.pm b/inc/Module/Install/Base.pm
index b188c0d..b55bda3 100644
--- a/inc/Module/Install/Base.pm
+++ b/inc/Module/Install/Base.pm
@@ -4,7 +4,7 @@ package Module::Install::Base;
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 }
 
 # Suspend handler for "redefined" warnings
diff --git a/inc/Module/Install/Can.pm b/inc/Module/Install/Can.pm
index 6aae180..71ccc27 100644
--- a/inc/Module/Install/Can.pm
+++ b/inc/Module/Install/Can.pm
@@ -9,7 +9,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Fetch.pm b/inc/Module/Install/Fetch.pm
index 34a72c9..ec1f106 100644
--- a/inc/Module/Install/Fetch.pm
+++ b/inc/Module/Install/Fetch.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Makefile.pm b/inc/Module/Install/Makefile.pm
index 11ef306..5dfd0e9 100644
--- a/inc/Module/Install/Makefile.pm
+++ b/inc/Module/Install/Makefile.pm
@@ -8,7 +8,7 @@ use Fcntl qw/:flock :seek/;
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Metadata.pm b/inc/Module/Install/Metadata.pm
index a0adc83..cfe45b3 100644
--- a/inc/Module/Install/Metadata.pm
+++ b/inc/Module/Install/Metadata.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/Win32.pm b/inc/Module/Install/Win32.pm
index 4abe558..edc18b4 100644
--- a/inc/Module/Install/Win32.pm
+++ b/inc/Module/Install/Win32.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
diff --git a/inc/Module/Install/WriteAll.pm b/inc/Module/Install/WriteAll.pm
index 7e3b9fa..d0f6599 100644
--- a/inc/Module/Install/WriteAll.pm
+++ b/inc/Module/Install/WriteAll.pm
@@ -6,7 +6,7 @@ use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.98';
+	$VERSION = '1.00';
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }

commit fbdc2482e8a12e7478fb94ece75f9c1bf974c397
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 23 09:23:54 2010 +0800

    release 0.04

diff --git a/Changes b/Changes
index 50fb7df..6f2f6ef 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Revision history for RT-Extension-JSGantt
 
+0.04 Thu Sep 23 09:20:16 CST 2010
+
+    * in case there are remote links
+
 0.03 Wed Jun 30 02:49:02 CST 2010
 
     tweak the way we figure out Start/End Dates:
diff --git a/META.yml b/META.yml
index 8ab1fce..9e5ff63 100644
--- a/META.yml
+++ b/META.yml
@@ -1,5 +1,5 @@
 ---
-abstract: ''
+abstract: 'Gantt charts for your tickets'
 author:
   - 'sunnavy C<< <sunnavy at bestpractical.com> >>'
   - 'sunnavy <sunnavy at bestpractical.com>'
@@ -8,7 +8,7 @@ build_requires:
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
-generated_by: 'Module::Install version 0.98'
+generated_by: 'Module::Install version 1.00'
 license: gplv2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -22,4 +22,4 @@ requires:
   JSON: 0
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.03
+version: 0.04
diff --git a/lib/RT/Extension/JSGantt.pm b/lib/RT/Extension/JSGantt.pm
index cadc475..5c89f01 100644
--- a/lib/RT/Extension/JSGantt.pm
+++ b/lib/RT/Extension/JSGantt.pm
@@ -1,6 +1,6 @@
 package RT::Extension::JSGantt;
 
-our $VERSION = '0.03';
+our $VERSION = '0.04';
 
 use warnings;
 use strict;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list