Changeset 12404
- Timestamp:
- 08/30/10 08:06:05 (18 months ago)
- Location:
- trunk/Padre-Plugin-ShellScript
- Files:
-
- 5 edited
-
Changes (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
lib/Padre/Document/ShellScript.pm (modified) (1 diff)
-
lib/Padre/Plugin/ShellScript.pm (modified) (3 diffs)
-
t/01-load.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-ShellScript/Changes
r12029 r12404 1 1 0.02 to be released 2 2 compatibility to newer versions of Padre (ZENOG) 3 added $VERSION variable (ZENOG) 4 comment support (ZENOG) 3 5 4 6 0.01 2009.02.01 -
trunk/Padre-Plugin-ShellScript/Makefile.PL
r12029 r12404 2 2 use inc::Module::Install; 3 3 4 name 'Padre-Plugin-ShellScript';5 license 'perl';6 author 'Claudio Ramirez';7 all_from 'lib/Padre/Plugin/ShellScript.pm';4 name 'Padre-Plugin-ShellScript'; 5 license 'perl'; 6 author 'Claudio Ramirez'; 7 all_from 'lib/Padre/Plugin/ShellScript.pm'; 8 8 9 requires 'perl'=> '5.008001';10 requires 'Exporter'=> 0;11 requires 'Padre'=> '0.65';12 requires 'Class::Autouse'=> '1.26';9 requires 'perl' => '5.008001'; 10 requires 'Exporter' => 0; 11 requires 'Padre' => '0.65'; 12 requires 'Class::Autouse' => '1.26'; 13 13 14 test_requires 'Test::More'=> '0.47';15 test_requires 'Test::NeedsDisplay'=> '1.05';16 test_requires 'Test::NoWarnings'=> '0.084';17 no_index 'directory' => [ qw{ t xt eg share inc privinc}];14 test_requires 'Test::More' => '0.47'; 15 test_requires 'Test::NeedsDisplay' => '1.05'; 16 test_requires 'Test::NoWarnings' => '0.084'; 17 no_index 'directory' => [qw{ t xt eg share inc privinc}]; 18 18 19 homepage 'http://padre.perlide.org/'; 20 bugtracker 'http://padre.perlide.org/'; 21 repository 'http://svn.perlide.org/padre/trunk/Padre-Plugin-ShellScript'; 19 homepage 'http://padre.perlide.org/'; 20 bugtracker 'http://padre.perlide.org/'; 21 repository 'http://svn.perlide.org/padre/trunk/Padre-Plugin-ShellScript'; 22 22 23 #mailinglist 'http://mail.perlide.org/mailman/listinfo/padre-dev'; 23 24 24 25 is_padre_plugin; # authors: Install Module::Install::PadrePlugin 25 26 26 27 WriteAll; -
trunk/Padre-Plugin-ShellScript/lib/Padre/Document/ShellScript.pm
r3129 r12404 6 6 use Padre::Document (); 7 7 8 our $VERSION = '0. 27';8 our $VERSION = '0.02'; 9 9 our @ISA = 'Padre::Document'; 10 10 11 11 sub get_command { 12 my $self= shift;13 my $debug= shift;12 my $self = shift; 13 my $debug = shift; 14 14 15 # Check the file name 16 my $filename = $self->filename; 15 # TODO get shebang 17 16 18 my $dir = File::Basename::dirname($filename); 19 chdir $dir; 20 return $debug 21 ? qq{"sh" "-xv" "$filename"} 22 : qq{"sh" "$filename"}; 17 # Check the file name 18 my $filename = $self->filename; 19 20 my $dir = File::Basename::dirname($filename); 21 chdir $dir; 22 return $debug 23 ? qq{"sh" "-xv" "$filename"} 24 : qq{"sh" "$filename"}; 23 25 } 24 26 25 sub errstr { 26 # Empty placeholder 27 } 28 27 sub comment_lines_str { 28 return '#'; 29 } 29 30 30 31 1; 31 # Copyright 2008-2009 The Padre development team as listed in Padre.pm. 32 33 # Copyright 2008-2010 The Padre development team as listed in Padre.pm. 32 34 # LICENSE 33 35 # This program is free software; you can redistribute it and/or -
trunk/Padre-Plugin-ShellScript/lib/Padre/Plugin/ShellScript.pm
r12029 r12404 5 5 use 5.008; 6 6 7 our $VERSION = '0.02'; 8 7 9 use base 'Padre::Plugin'; 8 10 use Class::Autouse 'Padre::Document::ShellScript'; … … 10 12 # The plugin name to show in the Plugin Manager and menus 11 13 sub plugin_name { 12 'Shell Script Plugin';14 'Shell Script'; 13 15 } 14 16 15 17 # Declare the Padre interfaces this plugin uses 16 18 sub padre_interfaces { 17 'Padre::Plugin' => 0.43, 18 'Padre::Document' => 0.43, 19 'Padre::Wx::Main' => 0.43, 20 ; 19 'Padre::Plugin' => 0.43, 'Padre::Document' => 0.43, 'Padre::Wx::Main' => 0.43,; 21 20 } 22 21 23 22 sub registered_documents { 24 'application/x-shellscript' => 'Padre::Document::ShellScript', 25 ; 23 'application/x-shellscript' => 'Padre::Document::ShellScript',; 26 24 } 27 25 28 26 # The command structure to show in the Plugins menu 29 27 sub menu_plugins_simple { 30 my $self = shift;31 'Shell Script' => [ Information => sub { $self->info() }, ];28 my $self = shift; 29 'Shell Script' => [ Information => sub { $self->info() }, ]; 32 30 } 33 31 34 32 sub info { 35 my $self = shift;33 my $self = shift; 36 34 37 # Generate the About dialog38 my $about = Wx::AboutDialogInfo->new;39 $about->SetName("Shell Script Plugin");40 $about->SetDescription("Use the Run menu to run and debug shell scripts.");35 # Generate the About dialog 36 my $about = Wx::AboutDialogInfo->new; 37 $about->SetName("Shell Script Plugin"); 38 $about->SetDescription("Use the Run menu to run and debug shell scripts."); 41 39 42 # Show the About dialog43 Wx::AboutBox($about);40 # Show the About dialog 41 Wx::AboutBox($about); 44 42 45 return;43 return; 46 44 } 47 45 1; … … 58 56 =head1 COPYRIGHT & LICENSE 59 57 60 Copyright 2009 Claudio Ramirez all rights reserved.58 Copyright 2009-2010 Claudio Ramirez all rights reserved. 61 59 62 60 This program is free software; you can redistribute it and/or modify it -
trunk/Padre-Plugin-ShellScript/t/01-load.t
r3127 r12404 2 2 3 3 use strict; 4 4 5 BEGIN { 5 6 $| = 1; … … 17 18 ok( $] >= 5.008, 'Perl version is new enough' ); 18 19 19 use_ok( 'Wx');20 use_ok('Wx'); 20 21 diag( "Tests find Wx: $Wx::VERSION " . Wx::wxVERSION_STRING() ); 21 use_ok( 'Padre::Plugin::ShellScript');22 use_ok('Padre::Plugin::ShellScript');
Note: See TracChangeset
for help on using the changeset viewer.
