Skip to content

Commit

Permalink
improved makefile and plugin generators to always use the latest Mojo…
Browse files Browse the repository at this point in the history
…licious version
  • Loading branch information
kraih committed Apr 9, 2012
1 parent 71ef6d0 commit 4292ee8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,6 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

2.79 2012-04-10
- Improved makefile and plugin generators to always use the latest
Mojolicious version.
- Improved documentation.

2.78 2012-04-09
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojolicious/Command/generate/makefile.pm
@@ -1,6 +1,8 @@
package Mojolicious::Command::generate::makefile;
use Mojo::Base 'Mojo::Command';

use Mojolicious;

has description => qq/Generate "Makefile.PL".\n/;
has usage => "usage: $0 generate makefile\n";

Expand All @@ -20,7 +22,7 @@ use ExtUtils::MakeMaker;
WriteMakefile(
VERSION => '0.01',
PREREQ_PM => {'Mojolicious' => '2.77'},
PREREQ_PM => {'Mojolicious' => '<%= $Mojolicious::VERSION %>'},
test => {TESTS => 't/*.t'}
);
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Command/generate/plugin.pm
Expand Up @@ -2,6 +2,7 @@ package Mojolicious::Command::generate::plugin;
use Mojo::Base 'Mojo::Command';

use Mojo::Util 'camelize';
use Mojolicious;

# "You know Santa may have killed Scruffy, but he makes a good point."
has description => "Generate Mojolicious plugin directory structure.\n";
Expand Down Expand Up @@ -108,7 +109,7 @@ WriteMakefile(
NAME => '<%= $class %>',
VERSION_FROM => 'lib/<%= $path %>',
AUTHOR => 'A Good Programmer <nospam@cpan.org>',
PREREQ_PM => {'Mojolicious' => '2.77'},
PREREQ_PM => {'Mojolicious' => '<%= $Mojolicious::VERSION %>'},
test => {TESTS => 't/*.t'}
);
Expand Down

0 comments on commit 4292ee8

Please sign in to comment.