Skip to content

Commit

Permalink
Released version 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed May 30, 2011
1 parent fcb78c9 commit 90c1af1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Changes
@@ -1,4 +1,9 @@
---
version: 0.18
date: Mon May 30 20:35:50 EST 2011
changes:
- Added post_WriteAll hook.
---
version: 0.17
date: Mon May 30 15:11:20 EST 2011
changes:
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
@@ -1,4 +1,4 @@
use inc::Module::Package 0.17 'Ingy:modern 0.04';
use inc::Module::Package 0.18 'Ingy:modern 0.05';

# The default module 'lib/Module/Package.pm' has to be very strict
# and minimal, so we get much of the package info from here:
Expand Down
2 changes: 1 addition & 1 deletion lib/Module/Install/Package.pm
Expand Up @@ -15,7 +15,7 @@ use strict;
use Module::Install::Base;
use vars qw'@ISA $VERSION';
@ISA = 'Module::Install::Base';
$VERSION = '0.17';
$VERSION = '0.18';

#-----------------------------------------------------------------------------#
# XXX CRAZY HACK!!
Expand Down
2 changes: 1 addition & 1 deletion lib/Module/Package.pm
Expand Up @@ -14,7 +14,7 @@ use 5.005;
use strict;

BEGIN {
$Module::Package::VERSION = '0.17';
$Module::Package::VERSION = '0.18';
$inc::Module::Package::VERSION ||= $Module::Package::VERSION;
@inc::Module::Package::ISA = __PACKAGE__;
}
Expand Down
14 changes: 11 additions & 3 deletions lib/Module/Package/Plugin.pm
Expand Up @@ -13,11 +13,11 @@ use 5.008003;
use Moo 0.009007;
use Module::Install 1.01 ();
use Module::Install::AuthorRequires 0.02 ();
use Module::Install::ManifestSkip 0.15 ();
use Module::Install::ManifestSkip 0.17 ();
use IO::All 0.41;
use File::Find 0 ();

our $VERSION = '0.17';
our $VERSION = '0.18';

has mi => (is => 'rw');
has options => (
Expand Down Expand Up @@ -260,9 +260,17 @@ sub all_from {
$self->mi->_all_from(@_);
$_->() for @{$self->{post_all_from} || []};
}
sub post_WriteAll {
my $self = shift;
push @{$self->{post_WriteAll} ||= []}, @_;
}
sub WriteAll {
my $self = shift;
$self->mi->_WriteAll(@_);
$_->() for @{$self->{post_WriteAll} || []};
}
sub requires_from { my $self = shift; $self->mi->_requires_from(@_) }
sub install_bin { my $self = shift; $self->mi->_install_bin(@_) }
sub WriteAll { my $self = shift; $self->mi->_WriteAll(@_) }

#-----------------------------------------------------------------------------#
# Other housekeeping stuffs
Expand Down
4 changes: 2 additions & 2 deletions lib/inc/Module/Package.pm
Expand Up @@ -10,10 +10,10 @@
package inc::Module::Package;

BEGIN {
$inc::Module::Package::VERSION = '0.17';
$inc::Module::Package::VERSION = '0.18';
unshift @INC, 'inc' unless $INC[0] eq 'inc';
package main;
use Module::Package 0.17 ();
use Module::Package 0.18 ();
die "Module::Package Bootstrapping Error"
unless $Module::Package::VERSION eq $inc::Module::Package::VERSION;
}
Expand Down

0 comments on commit 90c1af1

Please sign in to comment.