[Catalyst-commits] r9264 - in Catalyst-Runtime/5.80/trunk/lib: .
Catalyst
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Sun Feb 8 16:48:34 GMT 2009
Author: rafl
Date: 2009-02-08 16:48:34 +0000 (Sun, 08 Feb 2009)
New Revision: 9264
Modified:
Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Dispatcher.pm
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine.pm
Log:
Only use the imported version of Scalar::Util::blessed for consistency.
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Dispatcher.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Dispatcher.pm 2009-02-08 16:48:26 UTC (rev 9263)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Dispatcher.pm 2009-02-08 16:48:34 UTC (rev 9264)
@@ -147,7 +147,7 @@
# go to a string path ("/foo/bar/gorch")
# or action object
- if (Scalar::Util::blessed($command) && $command->isa('Catalyst::Action')) {
+ if (blessed($command) && $command->isa('Catalyst::Action')) {
$action = $command;
}
else {
@@ -666,7 +666,7 @@
my %package_hash; # Only warn once per method, per package. These are infrequent enough that
# I haven't provided a way to disable them, patches welcome.
$meta->add_before_method_modifier($public_method_name, sub {
- my $class = Scalar::Util::blessed(shift);
+ my $class = blessed(shift);
$package_hash{$class}++ || do {
warn("Class $class is calling the deprecated method Catalyst::Dispatcher::$public_method_name,\n"
. "this will be removed in Catalyst 5.9X");
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine.pm 2009-02-08 16:48:26 UTC (rev 9263)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Engine.pm 2009-02-08 16:48:34 UTC (rev 9264)
@@ -46,7 +46,7 @@
my ( $self, $c ) = @_;
my $body = $c->response->body;
no warnings 'uninitialized';
- if ( Scalar::Util::blessed($body) && $body->can('read') or ref($body) eq 'GLOB' ) {
+ if ( blessed($body) && $body->can('read') or ref($body) eq 'GLOB' ) {
while ( !eof $body ) {
read $body, my ($buffer), $CHUNKSIZE;
last unless $self->write( $c, $buffer );
@@ -76,7 +76,7 @@
my $val = $response->cookies->{$name};
my $cookie = (
- Scalar::Util::blessed($val)
+ blessed($val)
? $val
: CGI::Simple::Cookie->new(
-name => $name,
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm 2009-02-08 16:48:26 UTC (rev 9263)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm 2009-02-08 16:48:34 UTC (rev 9264)
@@ -1110,7 +1110,7 @@
sub uri_for {
my ( $c, $path, @args ) = @_;
- if ( Scalar::Util::blessed($path) ) { # action object
+ if ( blessed($path) ) { # action object
my $captures = ( scalar @args && ref $args[0] eq 'ARRAY'
? shift(@args)
: [] );
More information about the Catalyst-commits
mailing list