Skip to content

Commit

Permalink
Checking in changes prior to tagging of version 0.12.
Browse files Browse the repository at this point in the history
Changelog diff is:

diff --git a/Changes b/Changes
index 87e340f..e312a56 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for Perl extension lib::xi

+0.12 2011-10-25 17:28:16
+    - Give a module name to cpanm, not a file name
+
 0.11 2011-10-25 17:15:54
     - Add verbose mode enabled by -v
  • Loading branch information
Fuji Goro committed Oct 25, 2011
1 parent ef981cc commit fc75e8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Perl extension lib::xi

0.12 2011-10-25 17:28:16
- Give a module name to cpanm, not a file name

0.11 2011-10-25 17:15:54
- Add verbose mode enabled by -v

Expand Down
9 changes: 6 additions & 3 deletions lib/lib/xi.pm
Expand Up @@ -3,7 +3,7 @@ use 5.008_001;
use strict;
use warnings FATAL => 'all';

our $VERSION = '0.11';
our $VERSION = '0.12';

use Config ();

Expand Down Expand Up @@ -31,7 +31,10 @@ sub lib::xi::INC {

return if $IGNORE{$file};

my @cmd = ($^X, '-S', $self->cpanm_command, $file);
my $module = $file;
$module =~ s/\.pm \z//xms;
$module =~ s{/}{::}xmsg;
my @cmd = ($^X, '-S', $self->cpanm_command, $module);
if($VERBOSE) {
print STDERR "# PERL_CPANM_OPT: ", ($ENV{PERL_CPANM_OPT} || '') ,"\n";
print STDERR "# COMMAND: @cmd\n";
Expand Down Expand Up @@ -97,7 +100,7 @@ lib::xi - Installs missing modules on demand
=head1 VERSION
This document describes lib::xi version 0.11.
This document describes lib::xi version 0.12.
=head1 SYNOPSIS
Expand Down

0 comments on commit fc75e8a

Please sign in to comment.