Skip to content

Commit

Permalink
removed useless shebang lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 15, 2011
1 parent 512732d commit 7a548ed
Show file tree
Hide file tree
Showing 88 changed files with 9 additions and 111 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.38 2011-12-14 00:00:00
2.38 2011-12-15 00:00:00
- Improved documentation. (marcus, sri)
- Improved tests.
- Fixed memory leaks caused by named capture groups bug in Perl.
Expand Down
2 changes: 0 additions & 2 deletions Makefile.PL
@@ -1,5 +1,3 @@
#!/usr/bin/env perl

use 5.010001;

use strict;
Expand Down
3 changes: 0 additions & 3 deletions examples/connect-proxy.pl
@@ -1,6 +1,3 @@
#!/usr/bin/env perl

# Use bundled libraries
use FindBin;
use lib "$FindBin::Bin/../lib";
use Mojo::Base -strict;
Expand Down
3 changes: 0 additions & 3 deletions examples/flash-policy-server.pl
@@ -1,6 +1,3 @@
#!/usr/bin/env perl

# Use bundled libraries
use FindBin;
use lib "$FindBin::Bin/../lib";
use Mojo::Base -strict;
Expand Down
3 changes: 0 additions & 3 deletions examples/microhttpd.pl
@@ -1,6 +1,3 @@
#!/usr/bin/env perl

# Use bundled libraries
use FindBin;
use lib "$FindBin::Bin/../lib";
use Mojo::Base -strict;
Expand Down
3 changes: 0 additions & 3 deletions examples/websocket.pl
@@ -1,6 +1,3 @@
#!/usr/bin/env perl

# Use bundled libraries
use FindBin;
use lib "$FindBin::Bin/../lib";
use Mojolicious::Lite;
Expand Down
1 change: 0 additions & 1 deletion lib/Mojolicious/Command/generate/app.pm
Expand Up @@ -128,7 +128,6 @@ sub welcome {
@@ test
% my $class = shift;
#!/usr/bin/env perl
use Mojo::Base -strict;
use Test::More tests => 4;
Expand Down
2 changes: 0 additions & 2 deletions lib/Mojolicious/Command/generate/makefile.pm
Expand Up @@ -24,8 +24,6 @@ __DATA__
@@ makefile
% my ($class, $path, $name) = @_;
#!/usr/bin/env perl
use strict;
use warnings;
Expand Down
3 changes: 0 additions & 3 deletions lib/Mojolicious/Command/generate/plugin.pm
Expand Up @@ -84,7 +84,6 @@ L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>.
@@ test
% my $name = shift;
#!/usr/bin/env perl
use Mojo::Base -strict;
use Test::More tests => 3;
Expand All @@ -104,8 +103,6 @@ $t->get_ok('/')->status_is(200)->content_is('Hello Mojo!');
@@ makefile
% my ($class, $path) = @_;
#!/usr/bin/env perl
use strict;
use warnings;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/asset.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 56;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/base.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 411;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/bytestream.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/cache.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 21;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/cgi.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 16;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/collection.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 48;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/command.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 32;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/content.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 19;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/cookie.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 267;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/cookiejar.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 87;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/date.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 21;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/delay.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/dom.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/eventemitter.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 47;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/headers.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# "Remember, you can always find East by staring directly at the sun."
Expand Down
1 change: 0 additions & 1 deletion t/mojo/home.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 16;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/hypnotoad.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/ioloop.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/ioloop_tls.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/iowatcher.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/iowatcher_ev.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour and IPv6
Expand Down
1 change: 0 additions & 1 deletion t/mojo/json.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/loader.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 46;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/morbo.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/parameters.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/path.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/psgi.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 21;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/request.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/request_cgi.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 181;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/response.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 269;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/server.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# "Would you kindly shut your noise-hole?"
Expand Down
18 changes: 8 additions & 10 deletions t/mojo/template.t
@@ -1,5 +1,3 @@
#!/usr/bin/env perl

package MyTemplateExporter;
use Mojo::Base -strict;

Expand Down Expand Up @@ -657,22 +655,22 @@ test
EOF
isa_ok $output, 'Mojo::Exception', 'right exception';
like $output->message, qr/ohoh/, 'right message';
is $output->lines_before->[0]->[0], 10, 'right number';
is $output->lines_before->[0]->[0], 8, 'right number';
is $output->lines_before->[0]->[1], '}', 'right line';
is $output->lines_before->[1]->[0], 11, 'right number';
is $output->lines_before->[1]->[0], 9, 'right number';
is $output->lines_before->[1]->[1], '', 'right line';
is $output->lines_before->[2]->[0], 12, 'right number';
is $output->lines_before->[2]->[0], 10, 'right number';
is $output->lines_before->[2]->[1], 'package MyTemplateException;',
'right line';
is $output->lines_before->[3]->[0], 13, 'right number';
is $output->lines_before->[3]->[0], 11, 'right number';
is $output->lines_before->[3]->[1], 'use Mojo::Base -strict;', 'right line';
is $output->lines_before->[4]->[0], 14, 'right number';
is $output->lines_before->[4]->[0], 12, 'right number';
is $output->lines_before->[4]->[1], '', 'right line';
is $output->line->[0], 15, 'right number';
is $output->line->[0], 13, 'right number';
is $output->line->[1], "sub exception { die 'ohoh' }", 'right line';
is $output->lines_after->[0]->[0], 16, 'right number';
is $output->lines_after->[0]->[0], 14, 'right number';
is $output->lines_after->[0]->[1], '', 'right line';
is $output->lines_after->[1]->[0], 17, 'right number';
is $output->lines_after->[1]->[0], 15, 'right number';
is $output->lines_after->[1]->[1], 'package main;', 'right line';
like "$output", qr/ohoh/, 'right result';

Expand Down
1 change: 0 additions & 1 deletion t/mojo/transactor.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use Test::More tests => 175;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/url.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojo/user_agent.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/user_agent_online.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable libev and TLS
Expand Down
1 change: 0 additions & 1 deletion t/mojo/user_agent_tls.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/websocket.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/websocket_frames.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# "Being eaten by crocodile is just like going to sleep...
Expand Down
1 change: 0 additions & 1 deletion t/mojo/websocket_proxy.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojo/websocket_proxy_tls.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/charset_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
2 changes: 0 additions & 2 deletions t/mojolicious/dispatch.t
@@ -1,5 +1,3 @@
#!/usr/bin/env perl

package Test::Foo;
use Mojo::Base 'Mojolicious::Controller';

Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/dispatcher_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/embedded_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/embedded_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/exception_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/external/myapp.pl
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
2 changes: 0 additions & 2 deletions t/mojolicious/external/script/my_app
@@ -1,5 +1,3 @@
#!/usr/bin/env perl

use strict;
use warnings;

Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/external_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/external_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/group_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/i18n_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/i18n_shortcut_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# Disable Bonjour, IPv6 and libev
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/json_config_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down
1 change: 0 additions & 1 deletion t/mojolicious/json_config_mode_lite_app.t
@@ -1,4 +1,3 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

use utf8;
Expand Down

0 comments on commit 7a548ed

Please sign in to comment.