Skip to content

Commit

Permalink
fixed scripts to allow dual-life modules to be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 4, 2013
1 parent a8bec13 commit 94deb00
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@
3.89 2013-03-04
- Improved documentation.
- Improved tests.
- Fixed scripts to allow dual-life modules to be updated. (jberger, sri)
- Fixed bug preventing delayed normalization for reused Mojo::Path objects.
- Fixed path matching bug in Mojo::Path.

Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Command/generate/app.pm
Expand Up @@ -56,8 +56,9 @@ __DATA__
use strict;
use warnings;
# Make sure dual-life modules can be updated
use FindBin;
use lib "$FindBin::Bin/../lib";
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }
# Start command line interface for application
require Mojolicious::Commands;
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -648,8 +648,9 @@ Only a few small details change.
use strict;
use warnings;

# Make sure dual-life modules can be updated
use FindBin;
use lib "$FindBin::Bin/../lib";
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }

# Start command line interface for application
require Mojolicious::Commands;
Expand Down
3 changes: 2 additions & 1 deletion script/hypnotoad
Expand Up @@ -3,8 +3,9 @@
use strict;
use warnings;

# Make sure dual-life modules can be updated
use FindBin;
use lib "$FindBin::Bin/../lib";
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }

use Getopt::Long qw(GetOptions :config no_auto_abbrev no_ignore_case);

Expand Down
3 changes: 2 additions & 1 deletion script/mojo
Expand Up @@ -3,8 +3,9 @@
use strict;
use warnings;

# Make sure dual-life modules can be updated
use FindBin;
use lib "$FindBin::Bin/../lib";
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }

require Mojolicious::Commands;
Mojolicious::Commands->start_app('Mojo::HelloWorld');
Expand Down
3 changes: 2 additions & 1 deletion script/morbo
Expand Up @@ -3,8 +3,9 @@
use strict;
use warnings;

# Make sure dual-life modules can be updated
use FindBin;
use lib "$FindBin::Bin/../lib";
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }

use Getopt::Long qw(GetOptions :config no_auto_abbrev no_ignore_case);

Expand Down
3 changes: 2 additions & 1 deletion t/mojolicious/external/script/my_app
Expand Up @@ -3,8 +3,9 @@
use strict;
use warnings;

# Make sure dual-life modules can be updated
use FindBin;
use lib "$FindBin::Bin/../lib";
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }

# Start command line interface for application
require Mojolicious::Commands;
Expand Down

0 comments on commit 94deb00

Please sign in to comment.