Skip to content

Commit

Permalink
renamed Mojo::Command to Mojolicious::Command
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 21, 2012
1 parent 7447458 commit a29035f
Show file tree
Hide file tree
Showing 33 changed files with 270 additions and 559 deletions.
7 changes: 6 additions & 1 deletion Changes
@@ -1,9 +1,14 @@

3.0 2012-06-21
3.0 2012-06-22
- Code name "Rainbow", this is a major release.
- Removed Mojolicious::Plugin::I18N so it can be maintained as a separate
distribution.
- Renamed Mojo::CookieJar to Mojo::UserAgent::CookieJar.
- Renamed Mojo::Command to Mojolicious::Command.
- Moved get_all_data and get_data methods from Mojo::Command to
Mojo::Loader.
- Moved class_to_file and class_to_path methods from Mojo::Command to
Mojo::Util.
- Updated IO::Socket::SSL requirement to 1.75 for IO::Socket::IP support.
- Switched back from IO::Socket::INET6 to IO::Socket::IP for IPv6 support.
- Switched from HMAC-MD5 to HMAC-SHA1 for signed cookies.
Expand Down
21 changes: 17 additions & 4 deletions lib/Mojo/ByteStream.pm
Expand Up @@ -9,10 +9,10 @@ our @EXPORT_OK = ('b');

# Turn most functions from Mojo::Util into methods
my @UTILS = (
qw(b64_decode b64_encode camelize decamelize hmac_md5_sum hmac_sha1_sum),
qw(html_escape html_unescape md5_bytes md5_sum punycode_decode),
qw(punycode_encode qp_decode qp_encode quote sha1_bytes sha1_sum trim),
qw(unquote url_escape url_unescape xml_escape)
qw(b64_decode b64_encode camelize class_to_file class_to_path decamelize),
qw(hmac_md5_sum hmac_sha1_sum html_escape html_unescape md5_bytes md5_sum),
qw(punycode_decode punycode_encode qp_decode qp_encode quote sha1_bytes),
qw(sha1_sum trim unquote url_escape url_unescape xml_escape)
);
{
no strict 'refs';
Expand Down Expand Up @@ -78,6 +78,7 @@ sub split {
return Mojo::Collection->new(map { $self->new($_) } split $pattern, $$self);
}

# "My cat's breath smells like cat food."
sub to_string { ${shift()} }

1;
Expand Down Expand Up @@ -148,6 +149,18 @@ Alias for L<Mojo::Util/"b64_encode">.
Alias for L<Mojo::Util/"camelize">.
=head2 C<class_to_file>
$stream = $stream->class_to_file;
Alias for L<Mojo::Util/"class_to_file">.
=head2 C<class_to_path>
$stream = $stream->class_to_path;
Alias for L<Mojo::Util/"class_to_path">.
=head2 C<clone>
my $stream2 = $stream->clone;
Expand Down

0 comments on commit a29035f

Please sign in to comment.