Skip to content

Commit

Permalink
split up Mojolicious::Guides::Cheatsheet into more reference document…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
kraih committed Feb 26, 2012
1 parent 153f79b commit 1925cb9
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 372 deletions.
4 changes: 3 additions & 1 deletion Changes
@@ -1,9 +1,11 @@
This file documents the revision history for Perl extension Mojolicious.

2.54 2012-02-25 00:00:00
2.54 2012-02-26 00:00:00
- Added support for MOJO_CONNECT_TIMEOUT, MOJO_INACTIVITY_TIMEOUT,
MOJO_REQUEST_TIMEOUT and MOJO_WEBSOCKET_TIMEOUT environment
variables.
- Split up Mojolicious::Guides::Cheatsheet into more reference
documentation.
- Increased default connect timeout from 3 to 10 seconds in
Mojo::UserAgent and Mojo::IOLoop::Client.
- Improved test command to colorize by default.
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Command.pm
Expand Up @@ -488,7 +488,8 @@ relative file.
$commands->run;
$commands->run(@ARGV);
Load and run commands.
Load and run commands. Automatic deployment environment detection can be
disabled with the C<MOJO_NO_DETECT> environment variable.
=head2 C<start>
Expand Down
12 changes: 6 additions & 6 deletions lib/Mojo/DOM.pm
Expand Up @@ -407,7 +407,7 @@ sub _text {
sub _trim {
my ($e, $trim) = @_;

# Deactivated
# Disabled
return 0 unless $trim = defined $trim ? $trim : 1;

# Detect "pre" tag
Expand Down Expand Up @@ -477,7 +477,7 @@ switch into XML mode and everything becomes case sensitive.
say $dom->at('P')->text;
say $dom->P->{ID};
XML detection can be also deactivated with the C<xml> method.
XML detection can be also disabled with the C<xml> method.
# XML sematics
$dom->xml(1);
Expand All @@ -502,7 +502,7 @@ Construct a new L<Mojo::DOM> object.
my $untrimmed = $dom->all_text(0);
Extract all text content from DOM structure, smart whitespace trimming is
activated by default. Note that the trim argument of this method is
disabled by default. Note that the trim argument of this method is
EXPERIMENTAL and might change without warning!
# "foo bar baz"
Expand Down Expand Up @@ -645,7 +645,7 @@ Find root node.
my $untrimmed = $dom->text(0);
Extract text content from element only (not including child elements), smart
whitespace trimming is activated by default. Note that the trim argument of
whitespace trimming is disabled by default. Note that the trim argument of
this method is EXPERIMENTAL and might change without warning!
# "foo baz"
Expand All @@ -660,7 +660,7 @@ this method is EXPERIMENTAL and might change without warning!
my $untrimmed = $dom->text_after(0);
Extract text content immediately following element, smart whitespace trimming
is activated by default. Note that this method is EXPERIMENTAL and might
is disabled by default. Note that this method is EXPERIMENTAL and might
change without warning!
# "baz"
Expand All @@ -675,7 +675,7 @@ change without warning!
my $untrimmed = $dom->text_before(0);
Extract text content immediately preceding element, smart whitespace trimming
is activated by default. Note that this method is EXPERIMENTAL and might
is disabled by default. Note that this method is EXPERIMENTAL and might
change without warning!
# "foo"
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Home.pm
Expand Up @@ -167,7 +167,8 @@ Construct a new L<Mojo::Home> object.
$home = $home->detect;
$home = $home->detect('My::App');
Detect home directory from application class.
Detect home directory from value of C<MOJO_HOME> environment variable or
application class.
=head2 C<lib_dir>
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -150,7 +150,8 @@ value of C<path> or C<STDERR>.
my $level = $log->level;
$log = $log->level('debug');
Active log level, defaults to C<debug>.
Active log level, defaults to the value of the C<MOJO_LOG_LEVEL> environment
variable or C<debug>.
These levels are currently available:
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Server.pm
Expand Up @@ -124,8 +124,8 @@ Application this server handles, defaults to a L<Mojo::HelloWorld> object.
my $app_class = $server->app_class;
$server = $server->app_class('MojoSubclass');
Class of the application this server handles, defaults to
L<Mojo::HelloWorld>.
Class of the application this server handles, defaults to the value of the
C<MOJO_APP> environment variable or L<Mojo::HelloWorld>.
=head1 METHODS
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -369,7 +369,8 @@ WebSocket server with C<IPv6>, C<TLS>, C<Bonjour> and C<libev> support.
Optional modules L<EV>, L<IO::Socket::IP>, L<IO::Socket::SSL> and
L<Net::Rendezvous::Publish> are supported transparently and used if
installed.
installed. Individual features can be disabled with the C<MOJO_NO_BONJOUR>,
C<MOJO_NO_IPV6> and C<MOJO_NO_TLS> environment variables.
See L<Mojolicious::Guides::Cookbook> for deployment recipes.
Expand Down
6 changes: 4 additions & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -632,7 +632,8 @@ L<Mojo::UserAgent> is a full featured non-blocking I/O HTTP 1.1 and WebSocket
user agent with C<IPv6>, C<TLS> and C<libev> support.
Optional modules L<EV>, L<IO::Socket::IP> and L<IO::Socket::SSL> are
supported transparently and used if installed.
supported transparently and used if installed. Individual features can be
disabled with the C<MOJO_NO_IPV6> and C<MOJO_NO_TLS> environment variables.
=head1 EVENTS
Expand Down Expand Up @@ -890,7 +891,8 @@ append a callback to perform requests non-blocking.
$ua = $ua->detect_proxy;
Check environment variables C<HTTP_PROXY>, C<http_proxy>, C<HTTPS_PROXY>,
C<https_proxy>, C<NO_PROXY> and C<no_proxy> for proxy information.
C<https_proxy>, C<NO_PROXY> and C<no_proxy> for proxy information. Automatic
proxy detection can be enabled with the C<MOJO_PROXY> environment variable.
=head2 C<get>
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -32,8 +32,8 @@ our $DEV_NOT_FOUND = $H->slurp_rel_file('not_found.development.html.ep');

# Reserved stash values
my @RESERVED = (
qw/action app cb class controller data exception extends format handler/,
qw/json layout method namespace partial path status template text/
qw/action app cb class controller data extends format handler json layout/,
qw/method namespace partial path status template text/
);
my %RESERVED;
$RESERVED{$_}++ for @RESERVED;
Expand Down
4 changes: 0 additions & 4 deletions lib/Mojolicious/Guides.pod
Expand Up @@ -53,10 +53,6 @@ Generating content with the L<Mojolicious> renderer.

Cooking with L<Mojolicious>, recipes for every taste.

=item L<Mojolicious::Guides::Cheatsheet>

A concise all-purpose reference.

=item L<Mojolicious::Guides::FAQ>

Frequently asked questions with the right answers.
Expand Down

0 comments on commit 1925cb9

Please sign in to comment.