Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed experimental status from PATCH support
  • Loading branch information
kraih committed Feb 29, 2012
1 parent 949e0da commit 502ede4
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
11 changes: 9 additions & 2 deletions Changes
@@ -1,10 +1,17 @@
This file documents the revision history for Perl extension Mojolicious.

2.56 2012-02-29 00:00:00
- Removed experimental status from patch function in
Mojolicious::Lite.
- Removed experimental status from patch method in
Mojolicious::Routes.
- Removed experimental status from patch method in Mojo::UserAgent.
- Removed experimental status from patch_ok method in Test::Mojo.
- Removed experimental status from t function in ojo.
- Improved documentation.
- Fixed small inconsistency between Mojo::IOWatcher and
Mojo::IOWatcher::EV where Mojo::IOWatcher would not stop
automatically without watchers.
Mojo::IOWatcher::EV where Mojo::IOWatcher wouldn't stop
automatically when not watching for events anymore.
- Fixed Mojo::IOLoop to clean up after itself.

2.55 2012-02-28 00:00:00
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -929,8 +929,7 @@ Check if request for domain would use a proxy server.
Perform blocking HTTP C<PATCH> request and return resulting
L<Mojo::Transaction::HTTP> object, takes the exact same arguments as
L<Mojo::UserAgent::Transactor/"tx"> (except for the method). You can also
append a callback to perform requests non-blocking. Note that this method is
EXPERIMENTAL and might change without warning!
append a callback to perform requests non-blocking.
$ua->patch('http://kraih.com' => sub {
my ($ua, $tx) = @_;
Expand Down
17 changes: 7 additions & 10 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -35,10 +35,11 @@ sub import {
# Export
no warnings 'redefine';
my $root = $routes;
for my $name (qw/any get patch post put websocket/) {
*{"${caller}::$name"} = sub { $routes->$name(@_) };
}
*{"${caller}::new"} = *{"${caller}::app"} = sub {$app};
*{"${caller}::any"} = sub { $routes->any(@_) };
*{"${caller}::del"} = sub { $routes->delete(@_) };
*{"${caller}::get"} = sub { $routes->get(@_) };
*{"${caller}::group"} = sub (&) {
my $old = $root;
$_[0]->($root = $routes);
Expand All @@ -47,13 +48,9 @@ sub import {
};
*{"${caller}::helper"} = sub { $app->helper(@_) };
*{"${caller}::hook"} = sub { $app->hook(@_) };
*{"${caller}::plugin"} = sub { $app->plugin(@_) };
*{"${caller}::under"} = *{"${caller}::ladder"} =
sub { $routes = $root->under(@_) };
*{"${caller}::patch"} = sub { $routes->patch(@_) };
*{"${caller}::plugin"} = sub { $app->plugin(@_) };
*{"${caller}::post"} = sub { $routes->post(@_) };
*{"${caller}::put"} = sub { $routes->put(@_) };
*{"${caller}::websocket"} = sub { $routes->websocket(@_) };

# We are most likely the app in a lite environment
$ENV{MOJO_APP} ||= $app;
Expand Down Expand Up @@ -888,8 +885,7 @@ Alias for L<Mojolicious/"hook">.
my $route = patch '/:foo' => sub {...};
Generate route matching only C<PATCH> requests. See also the tutorial above
for more argument variations. Note that this function is EXPERIMENTAL and
might change without warning!
for more argument variations.
=head2 C<plugin>
Expand Down Expand Up @@ -924,7 +920,8 @@ also the tutorial above for more argument variations.
my $route = websocket '/:foo' => sub {...};
Generate route matching only C<WebSocket> handshakes. See also the tutorial
above for more argument variations.
above for more argument variations. Note that this function is EXPERIMENTAL
and might change without warning!
=head1 ATTRIBUTES
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -868,8 +868,7 @@ Parse a pattern.
my $route = $route->patch('/:foo' => sub {...});
Generate route matching only C<PATCH> requests. See also the
L<Mojolicious::Lite> tutorial for more argument variations. Note that this
method is EXPERIMENTAL and might change without warning!
L<Mojolicious::Lite> tutorial for more argument variations.
=head2 C<post>
Expand Down
3 changes: 1 addition & 2 deletions lib/Test/Mojo.pm
Expand Up @@ -658,8 +658,7 @@ change without warning!
$t = $t->patch_ok('/foo');
Perform a C<PATCH> request and check for transport errors, takes the exact
same arguments as L<Mojo::UserAgent/"patch">. Note that this method is
EXPERIMENTAL and might change without warning!
same arguments as L<Mojo::UserAgent/"patch">.
=head2 C<post_ok>
Expand Down
3 changes: 1 addition & 2 deletions lib/ojo.pm
Expand Up @@ -157,8 +157,7 @@ L<Mojo::Message::Response> object.
my $res = t('http://mojolicio.us');
Perform C<PATCH> request with L<Mojo::UserAgent/"patch"> and return resulting
L<Mojo::Message::Response> object. Note that this function is EXPERIMENTAL
and might change without warning!
L<Mojo::Message::Response> object.
=head2 C<u>
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/ioloop.t
Expand Up @@ -122,7 +122,7 @@ $loop->drop($id);
$loop->drop($id2);
isa_ok $handle, 'IO::Socket', 'right reference';

# Make sure it stops automatically when no events are being watched
# Make sure it stops automatically when not watching for events
$loop->start;

# Stream
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/iowatcher.t
Expand Up @@ -24,7 +24,7 @@ require Mojo::IOLoop;
$watcher = Mojo::IOLoop->singleton->iowatcher;
is ref $watcher, 'Mojo::IOWatcher', 'right object';

# Make sure it stops automatically when no events are being watched
# Make sure it stops automatically when not watching for events
Mojo::IOLoop->start;

# Listen
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/iowatcher_ev.t
Expand Up @@ -25,7 +25,7 @@ require Mojo::IOLoop;
$watcher = Mojo::IOLoop->singleton->iowatcher;
is ref $watcher, 'Mojo::IOWatcher::EV', 'right object';

# Make sure it stops automatically when no events are being watched
# Make sure it stops automatically when not watching for events
Mojo::IOLoop->start;

# Listen
Expand Down

0 comments on commit 502ede4

Please sign in to comment.