Skip to content

Commit

Permalink
removed experimental status from WebSocket and JSON Pointer support
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 30, 2012
1 parent f0852de commit 292b6e7
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 36 deletions.
6 changes: 4 additions & 2 deletions Changes
@@ -1,9 +1,11 @@
This file documents the revision history for Perl extension Mojolicious.

2.47 2012-01-30 00:00:00
- Added EXPERIMENTAL drain event to Mojo::Content.
- Added EXPERIMENTAL drain event to Mojo::Transaction::WebSocket.
- Added drain event to Mojo::Content.
- Added drain event to Mojo::Transaction::WebSocket.
- Added pdf MIME type. (bfaist)
- Removed experimental status from Mojo::Transaction::WebSocket.
- Removed experimental status from Mojo::JSON::Pointer.
- Improved documentation.
- Improved tests.
- Fixed small bug in Mojo::IOLoop::Stream that caused close events to
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/Content.pm
Expand Up @@ -423,8 +423,7 @@ L<Mojo::Content> can emit the following events.
...
});
Emitted once all data has been written. Note that this event is EXPERIMENTAL
and might change without warning!
Emitted once all data has been written.
$content->on(drain => sub {
my $content = shift;
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/JSON/Pointer.pm
Expand Up @@ -51,8 +51,7 @@ Mojo::JSON::Pointer - JSON Pointers
=head1 DESCRIPTION
L<Mojo::JSON::Pointer> implements JSON Pointers as described in
L<http://tools.ietf.org/html/draft-pbryan-zyp-json-pointer-02>. Note that
this module is EXPERIMENTAL and might change without warning!
L<http://tools.ietf.org/html/draft-pbryan-zyp-json-pointer-02>.
=head1 METHODS
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/Message.pm
Expand Up @@ -777,8 +777,7 @@ Alias for L<Mojo::Content/"is_multipart">.
Decode JSON message body directly using L<Mojo::JSON> if possible, returns
C<undef> otherwise. An optional JSON Pointer can be used to extract a
specific value with L<Mojo::JSON::Pointer>. Note that the JSON Pointer
argument of this method is EXPERIMENTAL and might change without warning!
specific value with L<Mojo::JSON::Pointer>.
say $message->json->{foo}->{bar}->[23];
say $message->json('/foo/bar/23');
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/Transaction/WebSocket.pm
Expand Up @@ -343,8 +343,7 @@ Mojo::Transaction::WebSocket - WebSocket transaction container
=head1 DESCRIPTION
L<Mojo::Transaction::WebSocket> is a container for WebSocket transactions as
described in RFC 6455. Note that this module is EXPERIMENTAL and might change
without warning!
described in RFC 6455.
=head1 EVENTS
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -977,8 +977,7 @@ transactions non-blocking.
$ua->websocket('ws://localhost:3000' => sub {...});
Open a non-blocking WebSocket connection with transparent handshake, takes
the exact same arguments as L<Mojo::UserAgent::Transactor/"websocket">. Note
that this method is EXPERIMENTAL and might change without warning!
the exact same arguments as L<Mojo::UserAgent::Transactor/"websocket">.
$ua->websocket('ws://localhost:3000/echo' => sub {
my ($ua, $tx) = @_;
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -922,8 +922,7 @@ defaults to rendering an empty C<204> response.
$c = $c->send_message('Hi there!', sub {...});
Send a message non-blocking via WebSocket, the optional drain callback will
be invoked once all data has been written. Note that this method is
EXPERIMENTAL and might change without warning!
be invoked once all data has been written.
# Send JSON object as text frame
$c->send_message([text => Mojo::JSON->new->encode({hello => 'world'})]);
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -949,8 +949,7 @@ Add a waypoint to this route as nested child.
my $websocket = $r->websocket('/:foo' => sub {...});
Generate route matching only C<WebSocket> handshakes. 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.
=head1 SHORTCUTS
Expand Down
30 changes: 10 additions & 20 deletions lib/Test/Mojo.pm
Expand Up @@ -537,8 +537,7 @@ Opposite of C<element_exists>.
$t = $t->finish_ok;
$t = $t->finish_ok('finished successfully');
Finish C<WebSocket> connection. Note that this method is EXPERIMENTAL and
might change without warning!
Finish C<WebSocket> connection.
=head2 C<get_ok>
Expand Down Expand Up @@ -595,57 +594,50 @@ Check response content for JSON data.
$t = $t->json_is('/foo/bar/1' => 2, 'right value');
Check the value extracted from JSON response using the given JSON Pointer
with L<Mojo::JSON::Pointer>. Note that this method is EXPERIMENTAL and might
change without warning!
with L<Mojo::JSON::Pointer>.
=head2 C<json_has>
$t = $t->json_has('/foo');
$t = $t->json_has('/minibar', 'has a minibar');
Check if JSON response contains a value that can be identified using the
given JSON Pointer with L<Mojo::JSON::Pointer>. Note that this method is
EXPERIMENTAL and might change without warning!
given JSON Pointer with L<Mojo::JSON::Pointer>.
=head2 C<json_hasnt>
$t = $t->json_hasnt('/foo');
$t = $t->json_hasnt('/minibar', 'no minibar');
Opposite of C<json_has>. Note that this method is EXPERIMENTAL and might
change without warning!
Opposite of C<json_has>.
=head2 C<message_is>
$t = $t->message_is('working!');
$t = $t->message_is('working!', 'right message');
Check WebSocket message for exact match. Note that this method is
EXPERIMENTAL and might change without warning!
Check WebSocket message for exact match.
=head2 C<message_isnt>
$t = $t->message_isnt('working!');
$t = $t->message_isnt('working!', 'different message');
Opposite of C<message_is>. Note that this method is EXPERIMENTAL and might
change without warning!
Opposite of C<message_is>.
=head2 C<message_like>
$t = $t->message_like(qr/working!/);
$t = $t->message_like(qr/working!/, 'right message');
Check WebSocket message for similar match. Note that this method is
EXPERIMENTAL and might change without warning!
Check WebSocket message for similar match.
=head2 C<message_unlike>
$t = $t->message_unlike(qr/working!/);
$t = $t->message_unlike(qr/working!/, 'different message');
Opposite of C<message_like>. Note that this method is EXPERIMENTAL and might
change without warning!
Opposite of C<message_like>.
=head2 C<post_ok>
Expand Down Expand Up @@ -679,8 +671,7 @@ Reset user agent session.
$t = $t->send_message_ok('hello');
$t = $t->send_message_ok('hello', 'sent successfully');
Send C<WebSocket> message. Note that this method is EXPERIMENTAL and might
change without warning!
Send C<WebSocket> message.
=head2 C<status_is>
Expand Down Expand Up @@ -729,8 +720,7 @@ Opposite of C<text_like>.
$t = $t->websocket_ok('/echo');
Open a C<WebSocket> connection with transparent handshake, takes the exact
same arguments as L<Mojo::UserAgent/"websocket">. Note that this method is
EXPERIMENTAL and might change without warning!
same arguments as L<Mojo::UserAgent/"websocket">.
=head1 SEE ALSO
Expand Down

0 comments on commit 292b6e7

Please sign in to comment.