| 1 | package Acme::Resume; | ||||||||||||
| 2 | |||||||||||||
| 3 | # ABSTRACT: Write a human-readable resume in Perl | ||||||||||||
| 4 | 2 | our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY | |||||||||||
| 5 | 2 | our $VERSION = '0.0107'; | |||||||||||
| 6 | |||||||||||||
| 7 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | |||||||||||||
| 10 | 2 | ▶ | use base 'MoopsX::UsingMoose'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | 2 | ▶ | use Acme::Resume::Moose(); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | 2 | ▶ | use Time::Moment; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | 2 | ▶ | use syntax(); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | sub import { | ||||||||||||
| 16 | 2 | ▶ | my $class = shift; | ||||||||||
|
Subroutine
import: called CC=3 SCAR=11.2
| |||||||||||||
| 17 | 2 | my %opts = @_; | |||||||||||
| 18 | |||||||||||||
| 19 | 2 | ▶ | push @{ $opts{'imports'} ||= [] } => ( | ||||||||||
|
Condition50%1/2
$opts{"imports"} ||= []
MC/DC0%0/1
$opts{"imports"} ||= []
$opts{"imports"}
Truth table50%1/2
A
A= $opts{"imports"}
| |||||||||||||
| 20 | 'syntax' => ['qs'], | ||||||||||||
| 21 | 'Acme::Resume::Moose' => [], | ||||||||||||
| 22 | ); | ||||||||||||
| 23 | |||||||||||||
| 24 | 2 | ▶ | push @{ $opts{'traits'} ||= [] } => ( | ||||||||||
|
Condition50%1/2
$opts{"traits"} ||= []
MC/DC0%0/1
$opts{"traits"} ||= []
$opts{"traits"}
Truth table50%1/2
A
A= $opts{"traits"}
| |||||||||||||
| 25 | 'Acme::Resume::MoopsParserTrait', | ||||||||||||
| 26 | ); | ||||||||||||
| 27 | |||||||||||||
| 28 | 2 | $class->SUPER::import(%opts); | |||||||||||
| 29 | } | ||||||||||||
| 30 | |||||||||||||
| 31 | 2 | 1; | |||||||||||
| 32 | |||||||||||||
| 33 | __END__ | ||||||||||||
| 34 | |||||||||||||
| 35 | =pod | ||||||||||||
| 36 | |||||||||||||
| 37 | =encoding UTF-8 | ||||||||||||
| 38 | |||||||||||||
| 39 | =head1 NAME | ||||||||||||
| 40 | |||||||||||||
| 41 | Acme::Resume - Write a human-readable resume in Perl | ||||||||||||
| 42 | |||||||||||||
| 43 | |||||||||||||
| 44 | |||||||||||||
| 45 | =begin html | ||||||||||||
| 46 | |||||||||||||
| 47 | <p> | ||||||||||||
| 48 | <img src="https://img.shields.io/badge/perl-5.14+-blue.svg" alt="Requires Perl 5.14+" /> | ||||||||||||
| 49 | <img src="https://img.shields.io/badge/coverage-86.3%25-orange.svg" alt="coverage 86.3%" /> | ||||||||||||
| 50 | <a href="https://github.com/Csson/p5-Acme-Resume/actions?query=workflow%3Amakefile-test"><img src="https://img.shields.io/github/workflow/status/Csson/p5-Acme-Resume/makefile-test" alt="Build status at Github" /></a> | ||||||||||||
| 51 | </p> | ||||||||||||
| 52 | |||||||||||||
| 53 | =end html | ||||||||||||
| 54 | |||||||||||||
| 55 | =head1 VERSION | ||||||||||||
| 56 | |||||||||||||
| 57 | Version 0.0107, released 2021-11-30. | ||||||||||||
| 58 | |||||||||||||
| 59 | =head1 SYNOPSIS | ||||||||||||
| 60 | |||||||||||||
| 61 | use Acme::Resume; | ||||||||||||
| 62 | |||||||||||||
| 63 | resume ExAmple { | ||||||||||||
| 64 | |||||||||||||
| 65 | name 'Ex Ample'; | ||||||||||||
| 66 | |||||||||||||
| 67 | email 'ex@example.com'; | ||||||||||||
| 68 | |||||||||||||
| 69 | address ['Suburbia lane 1200', 'Townsville', 'USA']; | ||||||||||||
| 70 | |||||||||||||
| 71 | phone '+1 (555) 123 4321'; | ||||||||||||
| 72 | |||||||||||||
| 73 | education { ... } | ||||||||||||
| 74 | |||||||||||||
| 75 | education { ... } | ||||||||||||
| 76 | |||||||||||||
| 77 | job { ... } | ||||||||||||
| 78 | |||||||||||||
| 79 | job { ... } | ||||||||||||
| 80 | } | ||||||||||||
| 81 | |||||||||||||
| 82 | 1; | ||||||||||||
| 83 | |||||||||||||
| 84 | =head1 DESCRIPTION | ||||||||||||
| 85 | |||||||||||||
| 86 | Acme::Resume is a framework for writing human-readable, computer-executable, object-oriented résumés in Perl. | ||||||||||||
| 87 | |||||||||||||
| 88 | C<Acme::Resume> is a wrapper around L<Moops> that imports L<Acme::Resume::Moose>, which adds all the methods. It also adds | ||||||||||||
| 89 | the L<Acme::Resume::MoopsParserTrait> which includes the C<resume> keyword (just an alias for a standard Moops C<class>) and | ||||||||||||
| 90 | adds special handling of the package name: | ||||||||||||
| 91 | |||||||||||||
| 92 | If the package doesn't contain C<::>, as in the synopsis, the package name will have C<Acme::Resume::For::> automatically prepended. | ||||||||||||
| 93 | |||||||||||||
| 94 | =head1 METHODS | ||||||||||||
| 95 | |||||||||||||
| 96 | =head2 name | ||||||||||||
| 97 | |||||||||||||
| 98 | Your full name. | ||||||||||||
| 99 | |||||||||||||
| 100 | =head2 email | ||||||||||||
| 101 | |||||||||||||
| 102 | Your email address. | ||||||||||||
| 103 | |||||||||||||
| 104 | =head2 phone | ||||||||||||
| 105 | |||||||||||||
| 106 | Your phone number. | ||||||||||||
| 107 | |||||||||||||
| 108 | =head2 address | ||||||||||||
| 109 | |||||||||||||
| 110 | An array reference of address parts. | ||||||||||||
| 111 | |||||||||||||
| 112 | =head2 education | ||||||||||||
| 113 | |||||||||||||
| 114 | Can be used multiple times. Adds an L<Acme::Resume::Types::Education> to the list of educations. | ||||||||||||
| 115 | |||||||||||||
| 116 | =head2 job | ||||||||||||
| 117 | |||||||||||||
| 118 | Can be used multiple times. Adds a L<Acme::Resume::Types::Job> to the list of jobs. | ||||||||||||
| 119 | |||||||||||||
| 120 | =head1 USAGE | ||||||||||||
| 121 | |||||||||||||
| 122 | One way to read a résumé (apart from reading the source) is with one-liners: | ||||||||||||
| 123 | |||||||||||||
| 124 | $ perl -MAcme::Resume::For::ExAmple -E 'say Acme::Resume::For::ExAmple->new->get_job(-1)->started->year' | ||||||||||||
| 125 | |||||||||||||
| 126 | The L<Acme::Resume::Output::ToPlain> role (used by default) adds a C<to_plain> method: | ||||||||||||
| 127 | |||||||||||||
| 128 | $ perl -MAcme::Resume::For::Tester -E 'say Acme::Resume::For::Tester->new->to_plain' | ||||||||||||
| 129 | |||||||||||||
| 130 | =head1 TODO | ||||||||||||
| 131 | |||||||||||||
| 132 | More documentation and a complete example. | ||||||||||||
| 133 | |||||||||||||
| 134 | =head1 SOURCE | ||||||||||||
| 135 | |||||||||||||
| 136 | L<https://github.com/Csson/p5-Acme-Resume> | ||||||||||||
| 137 | |||||||||||||
| 138 | =head1 HOMEPAGE | ||||||||||||
| 139 | |||||||||||||
| 140 | L<https://metacpan.org/release/Acme-Resume> | ||||||||||||
| 141 | |||||||||||||
| 142 | =head1 AUTHOR | ||||||||||||
| 143 | |||||||||||||
| 144 | Erik Carlsson <info@code301.com> | ||||||||||||
| 145 | |||||||||||||
| 146 | =head1 COPYRIGHT AND LICENSE | ||||||||||||
| 147 | |||||||||||||
| 148 | This software is copyright (c) 2021 by Erik Carlsson. | ||||||||||||
| 149 | |||||||||||||
| 150 | This is free software; you can redistribute it and/or modify it under | ||||||||||||
| 151 | the same terms as the Perl 5 programming language system itself. | ||||||||||||
| 152 | |||||||||||||
| 153 | =cut | ||||||||||||