Skip to content

Commit c346d8d

Browse files
authored
Merge pull request #3077 from metacpan/haarg/prereq-cleanup
clean up some old prereqs
2 parents 7e3035c + ab65449 commit c346d8d

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

cpanfile

-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use strict;
22
use warnings;
33

4-
requires 'Capture::Tiny';
5-
requires 'Carton', '1.0.34';
64
requires 'Catalyst', '5.90103';
75
requires 'Catalyst::Action::RenderView';
86
requires 'Catalyst::Authentication::User';
@@ -24,14 +22,11 @@ requires 'Data::Pageset';
2422
requires 'DateTime', '1.24';
2523
requires 'DateTime::Format::HTTP';
2624
requires 'DateTime::Format::ISO8601';
27-
requires 'Devel::Confess';
2825
requires 'Digest::SHA';
2926
requires 'Encode', '2.51';
3027
requires 'Exporter';
3128
requires 'File::Path';
3229
requires 'Future';
33-
requires 'Gazelle';
34-
requires 'Getopt::Long::Descriptive';
3530
requires 'HTML::Escape';
3631
requires 'HTML::Restrict', '2.2.2';
3732
requires 'HTTP::Message::PSGI';
@@ -40,23 +35,18 @@ requires 'HTTP::Request::Common';
4035
requires 'IO::Async::Loop';
4136
requires 'IO::Async::SSL';
4237
requires 'IO::Socket::SSL';
43-
requires 'JSON::MaybeXS' => '1.004000';
4438
requires 'List::Util', '1.45';
4539
requires 'Locale::Country','3.62';
4640
requires 'Log::Dispatch';
4741
requires 'Log::Log4perl::Catalyst';
4842
requires 'Log::Log4perl::Layout::JSON';
49-
requires 'MetaCPAN::Moose';
5043
requires 'MetaCPAN::Role', '0.06';
5144
requires 'Module::Build::Tiny', '0.037';
5245
requires 'Module::Runtime';
5346
requires 'Moo', '2.000002';
5447
requires 'Moose', '2.1605';
55-
requires 'MooseX::Fastly::Role', '0.03';
5648
requires 'Net::Async::HTTP';
57-
requires 'Net::Fastly', '1.05';
5849
requires 'Number::Format';
59-
requires 'Parallel::ForkManager', '1.19';
6050
requires 'Params::ValidationCompiler';
6151
requires 'Path::Tiny', '0.076';
6252
requires 'Plack', '1.0039';

lib/MetaCPAN/Middleware/Static.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Plack::Builder qw( builder enable mount );
55
use Plack::App::File ();
66
use Cwd qw( cwd );
77
use Plack::MIME ();
8-
use JSON::MaybeXS ();
8+
use Cpanel::JSON::XS ();
99

1010
Plack::MIME->add_type(
1111
'.eot' => 'application/vnd.ms-fontobject',
@@ -34,7 +34,7 @@ sub wrap {
3434
or die "can't find asset map";
3535
my $json = do { local $/; <$fh> };
3636
close $fh;
37-
my $files = JSON::MaybeXS->new->decode($json);
37+
my $files = Cpanel::JSON::XS->new->decode($json);
3838
return [ map "/assets/$_", @$files ];
3939
};
4040

lib/MetaCPAN/Web/Controller/Account.pm

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Moose;
55
BEGIN { extends 'MetaCPAN::Web::Controller' }
66

77
use MetaCPAN::Web::RenderUtil ();
8-
use JSON::MaybeXS ();
8+
use Cpanel::JSON::XS ();
99

1010
sub auto : Private {
1111
my ( $self, $c ) = @_;
@@ -36,7 +36,7 @@ sub login_status : Local : Args(0) : Auth(0) {
3636
my $output = $c->{stash}{json} ||= {};
3737

3838
if ( my $user = $c->user ) {
39-
$output->{logged_in} = JSON::MaybeXS::true;
39+
$output->{logged_in} = Cpanel::JSON::XS::true;
4040
if ( my $pause_id = $user->pause_id ) {
4141

4242
# this is not a complete author record, but enough for now
@@ -62,7 +62,7 @@ sub login_status : Local : Args(0) : Auth(0) {
6262
$c->forward('/account/favorite/list_as_json');
6363
}
6464
else {
65-
$c->stash->{json}{logged_in} = JSON::MaybeXS::false;
65+
$c->stash->{json}{logged_in} = Cpanel::JSON::XS::false;
6666
$c->cdn_max_age('30d');
6767
}
6868
}

lib/MetaCPAN/Web/Model/ReleaseInfo.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package MetaCPAN::Web::Model::ReleaseInfo;
22

33
use strict;
44
use warnings;
5-
use MetaCPAN::Moose;
5+
use Moose;
66

77
extends 'Catalyst::Model';
88

0 commit comments

Comments
 (0)