Skip to content

Commit

Permalink
fixed bug that prevented newer dual-life modules to be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 5, 2012
1 parent be2ffee commit 8ec2b92
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -23,6 +23,7 @@ This file documents the revision history for Perl extension Mojolicious.
- Improved documentation.
- Improved tests.
- Improved CSS of some built-in templates.
- Fixed bug that prevented newer dual-life modules to be loaded.
- Fixed small bug in Mojo::IOLoop::Stream that caused close events to
fail sometimes.
- Fixed small relative URL detection bug in get command.
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojolicious/Command/generate/app.pm
Expand Up @@ -56,8 +56,7 @@ use Mojo::Base -strict;
use File::Basename 'dirname';
use File::Spec;
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';
push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');
# Check if Mojolicious is installed;
die <<EOF unless eval 'use Mojolicious::Commands; 1';
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -656,8 +656,7 @@ environments.
use File::Basename 'dirname';
use File::Spec;

use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';
push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojolicious::Commands; 1';
Expand Down
3 changes: 1 addition & 2 deletions script/hypnotoad
Expand Up @@ -6,8 +6,7 @@ use warnings;
use File::Basename 'dirname';
use File::Spec;

use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';
push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojo::Server::Hypnotoad; 1';
Expand Down
3 changes: 1 addition & 2 deletions script/mojo
Expand Up @@ -6,8 +6,7 @@ use warnings;
use File::Basename 'dirname';
use File::Spec;

use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';
push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojolicious::Commands; 1';
Expand Down
3 changes: 1 addition & 2 deletions script/morbo
Expand Up @@ -6,8 +6,7 @@ use warnings;
use File::Basename 'dirname';
use File::Spec;

use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';
push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojo::Server::Morbo; 1';
Expand Down
3 changes: 1 addition & 2 deletions t/mojolicious/external/script/my_app
Expand Up @@ -12,8 +12,7 @@ use File::Spec;
# That way you can't accidentally change history or do something disgusting
# like sleep with your own grandmother.
# I wouldn't want to do that again."
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), 'lib';
use lib join '/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib';
push @INC, join('/', File::Spec->splitdir(dirname(__FILE__)), '..', 'lib');

# Check if Mojolicious is installed
die <<EOF unless eval 'use Mojolicious::Commands; 1';
Expand Down

0 comments on commit 8ec2b92

Please sign in to comment.