Skip to content

Commit

Permalink
Tidy up the modules used by Model::Release and Script::Release.
Browse files Browse the repository at this point in the history
After all that code being moved around between the two modules.
  • Loading branch information
schwern committed Feb 19, 2015
1 parent cace0e5 commit f3de0bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions lib/MetaCPAN/Model/Release.pm
Expand Up @@ -4,9 +4,7 @@ use v5.10;
use CPAN::DistnameInfo ();
use CPAN::Meta ();
use DateTime ();
use DDP;
use File::Find ();
use File::stat ();
use File::Find ();
use Log::Contextual qw( :log :dlog );
use MetaCPAN::Model::Archive;
use MetaCPAN::Types qw(ArrayRef AbsFile Str);
Expand Down
6 changes: 1 addition & 5 deletions lib/MetaCPAN/Script/Release.pm
Expand Up @@ -8,18 +8,14 @@ BEGIN {
}

use CPAN::DistnameInfo ();
use DateTime ();
use File::Find::Rule;
use File::stat ();
use LWP::UserAgent;
use Log::Contextual qw( :log :dlog );
use MetaCPAN::Document::Author;
use MetaCPAN::Script::Latest;
use MetaCPAN::Model::Release;
use MetaCPAN::Types qw( Dir );
use MetaCPAN::Util ();
use Moose;
use Path::Class qw(file dir);
use PerlIO::gzip;
use Try::Tiny;

Expand Down Expand Up @@ -177,7 +173,7 @@ sub run {

sub import_archive {
my $self = shift;
my $archive_path = Path::Class::File->new(shift);
my $archive_path = shift;

my $cpan = $self->index;
my $d = CPAN::DistnameInfo->new($archive_path);
Expand Down
1 change: 1 addition & 0 deletions t/fakecpan.t
Expand Up @@ -16,6 +16,7 @@ use Config::General;
use ElasticSearch::TestServer;
use File::Copy;
use MetaCPAN::Script::Author;
use MetaCPAN::Script::Latest;
use MetaCPAN::Script::Mapping;
use MetaCPAN::Script::Release;
use MetaCPAN::Script::Runner;
Expand Down

0 comments on commit f3de0bc

Please sign in to comment.