Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Contributing to XML::Parser

Thank you for considering contributing to XML::Parser.

## How to Contribute

1. Fork the repository on GitHub: https://github.com/cpan-authors/XML-Parser
2. Create a topic branch from `main`
3. Make your changes and add tests where appropriate
4. Run the test suite: `perl Makefile.PL && make && make test`
5. Submit a pull request

## Bug Reports

Please file bug reports on the GitHub issue tracker:
https://github.com/cpan-authors/XML-Parser/issues

Include the version of XML::Parser, Perl, and your operating system.

## Coding Guidelines

- Follow the existing code style
- Add tests for new functionality or bug fixes
- Keep changes focused — one concern per pull request

## License

By contributing, you agree that your contributions will be licensed under
the same terms as Perl itself.
27 changes: 27 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,40 @@ sub MY::postamble {
return join "\n", @ret;
}

my $dist_version = MM->parse_version('Parser.pm');

WriteMakefile1(
ABSTRACT_FROM => 'Parser.pm',
AUTHOR => 'Clark Cooper (coopercc@netheaven.com)',
LICENSE => 'perl',
MIN_PERL_VERSION => '5.008',
META_MERGE => {
'meta-spec' => { version => 2 },
provides => {
'XML::Parser' => {
file => 'Parser.pm',
version => $dist_version,
},
'XML::Parser::Expat' => {
file => 'Expat/Expat.pm',
version => $dist_version,
},
'XML::Parser::Style::Debug' => {
file => 'Parser/Style/Debug.pm',
},
'XML::Parser::Style::Objects' => {
file => 'Parser/Style/Objects.pm',
},
'XML::Parser::Style::Stream' => {
file => 'Parser/Style/Stream.pm',
},
'XML::Parser::Style::Subs' => {
file => 'Parser/Style/Subs.pm',
},
'XML::Parser::Style::Tree' => {
file => 'Parser/Style/Tree.pm',
},
},
resources => {
bugtracker => {
web => 'https://github.com/cpan-authors/XML-Parser/issues',
Expand Down
7 changes: 7 additions & 0 deletions Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,13 @@ For full details on each option, see L<XML::Parser::Expat/"new">.
BillionLaughsAttackProtectionActivationThreshold => 1024,
);

=head1 LICENSE

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

See L<https://dev.perl.org/licenses/> for more information.

=head1 AUTHORS

Larry Wall <F<larry@wall.org>> wrote version 1.0.
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,13 @@ For full details on each option, see ["new" in XML::Parser::Expat](https://metac
BillionLaughsAttackProtectionActivationThreshold => 1024,
);

# LICENSE

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

See [https://dev.perl.org/licenses/](https://dev.perl.org/licenses/) for more information.

# AUTHORS

Larry Wall <`larry@wall.org`> wrote version 1.0.
Expand Down
25 changes: 25 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Security Policy

## Reporting a Vulnerability

If you discover a security vulnerability in XML::Parser, please report it
responsibly.

**Contact:** Todd Rinaldo <toddr@cpan.org>

You may also open a [GitHub security advisory](https://github.com/cpan-authors/XML-Parser/security/advisories/new)
for private disclosure.

Please include:

- A description of the vulnerability
- Steps to reproduce the issue
- Any relevant version information

We aim to acknowledge reports within 48 hours and provide a fix or
mitigation plan within a reasonable timeframe.

## Supported Versions

Security fixes are applied to the latest stable release. Users are
encouraged to keep their installations up to date.
Loading