X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FREST.pm;h=ea6a6c8e4d8d2786c008b03a567587b32478bc56;hb=2fd04833bede1413a73d037414c57dcf01bbae94;hp=6802f16023fe73121f7c1b42885d826ffd1471c1;hpb=0a6732c935e687213c53f013d925f35083f8c592;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index 6802f16..ea6a6c8 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -1,5 +1,6 @@ package Catalyst::Action::REST; +use utf8; use Moose; use namespace::autoclean; @@ -10,9 +11,6 @@ use Catalyst::Controller::REST; BEGIN { require 5.008001; } -our $VERSION = '1.05'; -$VERSION = eval $VERSION; - sub BUILDARGS { my $class = shift; my $config = shift; @@ -20,6 +18,8 @@ sub BUILDARGS { return $class->SUPER::BUILDARGS($config, @_); } +=encoding utf-8 + =head1 NAME Catalyst::Action::REST - Automated REST Method Dispatching @@ -158,7 +158,7 @@ sub get_allowed_methods { }; $methods->{'HEAD'} = 1 if $methods->{'GET'}; delete $methods->{'not_implemented'}; - return keys %$methods; + return sort keys %$methods; }; sub _return_options { @@ -254,9 +254,11 @@ Colin Newell Wallace Reis Ewreis@cpan.orgE +André Walker (andrewalker) + =head1 COPYRIGHT -Copyright (c) 2006-2012 the above named AUTHOR and CONTRIBUTORS +Copyright (c) 2006-2015 the above named AUTHOR and CONTRIBUTORS =head1 LICENSE