commit(3pm)

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

πŸ’– commit(3pm) β€” bestie's guide to Metabase::Resource::perl::commit πŸ’–

okay so this is a User Contributed Perl Documentation page, and yes the man page name is literally commit(3pm). it lives in the perl doc family, and the version is 0.025 (that's its own VERSION section, not the perl version, don't get it twisted 🫢).


✨ NAME ✨

Metabase::Resource::perl::commit β€” a class for Metabase resources about perl commits. periodt, that's the whole name. it's giving "niche but essential" πŸ’…


🌸 VERSION 🌸

version 0.025

like. that's the version. that's it. iconic of it to have its own section for one number ngl πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

okay bestie, here's the vibe in code form:

my $resource = Metabase::Resource->new(
  'perl:///commit/8c576062',
);

my $resource_meta = $resource->metadata;
my $typemap       = $resource->metadata_types;
my $url = $self->full_url;

so you spin up a Metabase::Resource, hand it a perl:///commit/... string, and then you can pull metadata, metadata_types, and eventually full_url. slay πŸ”₯


🌈 DESCRIPTION 🌈

this thing generates resource metadata for resources of the scheme 'perl:///commit'. lowkey its whole personality:

my $resource = Metabase::Resource->new(
  'perl:///commit/8c576062',
);

now for that example up there ^^^ the resource metadata structure would contain these elements, no cap:

scheme       => perl
type         => commit
sha1         => 8c576062

so: the scheme is perl, the type is commit, and the sha1 is 8c576062. that's the whole lil metadata trio πŸ’œ


πŸ‘‘ METHODS πŸ‘‘

πŸ’… full_url

my $url = $self->full_url($host);

returns an ordinary HTTP URL to the resource. and if you don't pass $host? it defaults to the official master Perl repository at <http://perl5.git.perl.org>. yes, official. yes, master. yes, defaults exist so you can be lazy. we love a sensible fallback 🫢


πŸ’€ BUGS πŸ’€

please report any bugs or feature 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 when you're submitting a bug or request, bestie, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. like. help them help you. not me showing up with "it's broken" and zero repro steps 😭

fr fr: no test file = they're guessing. bring receipts.

πŸŽ€ AUTHORS πŸŽ€

the legends themselves:

  • David Golden <dagolden@cpan.org>
  • Ricardo Signes <rjbs@cpan.org>
  • H.Merijn Brand <hmbrand@cpan.org>

three icons, one module. main character energy across the board ✨


this software is Copyright (c) 2016 by David Golden.

and it's free software, licensed under:

The Apache License, Version 2.0, January 2004

so go forth, use it, respect the license 🌸


okay that's the whole page bestie, hope you ate πŸ’…

this lil masterpiece got rendered by perl v5.36.0 on 2022-10-14, filed under commit(3pm) β€” and yes, that was the footer, so we're done here. mwah πŸ’‹

πŸ“¦ where this page comes from