Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 5, 2013
1 parent 573465b commit 21c676e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
11 changes: 6 additions & 5 deletions Changes
@@ -1,4 +1,6 @@

4.18 2013-07-05

4.17 2013-07-04
- Updated jQuery to version 2.0.3.
- Improved Mojo::IOLoop::Server to use Perfect Forward Secrecy for TLS.
Expand Down Expand Up @@ -475,7 +477,7 @@
- Fixed WebSocket bug in Mojo::Content.

3.46 2012-10-11
- Improved router and renderer to allow camel case controllers.
- Improved router and renderer to allow CamelCase controllers.

3.45 2012-10-10
- Added multi_accept attribute to Mojo::IOLoop.
Expand All @@ -487,7 +489,7 @@
- Improved documentation browser CSS. (tempire)

3.44 2012-09-29
- Improved html_escape to favor lower case entities. (judofyr)
- Improved html_escape to favor lowercase entities. (judofyr)
- Improved javascript and stylesheet helpers to not generate type
attributes.

Expand Down Expand Up @@ -1624,8 +1626,7 @@
- Fixed small route rendering bug.

1.86 2011-08-21
- Deprecated camel case command modules and lowercased all the built-in
ones.
- Deprecated CamelCase command modules and lowercased all the built-in ones.
- Added EXPERIMENTAL support for testing WebSockets with Test::Mojo.
- Added GET/POST parameter support to respond_to.
- Made class_to_file slightly smarter.
Expand Down Expand Up @@ -3144,7 +3145,7 @@
0.8008 2008-11-07
- Fixed multipart parsing for short requests.
- Fixed content file storage to specific file.
- Fixed lower case appclasses.
- Fixed lowercase appclasses.

0.8007 2008-11-07
- Cleaned up the API some more.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -401,7 +401,7 @@ use it for validation.
=head1 CASE SENSITIVITY
L<Mojo::DOM> defaults to HTML semantics, that means all tags and attributes
are lowercased and selectors need to be lower case as well.
are lowercased and selectors need to be lowercase as well.
my $dom = Mojo::DOM->new('<P ID="greeting">Hi!</P>');
say $dom->at('p')->text;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Headers.pm
Expand Up @@ -22,7 +22,7 @@ for my $header (@HEADERS) {
monkey_patch __PACKAGE__, $name, sub { scalar shift->header($header => @_) };
}

# Lower case headers
# Lowercase headers
my %NORMALCASE = map { lc($_) => $_ } @HEADERS;

sub add {
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojo/Util.pm
Expand Up @@ -51,7 +51,7 @@ sub camelize {
my $str = shift;
return $str if $str =~ /^[A-Z]/;

# Camel case words
# CamelCase words
return join '::', map {
join '', map { ucfirst lc } split /_/, $_
} split /-/, $str;
Expand All @@ -74,7 +74,7 @@ sub decamelize {
my @parts;
for my $part (split /::/, $str) {
# Snake case words
# snake_case words
my @words;
push @words, lc $1 while $part =~ s/([A-Z]{1}[^A-Z]*)//;
push @parts, join '_', @words;
Expand Down Expand Up @@ -410,7 +410,7 @@ Base64 encode bytes, the line ending defaults to a newline.
my $camelcase = camelize $snakecase;
Convert snake case string to camel case and replace C<-> with C<::>.
Convert snake_case string to CamelCase and replace C<-> with C<::>.
# "FooBar"
camelize 'foo_bar';
Expand Down Expand Up @@ -445,7 +445,7 @@ Convert class name to path.
my $snakecase = decamelize $camelcase;
Convert camel case string to snake case and replace C<::> with C<->.
Convert CamelCase string to snake_case and replace C<::> with C<->.
# "foo_bar"
decamelize 'FooBar';
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -41,7 +41,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.17';
our $VERSION = '4.18';

sub AUTOLOAD {
my $self = shift;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command.pm
Expand Up @@ -96,7 +96,7 @@ Mojolicious::Command - Command base class
=head1 SYNOPSIS
# Lower case command name
# Lowercase command name
package Mojolicious::Command::mycommand;
use Mojo::Base 'Mojolicious::Command';
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/generate/app.pm
Expand Up @@ -12,7 +12,7 @@ sub run {

# Prevent bad applications
die <<EOF unless $class =~ /^[A-Z](?:\w|::)+$/;
Your application name has to be a well formed (camel case) Perl module name
Your application name has to be a well formed (CamelCase) Perl module name
like "MyApp".
EOF

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin.pm
Expand Up @@ -15,7 +15,7 @@ Mojolicious::Plugin - Plugin base class
=head1 SYNOPSIS
# Camel case plugin name
# CamelCase plugin name
package Mojolicious::Plugin::MyPlugin;
use Mojo::Base 'Mojolicious::Plugin';
Expand Down

0 comments on commit 21c676e

Please sign in to comment.