Skip to content

Commit 1621321

Browse files
authored
Merge pull request #1210 from metacpan/haarg/no-pod-pom
remove use of Pod::POM and instead use Pod::Simple::JustPod
2 parents 37fe00c + e0ddbc0 commit 1621321

File tree

4 files changed

+7
-53
lines changed

4 files changed

+7
-53
lines changed

cpanfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ requires 'Plack::Middleware::ServerStatus::Lite';
144144
requires 'Plack::Middleware::Session';
145145
requires 'Plack::Session::Store';
146146
requires 'Pod::Markdown', '3.300';
147-
requires 'Pod::POM';
148147
requires 'Pod::Simple', '3.43';
149148
requires 'Pod::Simple::XHTML', '3.24';
150149
requires 'Pod::Text', '4.14';

cpanfile.snapshot

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6781,49 +6781,6 @@ DISTRIBUTIONS
67816781
perl 5.008
67826782
strict 0
67836783
warnings 0
6784-
Pod-POM-2.01
6785-
pathname: N/NE/NEILB/Pod-POM-2.01.tar.gz
6786-
provides:
6787-
Pod::POM 2.01
6788-
Pod::POM::Constants 2.01
6789-
Pod::POM::Node 2.01
6790-
Pod::POM::Node::Begin 2.01
6791-
Pod::POM::Node::Code 2.01
6792-
Pod::POM::Node::Content 2.01
6793-
Pod::POM::Node::For 2.01
6794-
Pod::POM::Node::Head1 2.01
6795-
Pod::POM::Node::Head2 2.01
6796-
Pod::POM::Node::Head3 2.01
6797-
Pod::POM::Node::Head4 2.01
6798-
Pod::POM::Node::Item 2.01
6799-
Pod::POM::Node::Over 2.01
6800-
Pod::POM::Node::Pod 2.01
6801-
Pod::POM::Node::Sequence 2.01
6802-
Pod::POM::Node::Text 2.01
6803-
Pod::POM::Node::Verbatim 2.01
6804-
Pod::POM::Nodes 2.01
6805-
Pod::POM::Test 2.01
6806-
Pod::POM::View 2.01
6807-
Pod::POM::View::HTML 2.01
6808-
Pod::POM::View::Pod 2.01
6809-
Pod::POM::View::Text 2.01
6810-
requirements:
6811-
Encode 0
6812-
Exporter 0
6813-
ExtUtils::MakeMaker 0
6814-
File::Basename 0
6815-
FindBin 0
6816-
Getopt::Long 0
6817-
Getopt::Std 0
6818-
Text::Wrap 0
6819-
constant 0
6820-
lib 0
6821-
overload 0
6822-
parent 0
6823-
perl 5.006
6824-
strict 0
6825-
vars 0
6826-
warnings 0
68276784
Pod-Parser-1.67
68286785
pathname: M/MA/MAREKR/Pod-Parser-1.67.tar.gz
68296786
provides:

lib/MetaCPAN/Pod/Renderer.pm

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ use MetaCPAN::Moose;
55
use MetaCPAN::Pod::XHTML;
66
use MetaCPAN::Types::TypeTiny qw( Uri );
77
use Pod::Markdown;
8-
use Pod::POM ();
9-
use Pod::POM::View::Pod;
10-
use Pod::Text ();
8+
use Pod::Simple::JustPod ();
9+
use Pod::Text ();
1110

1211
has perldoc_url_prefix => (
1312
is => 'ro',
@@ -34,7 +33,7 @@ sub markdown_renderer {
3433

3534
sub pod_renderer {
3635
my $self = shift;
37-
return Pod::POM->new;
36+
return Pod::Simple::JustPod->new;
3837
}
3938

4039
sub text_renderer {
@@ -83,9 +82,7 @@ sub to_pod {
8382
my $self = shift;
8483
my $source = shift;
8584

86-
my $renderer = $self->pod_renderer;
87-
my $pom = $renderer->parse_text($source);
88-
return Pod::POM::View::Pod->print($pom);
85+
return $self->_generic_render( $self->pod_renderer, $source );
8986
}
9087

9188
sub _generic_render {

t/pod/renderer.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ EOF
5151

5252
{
5353
my $pod = <<'EOF';
54+
=pod
55+
5456
=head1 DESCRIPTION
5557
L<Plack>
56-
=cut
57-
5858
59+
=cut
5960
EOF
6061

6162
is( $factory->to_pod($source), $pod, 'pod' );

0 commit comments

Comments
 (0)