fix bin/sizeme_graph.pl for older Mojolicious versions RT80195
Tim Bunce [Wed, 17 Oct 2012 09:46:25 +0000 (10:46 +0100)]
bin/sizeme_graph.pl

index 71aa792..4cba689 100755 (executable)
@@ -89,7 +89,11 @@ ORLite->import({
 my $static_dir = $INC{'Devel/SizeMe/Graph.pm'} or die 'panic';
 $static_dir =~ s:\.pm$:/static:;
 die "panic $static_dir" unless -d $static_dir;
-push @{ app->static->paths}, $static_dir;
+if ( $Mojolicious::VERSION >= 2.49 ) {
+    push @{ app->static->paths }, $static_dir;
+} else {
+    app->static->root($static_dir);
+}
 
 
 # Documentation browser under "/perldoc"