Skip to content

Commit

Permalink
Bug fix in test -- missing SKIP: label on a skip block
Browse files Browse the repository at this point in the history
	- Version # updates
  • Loading branch information
mvgrimes committed Jul 19, 2011
1 parent e493478 commit 4a9727f
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Changes for App::EditorTools

0.16 - Tue Jul 19 10:40:04 EDT 2011
Bug fix for tests -- missing SKIP: label on a skip block

0.15 - Thu Jul 14 14:40:36 EDT 2011
Added ability to renamepackagefrompath to work through symlinks
- Bug fixes
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -36,3 +36,4 @@ xt/97-critic.t
xt/98-pod.t
xt/99-podcoverage.t
xt/perlcriticrc
META.yml
12 changes: 12 additions & 0 deletions README
Expand Up @@ -86,6 +86,18 @@ REFACTORINGS
"package App::EditorTools;". At the moment there must be a valid
package declaration in the file for this to work.

If the "filename" is a file that exists in the system, then
"renamepackagefrompath" will attempt to resolve any symlinks. This
allows us work on files under a symlink (ie, M@ -> lib/App/Model),
but rename them correctly.

RenamePackage
editortools renamepackage -n Package::Name

Change the "package" declaration in the current file to
Package::Name. At the moment there must be a valid package
declaration in the file for this to work.

SEE ALSO
<http://code-and-hacks.blogspot.com/2009/07/stealing-from-padre-for-vim-
part-3.html>, PPIx::EditorTools, Padre
Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools.pm
Expand Up @@ -5,7 +5,7 @@ use warnings;

use App::Cmd::Setup -app;

our $VERSION = '0.15';
our $VERSION = '0.16';

1;

Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools/Command/InstallEmacs.pm
Expand Up @@ -7,7 +7,7 @@ use parent 'App::EditorTools::CommandBase::Install';
#use App::EditorTools -command;
use File::HomeDir;

our $VERSION = '0.15';
our $VERSION = '0.16';

sub command_names { 'install-emacs' }

Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools/Command/InstallVim.pm
Expand Up @@ -8,7 +8,7 @@ use parent 'App::EditorTools::CommandBase::Install';
use File::HomeDir;
# use IPC::Cmd qw(run);

our $VERSION = '0.15';
our $VERSION = '0.16';

sub command_names { 'install-vim' }

Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools/Command/IntroduceTemporaryVariable.pm
Expand Up @@ -5,7 +5,7 @@ use warnings;

use App::EditorTools -command;

our $VERSION = '0.15';
our $VERSION = '0.16';

sub opt_spec {
return (
Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools/Command/RenamePackage.pm
Expand Up @@ -6,7 +6,7 @@ use Path::Class;

use App::EditorTools -command;

our $VERSION = '0.15';
our $VERSION = '0.16';

sub opt_spec {
return ( [ "name|n=s", "The new name of the package", ] );
Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools/Command/RenamePackageFromPath.pm
Expand Up @@ -6,7 +6,7 @@ use Path::Class;

use App::EditorTools -command;

our $VERSION = '0.15';
our $VERSION = '0.16';

sub opt_spec {
return ( [ "filename|f=s", "The filename and path of the package", ] );
Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools/Command/RenameVariable.pm
Expand Up @@ -5,7 +5,7 @@ use warnings;

use App::EditorTools -command;

our $VERSION = '0.15';
our $VERSION = '0.16';

sub opt_spec {
return (
Expand Down
2 changes: 1 addition & 1 deletion lib/App/EditorTools/CommandBase/Install.pm
Expand Up @@ -9,7 +9,7 @@ use File::Slurp;
use File::ShareDir qw(dist_file);
use App::Cmd::Setup -command;

our $VERSION = '0.15';
our $VERSION = '0.16';

sub execute {
my ( $self, $opt, $arg ) = @_;
Expand Down
2 changes: 1 addition & 1 deletion script/editortools
Expand Up @@ -3,7 +3,7 @@
use strict;
use warnings;

our $VERSION = '0.15';
our $VERSION = '0.16';

use App::EditorTools;
App::EditorTools->run;
Expand Down
2 changes: 1 addition & 1 deletion t/CmdRenamePackageFromPath.t
Expand Up @@ -29,7 +29,7 @@ CODE
is( $return->error, undef, '... no error' );
}

{
SKIP: {
my $symlink_exists = eval { symlink('lib/App','A'); 1 };
skip 'System must support symlinks to check them', 2 unless $symlink_exists;
my $return = AETest->test( [qw(renamepackagefrompath -f A/EditorTools.pm)], <<'CODE' );
Expand Down

0 comments on commit 4a9727f

Please sign in to comment.