<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,7 @@ all_from &quot;github-growler.pl&quot;;
 install_script &quot;github-growler.pl&quot;;
 
 requires 'App::Cache';
+requires 'Config::IniFiles';
 requires 'Mac::Growl';
 requires 'LWP::Simple';
 requires 'URI';</diff>
      <filename>Makefile.PL</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,13 @@
 use strict;
 use warnings;
 use 5.008001;
+
+use FindBin;
+use lib &quot;$FindBin::Bin/lib&quot;;
+use local::lib &quot;$FindBin::Bin/extlib&quot;;
+
 use App::Cache;
+use Config::IniFiles;
 use Encode;
 use Mac::Growl;
 use File::Copy;
@@ -10,6 +16,7 @@ use LWP::Simple;
 use URI;
 use XML::Feed;
 
+our $VERSION = &quot;1.0&quot;;
 $XML::Atom::ForceUnicode = 1;
 
 my %events = (
@@ -30,13 +37,13 @@ my $AppDomain = &quot;net.bulknews.GitHubGrowler&quot;;
 
 my $AppName = &quot;Github Growler&quot;;
 my @events  = ((keys %events), &quot;Misc&quot;);
-Mac::Growl::RegisterNotifications($AppName, [ @events, 'Error' ], \@events);
+Mac::Growl::RegisterNotifications($AppName, [ @events, 'Fatal Error', 'Error' ], [ @events, 'Fatal Error' ]);
 
 my $TempDir = &quot;$ENV{HOME}/Library/Caches/$AppDomain&quot;;
 mkdir $TempDir, 0777 unless -e $TempDir;
 
 my $AppIcon = &quot;$TempDir/octocat.png&quot;;
-copy &quot;octocat.png&quot;, $AppIcon;
+copy &quot;$FindBin::Bin/data/octocat.png&quot;, $AppIcon;
 
 my $Cache = App::Cache-&gt;new({ ttl =&gt; 60*60*24, application =&gt; $AppName });
 my %Seen;
@@ -73,12 +80,23 @@ sub read_preference {
     return $value;
 }
 
-sub get_github_token {
-    chomp(my $user  = `git config github.user`);
-    chomp(my $token = `git config github.token`);
+sub die_notice {
+    my $msg = shift;
+    Mac::Growl::PostNotification($AppName, &quot;Fatal Error&quot;, $AppName, $msg, 1, 0, $AppIcon);
+    die $msg;
+}
 
+sub get_github_token {
+    my($user, $token);
+
+    eval {
+        my $config = Config::IniFiles-&gt;new(-file =&gt; &quot;$ENV{HOME}/.gitconfig&quot;);
+        $user  = $config-&gt;val('github', 'user');
+        $token = $config-&gt;val('github', 'token');
+    };
+        
     unless ($user &amp;&amp; $token) {
-        die &quot;Can't find .gitconfig entries for github.user and github.token\n&quot;;
+        die_notice(&quot;GitHub config not found: See http://github.com/guides/local-github-config and set them&quot;);
     }
 
     return ($user, $token);</diff>
      <filename>github-growler.pl</filename>
    </modified>
    <modified>
      <diff>@@ -17,12 +17,10 @@ package Module::Install;
 #     3. The ./inc/ version of Module::Install loads
 # }
 
-BEGIN {
-	require 5.004;
-}
+use 5.005;
 use strict 'vars';
 
-use vars qw{$VERSION};
+use vars qw{$VERSION $MAIN};
 BEGIN {
 	# All Module::Install core packages now require synchronised versions.
 	# This will be used to ensure we don't accidentally load old or
@@ -30,7 +28,10 @@ BEGIN {
 	# This is not enforced yet, but will be some time in the next few
 	# releases once we can make sure it won't clash with custom
 	# Module::Install extensions.
-	$VERSION = '0.79';
+	$VERSION = '0.91';
+
+	# Storage for the pseudo-singleton
+	$MAIN    = undef;
 
 	*inc::Module::Install::VERSION = *VERSION;
 	@inc::Module::Install::ISA     = __PACKAGE__;
@@ -69,15 +70,26 @@ END_DIE
 # again. This is bad. Rather than taking action to touch it (which
 # is unreliable on some platforms and requires write permissions)
 # for now we should catch this and refuse to run.
-if ( -f $0 and (stat($0))[9] &gt; time ) { die &lt;&lt;&quot;END_DIE&quot; }
+if ( -f $0 ) {
+	my $s = (stat($0))[9];
+
+	# If the modification time is only slightly in the future,
+	# sleep briefly to remove the problem.
+	my $a = $s - time;
+	if ( $a &gt; 0 and $a &lt; 5 ) { sleep 5 }
+
+	# Too far in the future, throw an error.
+	my $t = time;
+	if ( $s &gt; $t ) { die &lt;&lt;&quot;END_DIE&quot; }
 
-Your installer $0 has a modification time in the future.
+Your installer $0 has a modification time in the future ($s &gt; $t).
 
 This is known to create infinite loops in make.
 
 Please correct this, then run $0 again.
 
 END_DIE
+}
 
 
 
@@ -121,14 +133,22 @@ sub autoload {
 	$sym-&gt;{$cwd} = sub {
 		my $pwd = Cwd::cwd();
 		if ( my $code = $sym-&gt;{$pwd} ) {
-			# delegate back to parent dirs
+			# Delegate back to parent dirs
 			goto &amp;$code unless $cwd eq $pwd;
 		}
 		$$sym =~ /([^:]+)$/ or die &quot;Cannot autoload $who - $sym&quot;;
-		unless ( uc($1) eq $1 ) {
-			unshift @_, ( $self, $1 );
-			goto &amp;{$self-&gt;can('call')};
+		my $method = $1;
+		if ( uc($method) eq $method ) {
+			# Do nothing
+			return;
+		} elsif ( $method =~ /^_/ and $self-&gt;can($method) ) {
+			# Dispatch to the root M:I class
+			return $self-&gt;$method(@_);
 		}
+
+		# Dispatch to the appropriate plugin
+		unshift @_, ( $self, $1 );
+		goto &amp;{$self-&gt;can('call')};
 	};
 }
 
@@ -153,6 +173,9 @@ sub import {
 	delete $INC{&quot;$self-&gt;{file}&quot;};
 	delete $INC{&quot;$self-&gt;{path}.pm&quot;};
 
+	# Save to the singleton
+	$MAIN = $self;
+
 	return 1;
 }
 
@@ -166,8 +189,7 @@ sub preload {
 
 	my @exts = @{$self-&gt;{extensions}};
 	unless ( @exts ) {
-		my $admin = $self-&gt;{admin};
-		@exts = $admin-&gt;load_all_extensions;
+		@exts = $self-&gt;{admin}-&gt;load_all_extensions;
 	}
 
 	my %seen;
@@ -250,7 +272,7 @@ END_DIE
 sub load_extensions {
 	my ($self, $path, $top) = @_;
 
-	unless ( grep { !ref $_ and lc $_ eq lc $self-&gt;{prefix} } @INC ) {
+	unless ( grep { ! ref $_ and lc $_ eq lc $self-&gt;{prefix} } @INC ) {
 		unshift @INC, $self-&gt;{prefix};
 	}
 
@@ -314,7 +336,7 @@ sub find_extensions {
 
 
 #####################################################################
-# Utility Functions
+# Common Utility Functions
 
 sub _caller {
 	my $depth = 0;
@@ -328,31 +350,70 @@ sub _caller {
 
 sub _read {
 	local *FH;
-	open FH, &quot;&lt; $_[0]&quot; or die &quot;open($_[0]): $!&quot;;
-	my $str = do { local $/; &lt;FH&gt; };
+	if ( $] &gt;= 5.006 ) {
+		open( FH, '&lt;', $_[0] ) or die &quot;open($_[0]): $!&quot;;
+	} else {
+		open( FH, &quot;&lt; $_[0]&quot;  ) or die &quot;open($_[0]): $!&quot;;
+	}
+	my $string = do { local $/; &lt;FH&gt; };
 	close FH or die &quot;close($_[0]): $!&quot;;
-	return $str;
+	return $string;
+}
+
+sub _readperl {
+	my $string = Module::Install::_read($_[0]);
+	$string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg;
+	$string =~ s/(\n)\n*__(?:DATA|END)__\b.*\z/$1/s;
+	$string =~ s/\n\n=\w+.+?\n\n=cut\b.+?\n+/\n\n/sg;
+	return $string;
+}
+
+sub _readpod {
+	my $string = Module::Install::_read($_[0]);
+	$string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg;
+	return $string if $_[0] =~ /\.pod\z/;
+	$string =~ s/(^|\n=cut\b.+?\n+)[^=\s].+?\n(\n=\w+|\z)/$1$2/sg;
+	$string =~ s/\n*=pod\b[^\n]*\n+/\n\n/sg;
+	$string =~ s/\n*=cut\b[^\n]*\n+/\n\n/sg;
+	$string =~ s/^\n+//s;
+	return $string;
 }
 
 sub _write {
 	local *FH;
-	open FH, &quot;&gt; $_[0]&quot; or die &quot;open($_[0]): $!&quot;;
-	foreach ( 1 .. $#_ ) { print FH $_[$_] or die &quot;print($_[0]): $!&quot; }
+	if ( $] &gt;= 5.006 ) {
+		open( FH, '&gt;', $_[0] ) or die &quot;open($_[0]): $!&quot;;
+	} else {
+		open( FH, &quot;&gt; $_[0]&quot;  ) or die &quot;open($_[0]): $!&quot;;
+	}
+	foreach ( 1 .. $#_ ) {
+		print FH $_[$_] or die &quot;print($_[0]): $!&quot;;
+	}
 	close FH or die &quot;close($_[0]): $!&quot;;
 }
 
 # _version is for processing module versions (eg, 1.03_05) not
 # Perl versions (eg, 5.8.1).
-
 sub _version ($) {
 	my $s = shift || 0;
-	   $s =~ s/^(\d+)\.?//;
+	my $d =()= $s =~ /(\.)/g;
+	if ( $d &gt;= 2 ) {
+		# Normalise multipart versions
+		$s =~ s/(\.)(\d{1,3})/sprintf(&quot;$1%03d&quot;,$2)/eg;
+	}
+	$s =~ s/^(\d+)\.?//;
 	my $l = $1 || 0;
-	my @v = map { $_ . '0' x (3 - length $_) } $s =~ /(\d{1,3})\D?/g;
-	   $l = $l . '.' . join '', @v if @v;
+	my @v = map {
+		$_ . '0' x (3 - length $_)
+	} $s =~ /(\d{1,3})\D?/g;
+	$l = $l . '.' . join '', @v if @v;
 	return $l + 0;
 }
 
+sub _cmp ($$) {
+	_version($_[0]) &lt;=&gt; _version($_[1]);
+}
+
 # Cloned from Params::Util::_CLASS
 sub _CLASS ($) {
 	(
@@ -360,7 +421,7 @@ sub _CLASS ($) {
 		and
 		! ref $_[0]
 		and
-		$_[0] =~ m/^[^\W\d]\w*(?:::\w+)*$/s
+		$_[0] =~ m/^[^\W\d]\w*(?:::\w+)*\z/s
 	) ? $_[0] : undef;
 }
 </diff>
      <filename>inc/Module/Install.pm</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,11 @@
 #line 1
 package Module::Install::Base;
 
-$VERSION = '0.79';
+use strict 'vars';
+use vars qw{$VERSION};
+BEGIN {
+	$VERSION = '0.91';
+}
 
 # Suspend handler for &quot;redefined&quot; warnings
 BEGIN {
@@ -9,54 +13,56 @@ BEGIN {
 	$SIG{__WARN__} = sub { $w };
 }
 
-### This is the ONLY module that shouldn't have strict on
-# use strict;
-
-#line 41
+#line 42
 
 sub new {
-    my ($class, %args) = @_;
-
-    foreach my $method ( qw(call load) ) {
-        *{&quot;$class\::$method&quot;} = sub {
-            shift()-&gt;_top-&gt;$method(@_);
-        } unless defined &amp;{&quot;$class\::$method&quot;};
-    }
-
-    bless( \%args, $class );
+	my $class = shift;
+	unless ( defined &amp;{&quot;${class}::call&quot;} ) {
+		*{&quot;${class}::call&quot;} = sub { shift-&gt;_top-&gt;call(@_) };
+	}
+	unless ( defined &amp;{&quot;${class}::load&quot;} ) {
+		*{&quot;${class}::load&quot;} = sub { shift-&gt;_top-&gt;load(@_) };
+	}
+	bless { @_ }, $class;
 }
 
 #line 61
 
 sub AUTOLOAD {
-    my $self = shift;
-    local $@;
-    my $autoload = eval { $self-&gt;_top-&gt;autoload } or return;
-    goto &amp;$autoload;
+	local $@;
+	my $func = eval { shift-&gt;_top-&gt;autoload } or return;
+	goto &amp;$func;
 }
 
-#line 76
+#line 75
 
-sub _top { $_[0]-&gt;{_top} }
+sub _top {
+	$_[0]-&gt;{_top};
+}
 
-#line 89
+#line 90
 
 sub admin {
-    $_[0]-&gt;_top-&gt;{admin} or Module::Install::Base::FakeAdmin-&gt;new;
+	$_[0]-&gt;_top-&gt;{admin}
+	or
+	Module::Install::Base::FakeAdmin-&gt;new;
 }
 
-#line 101
+#line 106
 
 sub is_admin {
-    $_[0]-&gt;admin-&gt;VERSION;
+	$_[0]-&gt;admin-&gt;VERSION;
 }
 
 sub DESTROY {}
 
 package Module::Install::Base::FakeAdmin;
 
-my $Fake;
-sub new { $Fake ||= bless(\@_, $_[0]) }
+my $fake;
+
+sub new {
+	$fake ||= bless(\@_, $_[0]);
+}
 
 sub AUTOLOAD {}
 
@@ -69,4 +75,4 @@ BEGIN {
 
 1;
 
-#line 146
+#line 154</diff>
      <filename>inc/Module/Install/Base.pm</filename>
    </modified>
    <modified>
      <diff>@@ -2,18 +2,16 @@
 package Module::Install::Can;
 
 use strict;
-use Module::Install::Base;
-use Config ();
-### This adds a 5.005 Perl version dependency.
-### This is a bug and will be fixed.
-use File::Spec ();
-use ExtUtils::MakeMaker ();
-
-use vars qw{$VERSION $ISCORE @ISA};
+use Config                ();
+use File::Spec            ();
+use ExtUtils::MakeMaker   ();
+use Module::Install::Base ();
+
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.79';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
 # check if we can load some module
@@ -80,4 +78,4 @@ if ( $^O eq 'cygwin' ) {
 
 __END__
 
-#line 158
+#line 156</diff>
      <filename>inc/Module/Install/Can.pm</filename>
    </modified>
    <modified>
      <diff>@@ -2,13 +2,13 @@
 package Module::Install::Fetch;
 
 use strict;
-use Module::Install::Base;
+use Module::Install::Base ();
 
-use vars qw{$VERSION $ISCORE @ISA};
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.79';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
 sub get_file {</diff>
      <filename>inc/Module/Install/Fetch.pm</filename>
    </modified>
    <modified>
      <diff>@@ -2,14 +2,14 @@
 package Module::Install::Makefile;
 
 use strict 'vars';
-use Module::Install::Base;
-use ExtUtils::MakeMaker ();
+use ExtUtils::MakeMaker   ();
+use Module::Install::Base ();
 
-use vars qw{$VERSION $ISCORE @ISA};
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.79';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
 sub Makefile { $_[0] }
@@ -114,17 +114,32 @@ sub write {
 	my $self = shift;
 	die &quot;&amp;Makefile-&gt;write() takes no arguments\n&quot; if @_;
 
-	# Make sure we have a new enough
-	require ExtUtils::MakeMaker;
+	# Check the current Perl version
+	my $perl_version = $self-&gt;perl_version;
+	if ( $perl_version ) {
+		eval &quot;use $perl_version; 1&quot;
+			or die &quot;ERROR: perl: Version $] is installed, &quot;
+			. &quot;but we need version &gt;= $perl_version&quot;;
+	}
 
-	# MakeMaker can complain about module versions that include
-	# an underscore, even though its own version may contain one!
-	# Hence the funny regexp to get rid of it.  See RT #35800
-	# for details.
+	# Make sure we have a new enough MakeMaker
+	require ExtUtils::MakeMaker;
 
-	$self-&gt;configure_requires( 'ExtUtils::MakeMaker' =&gt; $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/ );
+	if ( $perl_version and $self-&gt;_cmp($perl_version, '5.006') &gt;= 0 ) {
+		# MakeMaker can complain about module versions that include
+		# an underscore, even though its own version may contain one!
+		# Hence the funny regexp to get rid of it.  See RT #35800
+		# for details.
+		$self-&gt;build_requires( 'ExtUtils::MakeMaker' =&gt; $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/ );
+		$self-&gt;configure_requires( 'ExtUtils::MakeMaker' =&gt; $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/ );
+	} else {
+		# Allow legacy-compatibility with 5.005 by depending on the
+		# most recent EU:MM that supported 5.005.
+		$self-&gt;build_requires( 'ExtUtils::MakeMaker' =&gt; 6.42 );
+		$self-&gt;configure_requires( 'ExtUtils::MakeMaker' =&gt; 6.42 );
+	}
 
-	# Generate the
+	# Generate the MakeMaker params
 	my $args = $self-&gt;makemaker_args;
 	$args-&gt;{DISTNAME} = $self-&gt;name;
 	$args-&gt;{NAME}     = $self-&gt;module_name || $self-&gt;name;
@@ -133,7 +148,7 @@ sub write {
 	if ( $self-&gt;tests ) {
 		$args-&gt;{test} = { TESTS =&gt; $self-&gt;tests };
 	}
-	if ($] &gt;= 5.005) {
+	if ( $] &gt;= 5.005 ) {
 		$args-&gt;{ABSTRACT} = $self-&gt;abstract;
 		$args-&gt;{AUTHOR}   = $self-&gt;author;
 	}
@@ -147,7 +162,7 @@ sub write {
 		delete $args-&gt;{SIGN};
 	}
 
-	# merge both kinds of requires into prereq_pm
+	# Merge both kinds of requires into prereq_pm
 	my $prereq = ($args-&gt;{PREREQ_PM} ||= {});
 	%$prereq = ( %$prereq,
 		map { @$_ }
@@ -250,4 +265,4 @@ sub postamble {
 
 __END__
 
-#line 379
+#line 394</diff>
      <filename>inc/Module/Install/Makefile.pm</filename>
    </modified>
    <modified>
      <diff>@@ -2,15 +2,19 @@
 package Module::Install::Metadata;
 
 use strict 'vars';
-use Module::Install::Base;
+use Module::Install::Base ();
 
-use vars qw{$VERSION $ISCORE @ISA};
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.79';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
+my @boolean_keys = qw{
+	sign
+};
+
 my @scalar_keys = qw{
 	name
 	module_name
@@ -37,16 +41,43 @@ my @resource_keys = qw{
 	repository
 };
 
+my @array_keys = qw{
+	keywords
+};
+
 sub Meta              { shift          }
+sub Meta_BooleanKeys  { @boolean_keys  }
 sub Meta_ScalarKeys   { @scalar_keys   }
 sub Meta_TupleKeys    { @tuple_keys    }
 sub Meta_ResourceKeys { @resource_keys }
+sub Meta_ArrayKeys    { @array_keys    }
+
+foreach my $key ( @boolean_keys ) {
+	*$key = sub {
+		my $self = shift;
+		if ( defined wantarray and not @_ ) {
+			return $self-&gt;{values}-&gt;{$key};
+		}
+		$self-&gt;{values}-&gt;{$key} = ( @_ ? $_[0] : 1 );
+		return $self;
+	};
+}
 
 foreach my $key ( @scalar_keys ) {
 	*$key = sub {
 		my $self = shift;
-		return $self-&gt;{values}{$key} if defined wantarray and !@_;
-		$self-&gt;{values}{$key} = shift;
+		return $self-&gt;{values}-&gt;{$key} if defined wantarray and !@_;
+		$self-&gt;{values}-&gt;{$key} = shift;
+		return $self;
+	};
+}
+
+foreach my $key ( @array_keys ) {
+	*$key = sub {
+		my $self = shift;
+		return $self-&gt;{values}-&gt;{$key} if defined wantarray and !@_;
+		$self-&gt;{values}-&gt;{$key} ||= [];
+		push @{$self-&gt;{values}-&gt;{$key}}, @_;
 		return $self;
 	};
 }
@@ -55,12 +86,12 @@ foreach my $key ( @resource_keys ) {
 	*$key = sub {
 		my $self = shift;
 		unless ( @_ ) {
-			return () unless $self-&gt;{values}{resources};
+			return () unless $self-&gt;{values}-&gt;{resources};
 			return map  { $_-&gt;[1] }
 			       grep { $_-&gt;[0] eq $key }
-			       @{ $self-&gt;{values}{resources} };
+			       @{ $self-&gt;{values}-&gt;{resources} };
 		}
-		return $self-&gt;{values}{resources}{$key} unless @_;
+		return $self-&gt;{values}-&gt;{resources}-&gt;{$key} unless @_;
 		my $uri = shift or die(
 			&quot;Did not provide a value to $key()&quot;
 		);
@@ -69,54 +100,19 @@ foreach my $key ( @resource_keys ) {
 	};
 }
 
-sub requires {
-	my $self = shift;
-	while ( @_ ) {
-		my $module  = shift or last;
-		my $version = shift || 0;
-		push @{ $self-&gt;{values}{requires} }, [ $module, $version ];
-	}
-	$self-&gt;{values}{requires};
-}
-
-sub build_requires {
-	my $self = shift;
-	while ( @_ ) {
-		my $module  = shift or last;
-		my $version = shift || 0;
-		push @{ $self-&gt;{values}{build_requires} }, [ $module, $version ];
-	}
-	$self-&gt;{values}{build_requires};
-}
-
-sub configure_requires {
-	my $self = shift;
-	while ( @_ ) {
-		my $module  = shift or last;
-		my $version = shift || 0;
-		push @{ $self-&gt;{values}{configure_requires} }, [ $module, $version ];
-	}
-	$self-&gt;{values}{configure_requires};
-}
-
-sub recommends {
-	my $self = shift;
-	while ( @_ ) {
-		my $module  = shift or last;
-		my $version = shift || 0;
-		push @{ $self-&gt;{values}{recommends} }, [ $module, $version ];
-	}
-	$self-&gt;{values}{recommends};
-}
-
-sub bundles {
-	my $self = shift;
-	while ( @_ ) {
-		my $module  = shift or last;
-		my $version = shift || 0;
-		push @{ $self-&gt;{values}{bundles} }, [ $module, $version ];
-	}
-	$self-&gt;{values}{bundles};
+foreach my $key ( grep { $_ ne &quot;resources&quot; } @tuple_keys) {
+	*$key = sub {
+		my $self = shift;
+		return $self-&gt;{values}-&gt;{$key} unless @_;
+		my @added;
+		while ( @_ ) {
+			my $module  = shift or last;
+			my $version = shift || 0;
+			push @added, [ $module, $version ];
+		}
+		push @{ $self-&gt;{values}-&gt;{$key} }, @added;
+		return map {@$_} @added;
+	};
 }
 
 # Resource handling
@@ -135,29 +131,22 @@ sub resources {
 		if ( $name eq lc $name and ! $lc_resource{$name} ) {
 			die(&quot;Unsupported reserved lowercase resource '$name'&quot;);
 		}
-		$self-&gt;{values}{resources} ||= [];
-		push @{ $self-&gt;{values}{resources} }, [ $name, $value ];
+		$self-&gt;{values}-&gt;{resources} ||= [];
+		push @{ $self-&gt;{values}-&gt;{resources} }, [ $name, $value ];
 	}
-	$self-&gt;{values}{resources};
+	$self-&gt;{values}-&gt;{resources};
 }
 
 # Aliases for build_requires that will have alternative
 # meanings in some future version of META.yml.
-sub test_requires      { shift-&gt;build_requires(@_) }
-sub install_requires   { shift-&gt;build_requires(@_) }
+sub test_requires     { shift-&gt;build_requires(@_) }
+sub install_requires  { shift-&gt;build_requires(@_) }
 
 # Aliases for installdirs options
-sub install_as_core    { $_[0]-&gt;installdirs('perl')   }
-sub install_as_cpan    { $_[0]-&gt;installdirs('site')   }
-sub install_as_site    { $_[0]-&gt;installdirs('site')   }
-sub install_as_vendor  { $_[0]-&gt;installdirs('vendor') }
-
-sub sign {
-	my $self = shift;
-	return $self-&gt;{values}{sign} if defined wantarray and ! @_;
-	$self-&gt;{values}{sign} = ( @_ ? $_[0] : 1 );
-	return $self;
-}
+sub install_as_core   { $_[0]-&gt;installdirs('perl')   }
+sub install_as_cpan   { $_[0]-&gt;installdirs('site')   }
+sub install_as_site   { $_[0]-&gt;installdirs('site')   }
+sub install_as_vendor { $_[0]-&gt;installdirs('vendor') }
 
 sub dynamic_config {
 	my $self = shift;
@@ -165,13 +154,13 @@ sub dynamic_config {
 		warn &quot;You MUST provide an explicit true/false value to dynamic_config\n&quot;;
 		return $self;
 	}
-	$self-&gt;{values}{dynamic_config} = $_[0] ? 1 : 0;
+	$self-&gt;{values}-&gt;{dynamic_config} = $_[0] ? 1 : 0;
 	return 1;
 }
 
 sub perl_version {
 	my $self = shift;
-	return $self-&gt;{values}{perl_version} unless @_;
+	return $self-&gt;{values}-&gt;{perl_version} unless @_;
 	my $version = shift or die(
 		&quot;Did not provide a value to perl_version()&quot;
 	);
@@ -184,20 +173,41 @@ sub perl_version {
 		die &quot;Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)\n&quot;;
 	}
 
-	$self-&gt;{values}{perl_version} = $version;
+	$self-&gt;{values}-&gt;{perl_version} = $version;
 }
 
+#Stolen from M::B
+my %license_urls = (
+    perl         =&gt; 'http://dev.perl.org/licenses/',
+    apache       =&gt; 'http://apache.org/licenses/LICENSE-2.0',
+    artistic     =&gt; 'http://opensource.org/licenses/artistic-license.php',
+    artistic_2   =&gt; 'http://opensource.org/licenses/artistic-license-2.0.php',
+    lgpl         =&gt; 'http://opensource.org/licenses/lgpl-license.php',
+    lgpl2        =&gt; 'http://opensource.org/licenses/lgpl-2.1.php',
+    lgpl3        =&gt; 'http://opensource.org/licenses/lgpl-3.0.html',
+    bsd          =&gt; 'http://opensource.org/licenses/bsd-license.php',
+    gpl          =&gt; 'http://opensource.org/licenses/gpl-license.php',
+    gpl2         =&gt; 'http://opensource.org/licenses/gpl-2.0.php',
+    gpl3         =&gt; 'http://opensource.org/licenses/gpl-3.0.html',
+    mit          =&gt; 'http://opensource.org/licenses/mit-license.php',
+    mozilla      =&gt; 'http://opensource.org/licenses/mozilla1.1.php',
+    open_source  =&gt; undef,
+    unrestricted =&gt; undef,
+    restrictive  =&gt; undef,
+    unknown      =&gt; undef,
+);
+
 sub license {
 	my $self = shift;
-	return $self-&gt;{values}{license} unless @_;
+	return $self-&gt;{values}-&gt;{license} unless @_;
 	my $license = shift or die(
 		'Did not provide a value to license()'
 	);
-	$self-&gt;{values}{license} = $license;
+	$self-&gt;{values}-&gt;{license} = $license;
 
 	# Automatically fill in license URLs
-	if ( $license eq 'perl' ) {
-		$self-&gt;resources( license =&gt; 'http://dev.perl.org/licenses/' );
+	if ( $license_urls{$license} ) {
+		$self-&gt;resources( license =&gt; $license_urls{$license} );
 	}
 
 	return 1;
@@ -239,7 +249,7 @@ sub all_from {
 
 sub provides {
 	my $self     = shift;
-	my $provides = ( $self-&gt;{values}{provides} ||= {} );
+	my $provides = ( $self-&gt;{values}-&gt;{provides} ||= {} );
 	%$provides = (%$provides, @_) if @_;
 	return $provides;
 }
@@ -268,7 +278,7 @@ sub auto_provides {
 sub feature {
 	my $self     = shift;
 	my $name     = shift;
-	my $features = ( $self-&gt;{values}{features} ||= [] );
+	my $features = ( $self-&gt;{values}-&gt;{features} ||= [] );
 	my $mods;
 
 	if ( @_ == 1 and ref( $_[0] ) ) {
@@ -296,16 +306,16 @@ sub features {
 	while ( my ( $name, $mods ) = splice( @_, 0, 2 ) ) {
 		$self-&gt;feature( $name, @$mods );
 	}
-	return $self-&gt;{values}{features}
-		? @{ $self-&gt;{values}{features} }
+	return $self-&gt;{values}-&gt;{features}
+		? @{ $self-&gt;{values}-&gt;{features} }
 		: ();
 }
 
 sub no_index {
 	my $self = shift;
 	my $type = shift;
-	push @{ $self-&gt;{values}{no_index}{$type} }, @_ if $type;
-	return $self-&gt;{values}{no_index};
+	push @{ $self-&gt;{values}-&gt;{no_index}-&gt;{$type} }, @_ if $type;
+	return $self-&gt;{values}-&gt;{no_index};
 }
 
 sub read {
@@ -429,21 +439,21 @@ sub license_from {
 	/ixms ) {
 		my $license_text = $1;
 		my @phrases      = (
-			'under the same (?:terms|license) as perl itself' =&gt; 'perl',        1,
-			'GNU general public license'                      =&gt; 'gpl',         1,
-			'GNU public license'                              =&gt; 'gpl',         1,
-			'GNU lesser general public license'               =&gt; 'lgpl',        1,
-			'GNU lesser public license'                       =&gt; 'lgpl',        1,
-			'GNU library general public license'              =&gt; 'lgpl',        1,
-			'GNU library public license'                      =&gt; 'lgpl',        1,
-			'BSD license'                                     =&gt; 'bsd',         1,
-			'Artistic license'                                =&gt; 'artistic',    1,
-			'GPL'                                             =&gt; 'gpl',         1,
-			'LGPL'                                            =&gt; 'lgpl',        1,
-			'BSD'                                             =&gt; 'bsd',         1,
-			'Artistic'                                        =&gt; 'artistic',    1,
-			'MIT'                                             =&gt; 'mit',         1,
-			'proprietary'                                     =&gt; 'proprietary', 0,
+			'under the same (?:terms|license) as (?:perl|the perl programming language) itself' =&gt; 'perl', 1,
+			'GNU general public license'         =&gt; 'gpl',         1,
+			'GNU public license'                 =&gt; 'gpl',         1,
+			'GNU lesser general public license'  =&gt; 'lgpl',        1,
+			'GNU lesser public license'          =&gt; 'lgpl',        1,
+			'GNU library general public license' =&gt; 'lgpl',        1,
+			'GNU library public license'         =&gt; 'lgpl',        1,
+			'BSD license'                        =&gt; 'bsd',         1,
+			'Artistic license'                   =&gt; 'artistic',    1,
+			'GPL'                                =&gt; 'gpl',         1,
+			'LGPL'                               =&gt; 'lgpl',        1,
+			'BSD'                                =&gt; 'bsd',         1,
+			'Artistic'                           =&gt; 'artistic',    1,
+			'MIT'                                =&gt; 'mit',         1,
+			'proprietary'                        =&gt; 'proprietary', 0,
 		);
 		while ( my ($pattern, $license, $osi) = splice(@phrases, 0, 3) ) {
 			$pattern =~ s{\s+}{\\s+}g;
@@ -458,10 +468,18 @@ sub license_from {
 	return 'unknown';
 }
 
+sub _extract_bugtracker {
+	my @links   = $_[0] =~ m#L&lt;(\Qhttp://rt.cpan.org/\E[^&gt;]+)&gt;#g;
+	my %links;
+	@links{@links}=();
+	@links=keys %links;
+	return @links;
+}
+
 sub bugtracker_from {
 	my $self    = shift;
 	my $content = Module::Install::_read($_[0]);
-	my @links   = $content =~ m/L\&lt;(http\:\/\/rt\.cpan\.org\/[^&gt;]+)\&gt;/g;
+	my @links   = _extract_bugtracker($content);
 	unless ( @links ) {
 		warn &quot;Cannot determine bugtracker info from $_[0]\n&quot;;
 		return 0;
@@ -476,17 +494,40 @@ sub bugtracker_from {
 	return 1;
 }
 
+sub requires_from {
+	my $self     = shift;
+	my $content  = Module::Install::_readperl($_[0]);
+	my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg;
+	while ( @requires ) {
+		my $module  = shift @requires;
+		my $version = shift @requires;
+		$self-&gt;requires( $module =&gt; $version );
+	}
+}
+
+sub test_requires_from {
+	my $self     = shift;
+	my $content  = Module::Install::_readperl($_[0]);
+	my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg;
+	while ( @requires ) {
+		my $module  = shift @requires;
+		my $version = shift @requires;
+		$self-&gt;test_requires( $module =&gt; $version );
+	}
+}
+
 # Convert triple-part versions (eg, 5.6.1 or 5.8.9) to
 # numbers (eg, 5.006001 or 5.008009).
 # Also, convert double-part versions (eg, 5.8)
 sub _perl_version {
 	my $v = $_[-1];
-	$v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf(&quot;%d.%03d&quot;,$1,$2)/e;	
+	$v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf(&quot;%d.%03d&quot;,$1,$2)/e;
 	$v =~ s/^([1-9])\.([1-9]\d?\d?)\.(0|[1-9]\d?\d?)$/sprintf(&quot;%d.%03d%03d&quot;,$1,$2,$3 || 0)/e;
 	$v =~ s/(\.\d\d\d)000$/$1/;
 	$v =~ s/_.+$//;
 	if ( ref($v) ) {
-		$v = $v + 0; # Numify
+		# Numify
+		$v = $v + 0;
 	}
 	return $v;
 }
@@ -496,17 +537,57 @@ sub _perl_version {
 
 
 ######################################################################
-# MYMETA.yml Support
+# MYMETA Support
 
 sub WriteMyMeta {
-	$_[0]-&gt;write_mymeta;
+	die &quot;WriteMyMeta has been deprecated&quot;;
+}
+
+sub write_mymeta_yaml {
+	my $self = shift;
+
+	# We need YAML::Tiny to write the MYMETA.yml file
+	unless ( eval { require YAML::Tiny; 1; } ) {
+		return 1;
+	}
+
+	# Generate the data
+	my $meta = $self-&gt;_write_mymeta_data or return 1;
+
+	# Save as the MYMETA.yml file
+	print &quot;Writing MYMETA.yml\n&quot;;
+	YAML::Tiny::DumpFile('MYMETA.yml', $meta);
 }
 
-sub write_mymeta {
+sub write_mymeta_json {
 	my $self = shift;
-	
+
+	# We need JSON to write the MYMETA.json file
+	unless ( eval { require JSON; 1; } ) {
+		return 1;
+	}
+
+	# Generate the data
+	my $meta = $self-&gt;_write_mymeta_data or return 1;
+
+	# Save as the MYMETA.yml file
+	print &quot;Writing MYMETA.json\n&quot;;
+	Module::Install::_write(
+		'MYMETA.json',
+		JSON-&gt;new-&gt;pretty(1)-&gt;canonical-&gt;encode($meta),
+	);
+}
+
+sub _write_mymeta_data {
+	my $self = shift;
+
 	# If there's no existing META.yml there is nothing we can do
-	return unless -f 'META.yml';
+	return undef unless -f 'META.yml';
+
+	# We need Parse::CPAN::Meta to load the file
+	unless ( eval { require Parse::CPAN::Meta; 1; } ) {
+		return undef;
+	}
 
 	# Merge the perl version into the dependencies
 	my $val  = $self-&gt;Meta-&gt;{values};
@@ -523,8 +604,7 @@ sub write_mymeta {
 	}
 
 	# Load the advisory META.yml file
-	require YAML::Tiny;
-	my @yaml = YAML::Tiny::LoadFile('META.yml');
+	my @yaml = Parse::CPAN::Meta::LoadFile('META.yml');
 	my $meta = $yaml[0];
 
 	# Overwrite the non-configure dependency hashs
@@ -538,8 +618,7 @@ sub write_mymeta {
 		$meta-&gt;{build_requires} = { map { @$_ } @{ $val-&gt;{build_requires} } };
 	}
 
-	# Save as the MYMETA.yml file
-	YAML::Tiny::DumpFile('MYMETA.yml', $meta);
+	return $meta;
 }
 
 1;</diff>
      <filename>inc/Module/Install/Metadata.pm</filename>
    </modified>
    <modified>
      <diff>@@ -2,13 +2,13 @@
 package Module::Install::Scripts;
 
 use strict 'vars';
-use Module::Install::Base;
+use Module::Install::Base ();
 
-use vars qw{$VERSION $ISCORE @ISA};
+use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.79';
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
-	@ISA     = qw{Module::Install::Base};
 }
 
 sub install_script {</diff>
      <filename>inc/Module/Install/Scripts.pm</filename>
    </modified>
    <modified>
      <diff>@@ -2,12 +2,12 @@
 package Module::Install::Win32;
 
 use strict;
-use Module::Install::Base;
+use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.79';
-	@ISA     = qw{Module::Install::Base};
+	$VERSION = '0.91';
+	@ISA     = 'Module::Install::Base';
 	$ISCORE  = 1;
 }
 </diff>
      <filename>inc/Module/Install/Win32.pm</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@
 package Module::Install::WriteAll;
 
 use strict;
-use Module::Install::Base;
+use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-	$VERSION = '0.79';
+	$VERSION = '0.91';;
 	@ISA     = qw{Module::Install::Base};
 	$ISCORE  = 1;
 }
@@ -22,7 +22,6 @@ sub WriteAll {
 	);
 
 	$self-&gt;sign(1)                if $args{sign};
-	$self-&gt;Meta-&gt;write            if $args{meta};
 	$self-&gt;admin-&gt;WriteAll(%args) if $self-&gt;is_admin;
 
 	$self-&gt;check_nmake if $args{check_nmake};
@@ -30,11 +29,32 @@ sub WriteAll {
 		$self-&gt;makemaker_args( PL_FILES =&gt; {} );
 	}
 
+	# Until ExtUtils::MakeMaker support MYMETA.yml, make sure
+	# we clean it up properly ourself.
+	$self-&gt;realclean_files('MYMETA.yml');
+
 	if ( $args{inline} ) {
 		$self-&gt;Inline-&gt;write;
 	} else {
 		$self-&gt;Makefile-&gt;write;
 	}
+
+	# The Makefile write process adds a couple of dependencies,
+	# so write the META.yml files after the Makefile.
+	if ( $args{meta} ) {
+		$self-&gt;Meta-&gt;write;
+	}
+
+	# Experimental support for MYMETA
+	if ( $ENV{X_MYMETA} ) {
+		if ( $ENV{X_MYMETA} eq 'JSON' ) {
+			$self-&gt;Meta-&gt;write_mymeta_json;
+		} else {
+			$self-&gt;Meta-&gt;write_mymeta_yaml;
+		}
+	}
+
+	return 1;
 }
 
 1;</diff>
      <filename>inc/Module/Install/WriteAll.pm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ce0e694fc684af3babbd5e925100d64883e5b4f1</id>
    </parent>
  </parents>
  <author>
    <name>Tatsuhiko Miyagawa</name>
    <email>miyagawa@bulknews.net</email>
  </author>
  <url>http://github.com/miyagawa/github-growler/commit/ba2b9d2065b1f16d1c1d4c1f048367214cfb28b8</url>
  <id>ba2b9d2065b1f16d1c1d4c1f048367214cfb28b8</id>
  <committed-date>2009-06-13T02:40:40-07:00</committed-date>
  <authored-date>2009-06-13T02:40:40-07:00</authored-date>
  <message>Use Config::IniFiles instead of 'git' command since it might not be in PATH.
Gives error message with sticky Growl notification.</message>
  <tree>ba38a8608ec97be76cb1fd9943e1b51e488c8005</tree>
  <committer>
    <name>Tatsuhiko Miyagawa</name>
    <email>miyagawa@bulknews.net</email>
  </committer>
</commit>
