Changeset 185
- Timestamp:
- 01/25/07 02:48:25 (3 years ago)
- Location:
- trunk/tools/PluginBuilder
- Files:
-
- 4 modified
-
lib/PluginBuilder.pm (modified) (5 diffs, 1 prop)
-
plugin-builder.cgi (modified) (1 prop)
-
plugin-builder.pl (modified) (2 diffs, 1 prop)
-
t/podcoverage.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/PluginBuilder/lib/PluginBuilder.pm
- Property svn:keywords changed from Id Revision to Id
r153 r185 1 # $Id$ 2 1 3 package PluginBuilder; 2 our $VERSION = '0.00_4'; 3 # $Id$ 4 our $VERSION = '0.00_5'; 4 5 use strict; 5 6 use warnings; … … 25 26 26 27 sub new { 27 my $class = shift; 28 my $proto = shift; 29 my $class = ref $proto || $proto; 28 30 my $self = {}; 29 31 bless $self, $class; … … 87 89 88 90 eval{ GetOptions(%o) }; # Grab the command-line options. 89 90 # Gracefully bail-out if something went wrong. 91 # And gracefully bail-out if something went wrong. 91 92 if( $@ || !${$o{'archive=s'}} || 92 93 !${$o{'build-dir=s'}} || … … 141 142 # Populate the path with the files. 142 143 for my $file ( @{ $self->{types}{$type}{files} } ) { 143 my $dest = File::Spec->catfile( $ dir, scalar(fileparse($file)) );144 my $dest = File::Spec->catfile( $path, scalar(fileparse($file)) ); 144 145 copy( $file, $dest ) or die "Can't copy $file, $dest: $!" 145 146 unless $self->{debug}; … … 179 180 =head2 new 180 181 182 PluginBuilder->new(); 183 181 184 Return a new C<PluginBuilder> object. 182 185 -
trunk/tools/PluginBuilder/plugin-builder.cgi
- Property svn:keywords changed from Id Revision to Id
-
trunk/tools/PluginBuilder/plugin-builder.pl
- Property svn:keywords changed from Id Revision to Id
r151 r185 3 3 use strict; 4 4 use warnings; 5 6 # Run from the PluginBuilder directory or an MT directory with 7 # PluginBuilder installed. 5 8 use lib qw( lib plugins/tools/PluginBuilder/lib ); 6 9 use PluginBuilder; 7 10 our $VERSION = $PluginBuilder::VERSION; 11 8 12 my $p = PluginBuilder->new(); 13 9 14 $p->get_options(); 15 10 16 $p->build(); 11 17 … … 13 19 =head1 NAME 14 20 15 plugin-builder.pl - Command-line, Movable Type plugin stub builder21 plugin-builder.pl - Movable Type command-line plugin stub builder 16 22 17 23 =head1 SYNOPSIS -
trunk/tools/PluginBuilder/t/podcoverage.t
r148 r185 40 40 my $pc = Pod::Coverage->new( 41 41 package => $module, 42 trustme => $trustme,43 pod_from => $pod_from,42 # trustme => $trustme, 43 # pod_from => $pod_from, 44 44 ); 45 45 my $coverage = $pc->coverage; … … 53 53 $uncovered += $naked_count; 54 54 is($coverage, 1, "$module: $cover_count/" . ($cover_count+$naked_count)) 55 or diag( "pod coverage is$c%. missing pod for: " . join(", ", sort @naked));55 or diag($pc->why_unrated . " $c%. missing pod for: " . join(", ", sort @naked)); 56 56 } else { 57 57 SKIP: { skip("$module: " . $pc->why_unrated, 1); }
