Metaba...::cpan(3pm)
β¨ NAME β¨
okay so bestie, Metabase::Resource::cpan is, like, the class for Metabase resources π
that's the whole thing. she's a resource class, she lives in the Metabase::Resource family, and she speaks the cpan scheme. iconic behavior tbh π
π VERSION π
this is version 0.025 π«Ά
πΈ SYNOPSIS πΈ
here's the vibe, fr fr β you make a resource, you ask it stuff:
my $resource = Metabase::Resource->new(
'cpan:///distfile/RJBS/Metabase-Fact-0.001.tar.gz',
);
my $resource_meta = $resource->metadata;
my $typemap = $resource->metadata_types;
that's it. that's the whole little moment. β¨
π DESCRIPTION π
okay so what does she actually do? she generates resource metadata for resources of the scheme 'cpan'. that's her whole job and she eats every single time π₯
and Metabase::Resource::cpan supports the following sub-type(s), bestie β there's just the one, but she's a whole main character:
π¦ distfile π¦
my $resource = Metabase::Resource->new(
'cpan:///distfile/RJBS/URI-cpan-1.000.tar.gz',
);
so for the example above π the resource metadata structure would contain the following elements:
scheme => cpan
type => distfile
dist_file => RJBS/URI-cpan-1.000.tar.gz
cpan_id => RJBS
dist_name => URI-cpan
dist_version => 1.000
look at her. six whole fields, all parsed out of one lil URI. the way she just knows that RJBS is the cpan_id and URI-cpan is the dist_name and 1.000 is the dist_version?? no cap, that's a vibe check she passes every time ππ
π BUGS π
okay so if you find a bug or you want a feature, please report it using the CPAN Request Tracker πβ¨ Bugs can be submitted through the web interface at:
<http://rt.cpan.org/Dist/Display.html?Queue=Metabase-Fact>
and listen bestie, when you submit a bug or a request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. like, show us the problem. receipts or it didn't happen π the maintainers will love you for it, i prom.
π AUTHORS π
the icons who made this happen π:
- David Golden
<dagolden@cpan.org> - Ricardo Signes
<rjbs@cpan.org> - H.Merijn Brand
<hmbrand@cpan.org>
three legends, one module. periodt π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2016 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
go forth and use her, she's free π«Ά
and that's the whole page, bestie!! π this was perl v5.36.0, dated 2022-10-14, from the User Contributed Perl Documentation collection β thanks for reading my lil Metabase::Resource::cpan TED talk, ily, now go parse some distfiles πβ¨π§
π¦ where this page comes from
- ubuntu noble: libmetabase-fact-perl 0.025-4 Β· Apache-2.0
- ubuntu resolute: libmetabase-fact-perl 0.025-4 Β· Apache-2.0
- ubuntu stonking: libmetabase-fact-perl 0.025-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms