Skip to content

Commit

Permalink
fixed a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 5, 2013
1 parent 954fb2c commit 4ad5dba
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Changes
Expand Up @@ -2441,7 +2441,7 @@
- Added EXPERIMENTAL attribute partial to MojoX::Routes.
- Added EXPERIMENTAL CSS3 selector tests to Test::Mojo.
- Added EXPERIMENTAL method test_server to Mojo::Client.
- Added EXPERIMENTAL oneliner module ojo.
- Added EXPERIMENTAL one-liner module ojo.
- Added EXPERIMENTAL support for static files in the DATA section of
Mojolicious applications.
- Added EXPERIMENTAL Bonjour support.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -34,7 +34,7 @@

## Installation

All you need is a oneliner, it takes less than a minute.
All you need is a one-liner, it takes less than a minute.

$ curl get.mojolicio.us | sh

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides.pod
Expand Up @@ -118,7 +118,7 @@ Test driven development toolkit for web applications.

=item L<ojo>

Fun oneliners using everything above.
Fun one-liners using everything above.

=back

Expand Down
10 changes: 5 additions & 5 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1067,9 +1067,9 @@ This can be an invaluable tool for testing your applications.

$ ./myapp.pl get /welcome 'head > title'

=head2 Oneliners
=head2 One-liners

For quick hacks and especially testing, L<ojo> oneliners are also a great
For quick hacks and especially testing, L<ojo> one-liners are also a great
choice.

$ perl -Mojo -E 'say g("mojolicio.us")->dom->html->head->title->text'
Expand Down Expand Up @@ -1129,7 +1129,7 @@ namespace.

=head2 Running code against your application

Ever thought about running a quick oneliner against your L<Mojolicious>
Ever thought about running a quick one-liner against your L<Mojolicious>
application to test something? Thanks to the C<eval> command you can do just
that, the application object itself can be accessed via C<app>.

Expand Down Expand Up @@ -1213,10 +1213,10 @@ rendering kicks in even if no actual code gets executed by the router. The
renderer just picks up the C<text> value from the stash and generates a
response.

=head2 Hello World oneliners
=head2 Hello World one-liners

The C<Hello World> example above can get even a little bit shorter in an
L<ojo> oneliner.
L<ojo> one-liner.

$ perl -Mojo -E 'a({text => "Hello World!"})->start' daemon

Expand Down
8 changes: 4 additions & 4 deletions lib/ojo.pm
Expand Up @@ -8,10 +8,10 @@ use Mojo::JSON 'j';
use Mojo::UserAgent;
use Mojo::Util 'monkey_patch';

# Silent oneliners
# Silent one-liners
$ENV{MOJO_LOG_LEVEL} ||= 'fatal';

# Singleton user agent for oneliners
# Singleton user agent for one-liners
my $UA = Mojo::UserAgent->new;

sub import {
Expand Down Expand Up @@ -56,15 +56,15 @@ sub _request {
=head1 NAME
ojo - Fun oneliners with Mojo!
ojo - Fun one-liners with Mojo!
=head1 SYNOPSIS
$ perl -Mojo -E 'say g("mojolicio.us")->dom->at("title")->text'
=head1 DESCRIPTION
A collection of automatically exported functions for fun Perl oneliners. Ten
A collection of automatically exported functions for fun Perl one-liners. Ten
redirects will be followed by default, you can change this behavior with the
MOJO_MAX_REDIRECTS environment variable.
Expand Down
4 changes: 2 additions & 2 deletions t/mojo/template.t
Expand Up @@ -909,10 +909,10 @@ $output = $mt->render(<<'EOF');
EOF
is $output, "<html>\n</html>\n", 'commented out tags';

# Oneliner
# One-liner
$mt = Mojo::Template->new;
$output = $mt->render('<html><%= 3 * 3 %></html>\\');
is $output, '<html>9</html>', 'oneliner';
is $output, '<html>9</html>', 'one-liner';

# Different line start
$mt = Mojo::Template->new;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/user_agent_online.t
Expand Up @@ -145,7 +145,7 @@ ok $tx->is_finished, 'transaction is finished';
is $tx->res->code, 301, 'right status';
like $tx->res->headers->connection, qr/close/i, 'right "Connection" header';

# Oneliner
# One-liner
is g('mojolicio.us')->code, 200, 'right status';
is h('mojolicio.us')->code, 200, 'right status';
is h('mojolicio.us')->body, '', 'no content';
Expand Down

0 comments on commit 4ad5dba

Please sign in to comment.