Metaba...::cpan(3pm)

πŸ“¦
version 0.025 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 πŸ’œ


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