Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up some old prereqs #3077

Merged
merged 3 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use strict;
use warnings;

requires 'Capture::Tiny';
requires 'Carton', '1.0.34';
requires 'Catalyst', '5.90103';
requires 'Catalyst::Action::RenderView';
requires 'Catalyst::Authentication::User';
Expand All @@ -24,14 +22,11 @@ requires 'Data::Pageset';
requires 'DateTime', '1.24';
requires 'DateTime::Format::HTTP';
requires 'DateTime::Format::ISO8601';
requires 'Devel::Confess';
requires 'Digest::SHA';
requires 'Encode', '2.51';
requires 'Exporter';
requires 'File::Path';
requires 'Future';
requires 'Gazelle';
requires 'Getopt::Long::Descriptive';
requires 'HTML::Escape';
requires 'HTML::Restrict', '2.2.2';
requires 'HTML::Tree';
Expand All @@ -41,23 +36,18 @@ requires 'HTTP::Request::Common';
requires 'IO::Async::Loop';
requires 'IO::Async::SSL';
requires 'IO::Socket::SSL';
requires 'JSON::MaybeXS' => '1.004000';
requires 'List::Util', '1.45';
requires 'Locale::Country','3.62';
requires 'Log::Dispatch';
requires 'Log::Log4perl::Catalyst';
requires 'Log::Log4perl::Layout::JSON';
requires 'MetaCPAN::Moose';
requires 'MetaCPAN::Role', '0.06';
requires 'Module::Build::Tiny', '0.037';
requires 'Module::Runtime';
requires 'Moo', '2.000002';
requires 'Moose', '2.1605';
requires 'MooseX::Fastly::Role', '0.03';
requires 'Net::Async::HTTP';
requires 'Net::Fastly', '1.05';
requires 'Number::Format';
requires 'Parallel::ForkManager', '1.19';
requires 'Params::ValidationCompiler';
requires 'Path::Tiny', '0.076';
requires 'Plack', '1.0039';
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Middleware/Static.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Plack::Builder qw( builder enable mount );
use Plack::App::File ();
use Cwd qw( cwd );
use Plack::MIME ();
use JSON::MaybeXS ();
use Cpanel::JSON::XS ();

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

Expand Down
6 changes: 3 additions & 3 deletions lib/MetaCPAN/Web/Controller/Account.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
BEGIN { extends 'MetaCPAN::Web::Controller' }

use MetaCPAN::Web::RenderUtil ();
use JSON::MaybeXS ();
use Cpanel::JSON::XS ();

sub auto : Private {
my ( $self, $c ) = @_;
Expand Down Expand Up @@ -36,7 +36,7 @@
my $output = $c->{stash}{json} ||= {};

if ( my $user = $c->user ) {
$output->{logged_in} = JSON::MaybeXS::true;
$output->{logged_in} = Cpanel::JSON::XS::true;

Check warning on line 39 in lib/MetaCPAN/Web/Controller/Account.pm

View check run for this annotation

Codecov / codecov/patch

lib/MetaCPAN/Web/Controller/Account.pm#L39

Added line #L39 was not covered by tests
if ( my $pause_id = $user->pause_id ) {

# this is not a complete author record, but enough for now
Expand All @@ -62,7 +62,7 @@
$c->forward('/account/favorite/list_as_json');
}
else {
$c->stash->{json}{logged_in} = JSON::MaybeXS::false;
$c->stash->{json}{logged_in} = Cpanel::JSON::XS::false;

Check warning on line 65 in lib/MetaCPAN/Web/Controller/Account.pm

View check run for this annotation

Codecov / codecov/patch

lib/MetaCPAN/Web/Controller/Account.pm#L65

Added line #L65 was not covered by tests
$c->cdn_max_age('30d');
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Model/ReleaseInfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package MetaCPAN::Web::Model::ReleaseInfo;

use strict;
use warnings;
use MetaCPAN::Moose;
use Moose;

extends 'Catalyst::Model';

Expand Down