Skip to content

Commit

Permalink
rescued a few quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 24, 2012
1 parent 9725949 commit 8f781d1
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 24 deletions.
6 changes: 6 additions & 0 deletions lib/Mojo/Collection.pm
Expand Up @@ -5,6 +5,7 @@ use overload
'""' => sub { shift->join("\n") },
fallback => 1;

# "Sweet Zombie Jesus!"
use Exporter 'import';
use List::Util;
use Mojo::ByteStream;
Expand Down Expand Up @@ -50,6 +51,8 @@ sub map {
return $self->new(map { $_->$cb } @$self);
}

# "Facts are meaningless.
# You could use facts to prove anything that's even remotely true!"
sub pluck {
my ($self, $method, @args) = @_;
return $self->map(sub { $_->$method(@args) });
Expand All @@ -60,6 +63,9 @@ sub reverse {
return $self->new(reverse @$self);
}

# "You told Bart to kiss that girl?
# Why not encourage him to knock her out and drag her to a cave?
# Second base? Oh, Bart is a little too young for that."
sub shuffle {
my $self = shift;
return $self->new(List::Util::shuffle @$self);
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojo/Date.pm
Expand Up @@ -57,6 +57,8 @@ sub parse {
return $self;
}

# "But going through a divorce together,
# you can't pretend that didn't bring us closer together."
sub to_string {
my $self = shift;

Expand Down
6 changes: 6 additions & 0 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -69,6 +69,7 @@ sub client {
return $id;
}

# "I didn't think it was physically possible, but this both sucks and blows."
sub delay {
my $self = shift;
$self = $self->singleton unless ref $self;
Expand Down Expand Up @@ -207,6 +208,7 @@ sub _id {
return $id;
}

# "She is well traveled, and I don't mean she travels a lot."
sub _manage {
my $self = shift;

Expand Down Expand Up @@ -243,6 +245,10 @@ sub _not_accepting {
$_->stop for values %{$self->{servers} || {}};
}

# "I am trying to save myself from going to Hell.
# Jews don't believe in Hell.
# No Hell! Thank you kid, you made my day.
# *heads over to the Gaza Strip Club*"
sub _remove {
my ($self, $id) = @_;

Expand Down
3 changes: 3 additions & 0 deletions lib/Mojo/Reactor.pm
Expand Up @@ -5,6 +5,9 @@ use Carp 'croak';
use IO::Poll qw(POLLERR POLLHUP POLLIN);
use Mojo::Loader;

# "This is the worst part. The calm before the battle.
# And then the battle is not so bad?
# Oh, right. I forgot about the battle."
sub detect {
my $try = $ENV{MOJO_REACTOR} || 'Mojo::Reactor::EV';
return Mojo::Loader->new->load($try) ? 'Mojo::Reactor::Poll' : $try;
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojo/Server.pm
Expand Up @@ -14,6 +14,9 @@ sub new {
return $self;
}

# "Lisa, if the Bible has taught us nothing else, and it hasn't,
# it's that girls should stick to girls sports,
# such as hot oil wrestling and foxy boxing and such."
sub build_app {
my ($self, $app) = @_;
local $ENV{MOJO_EXE};
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Routes/Route.pm
Expand Up @@ -158,6 +158,7 @@ sub route {
return $route;
}

# "I guess I could part with one doomsday device and still be feared."
sub to {
my $self = shift;

Expand Down Expand Up @@ -236,6 +237,8 @@ sub websocket {
return $route;
}

# "Oh no! Can we switch back using four or more bodies?
# I'm not sure. I'm afraid we need to use... MATH."
sub _generate_route {
my ($self, $methods, @args) = @_;

Expand Down
2 changes: 0 additions & 2 deletions t/mojolicious/templates/23.html.epl
@@ -1,3 +1 @@
%# "Facts are meaningless.
%# You could use facts to prove anything that's even remotely true!"
%= 20 + 3
1 change: 0 additions & 1 deletion t/mojolicious/templates/exception.html.epl
@@ -1,4 +1,3 @@
%# "Sweet Zombie Jesus!"
% my $self = shift;
% if ($self->app->mode eq 'development') {
%= $self->stash('exception')->message
Expand Down
3 changes: 0 additions & 3 deletions t/mojolicious/templates/exception.testing.html.ep
@@ -1,4 +1 @@
%# "You told Bart to kiss that girl?
%# Why not encourage him to knock her out and drag her to a cave?
%# Second base? Oh, Bart is a little too young for that."
Testing <%= $exception->message %>!
1 change: 0 additions & 1 deletion t/mojolicious/templates/foo/bar/index.html.epl
@@ -1,3 +1,2 @@
%# "She is well traveled, and I don't mean she travels a lot."
% my $c = shift;
Hello Mojo from the other template <%= $c->url_for %>!
2 changes: 0 additions & 2 deletions t/mojolicious/templates/foo/index.html.xpl
@@ -1,5 +1,3 @@
%# "But going through a divorce together,
%# you can't pretend that didn't bring us closer together."
% my $c = shift;
% $c->stash(handler => 'epl');
Hello Mojo from the template <%= $c->url_for %>! <%= $c->stash('msg') %>
2 changes: 0 additions & 2 deletions t/mojolicious/templates/layouts/default.html.epl
@@ -1,5 +1,3 @@
%# "I didn't think it was physically possible, but this both sucks *and*
%# blows."
% my $self = shift;
<!DOCTYPE html>
<html>
Expand Down
3 changes: 0 additions & 3 deletions t/mojolicious/templates/layouts/green.html.epl
@@ -1,6 +1,3 @@
%# "This is the worst part. The calm before the battle.
%# And then the battle is not so bad?
%# Oh, right. I forgot about the battle."
% my $self = shift;
<!DOCTYPE html>
<html>
Expand Down
4 changes: 0 additions & 4 deletions t/mojolicious/templates/not_found.testing.html.ep
@@ -1,5 +1 @@
%# "I am trying to save myself from going to Hell.
%# Jews don't believe in Hell.
%# No Hell! Thank you kid, you made my day.
%# *heads over to the Gaza Strip Club*"
Testing not found!
3 changes: 0 additions & 3 deletions t/mojolicious/templates/syntaxerror.html.epl
@@ -1,4 +1 @@
%# "Lisa, if the Bible has taught us nothing else, and it hasn't,
%# it's that girls should stick to girls sports,
%# such as hot oil wrestling and foxy boxing and such."
% {
1 change: 0 additions & 1 deletion t/mojolicious/templates/withlayout.html.epl
@@ -1,3 +1,2 @@
%# "I guess I could part with one doomsday device and still be feared."
% shift->stash(layout => 'green');
Seems to work!
2 changes: 0 additions & 2 deletions t/mojolicious/templates2/42.html.ep
@@ -1,3 +1 @@
%# "Oh no! Can we switch back using four or more bodies?
%# I'm not sure. I'm afraid we need to use... MATH."
The answer is <%= 40 + 2 %>.

0 comments on commit 8f781d1

Please sign in to comment.