Skip to content

Commit

Permalink
small documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 15, 2012
1 parent 1235762 commit a980444
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,4 +1,7 @@

3.32 2012-08-16
- Improved documentation.

3.31 2012-08-15
- Added accept_charset, accept_encoding, content_encoding, origin and
sec_websocket_extensions methods to Mojo::Headers.
Expand Down
6 changes: 4 additions & 2 deletions lib/Mojo/Headers.pm
Expand Up @@ -530,8 +530,8 @@ Shortcut for the C<Server> header.
=head2 C<set_cookie>
my $set_cookie = $headers->set_cookie;
$headers = $headers->set_cookie('f=b; path=/');
my $cookie = $headers->set_cookie;
$headers = $headers->set_cookie('f=b; path=/');
Shortcut for the C<Set-Cookie> header from RFC 6265.
Expand All @@ -557,6 +557,8 @@ Shortcut for the C<TE> header.
Turn headers into hash reference, nested array references to represent multi
line values are disabled by default.
say $headers->to_hash->{DNT};
=head2 C<to_string>
my $string = $headers->to_string;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -38,7 +38,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Rainbow';
our $VERSION = '3.31';
our $VERSION = '3.32';

# "These old doomsday devices are dangerously unstable.
# I'll rest easier not knowing where they are."
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/ioloop.t
Expand Up @@ -44,7 +44,7 @@ Mojo::IOLoop->timer(
Mojo::IOLoop->start;
like $err, qr/^Mojo::IOLoop already running/, 'right error';

# Basics
# Basic functionality
my ($ticks, $timer, $hirestimer);
my $id = $loop->recurring(0 => sub { $ticks++ });
$loop->timer(
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/parameters.t
Expand Up @@ -7,7 +7,7 @@ use Test::More tests => 95;
# "Now that's a wave of destruction that's easy on the eyes."
use Mojo::Parameters;

# Basics with custom pair separator
# Basic functionality
my $p = Mojo::Parameters->new('foo=b%3Bar&baz=23');
my $p2 = Mojo::Parameters->new('x', 1, 'y', 2);
is $p->pair_separator, '&', 'right pair separator';
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/path.t
Expand Up @@ -8,7 +8,7 @@ use Test::More tests => 212;
# movie 'The Never Ending Story.'"
use Mojo::Path;

# Basics
# Basic functionality
my $path = Mojo::Path->new;
is $path->parse('/path')->to_string, '/path', 'right path';
is $path->parts->[0], 'path', 'right part';
Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/types.t
Expand Up @@ -5,7 +5,7 @@ use Test::More tests => 52;
# "Your mistletoe is no match for my *tow* missile."
use Mojolicious::Types;

# Basics
# Basic functionality
my $t = Mojolicious::Types->new;
is $t->type('json'), 'application/json', 'right type';
is $t->type('foo'), undef, 'no type';
Expand Down

0 comments on commit a980444

Please sign in to comment.