Skip to content

Commit

Permalink
fixups and cleanups after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Sep 9, 2016
1 parent 09c9edd commit aef9242
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cpanfile
Expand Up @@ -105,7 +105,7 @@ requires 'MooseX::ClassAttribute';
requires 'MooseX::Getopt';
requires 'MooseX::Getopt::Dashes';
requires 'MooseX::Getopt::OptionTypeMap';
requires 'MooseX::Fastly::Role';
requires 'MooseX::Fastly::Role', '0.01';
requires 'MooseX::StrictConstructor';
requires 'MooseX::Types';
requires 'MooseX::Types::Common::String';
Expand Down
5 changes: 2 additions & 3 deletions lib/MetaCPAN/Role/Script.pm
Expand Up @@ -12,9 +12,8 @@ use MetaCPAN::Queue ();

use Carp ();

with 'MetaCPAN::Role::HasConfig';
with 'MetaCPAN::Role::Fastly';
with 'MetaCPAN::Role::Logger';
with( 'MetaCPAN::Role::HasConfig', 'MetaCPAN::Role::Fastly',
'MetaCPAN::Role::Logger' );

has 'cpan' => (
is => 'ro',
Expand Down
1 change: 0 additions & 1 deletion lib/MetaCPAN/Script/Release.pm
Expand Up @@ -185,7 +185,6 @@ sub run {

# Call Fastly to purge
$self->purge_cpan_distnameinfos( \@module_to_purge_dists );

}

sub _get_release_model {
Expand Down
4 changes: 1 addition & 3 deletions lib/MetaCPAN/Server.pm
Expand Up @@ -3,9 +3,7 @@ package MetaCPAN::Server;
use Moose;

## no critic (Modules::RequireEndWithOne)
use Catalyst qw/
+MetaCPAN::Role::Fastly::Catalyst
/;
use Catalyst qw( +MetaCPAN::Role::Fastly::Catalyst );

use CatalystX::RoleApplicator;
use File::Temp qw( tempdir );
Expand Down
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/Diff.pm
Expand Up @@ -20,7 +20,7 @@ sub diff_releases : Chained('index') : PathPart('release') : Args(4) {
my ( $self, $c, @path ) = @_;

$c->add_author_key( $path[0] );
$c->add_author_key( $path[2] );
$c->add_author_key( $path[2] ) unless $path[0] eq $path[2];
$c->cdn_max_age('1y');

# Use author/release as top dirs for diff.
Expand Down

0 comments on commit aef9242

Please sign in to comment.