Skip to content

Commit

Permalink
Merge pull request #42 from timlegge/prepare-0.28
Browse files Browse the repository at this point in the history
Prepare 0.28 - TRIAL
  • Loading branch information
timlegge authored May 23, 2021
2 parents 7314173 + 8944896 commit dcec7b1
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: linux

on:
- push

jobs:
perl:
runs-on: ubuntu-latest
strategy:
matrix:
perl-version:
- '5.8'
- '5.10'
- '5.12'
- '5.14'
- '5.16'
- '5.18'
- '5.20'
- '5.22'
- '5.24'
- '5.26'
- '5.28'
- '5.30'
- '5.32'
container:
image: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v1
#- name: Install OS Packages
# run: |
# apt-get update;
# apt-get -y install xmlsec1;
- name: Install Dependencies
run: |
cpanm --installdeps .
- name: Build Module
run: |
perl Makefile.PL;
make
- name: Run Tests
run: |
prove -lr -l -b -I inc t
22 changes: 22 additions & 0 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Perl Matrix Testing
on:
- push
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'windows-latest']
perl: [ '5.32', '5.30', '5.28' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1.10.0
with:
perl-version: ${{ matrix.perl }}
distribution: strawberry
- run: perl -V
- run: cpanm --installdeps .
- run: prove -lv t

8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{{$NEXT}}

* Add github actions for repo testing and add new maintainer [Timothy Legge]
* typo fix [Adam Leskis]
* Fix test failures under Perl 5.26+ without '.' in @INC [Kent Fredric (KENTNL)]
* Correct a typo - SYNOPSIS [Shlomi Fish]
* unsafe decoding CVE-2013-7488 [Dana Jacobsen]
* Typo fixes from dsteinbrunner [David Steinbrunner]
* Add files via upload [Peter Sylvester]

0.27 -- Wed Jun 25 13:47:28 CDT 2014
* Avoid recursion when encountering an invalid tag and length
* Avoid negative repetition counts (5.22 compatibility) [Alex Vandiver]
Expand Down
44 changes: 44 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
use strict;
use warnings;



use ExtUtils::MakeMaker;

my %WriteMakefileArgs = (
"ABSTRACT" => "Convert between perl data structures and ASN.1 encoded packets",
"AUTHOR" => "Graham Barr <gbarr\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "Convert-ASN1",
"LICENSE" => "perl",
"NAME" => "Convert::ASN1",
"PREREQ_PM" => {},
"TEST_REQUIRES" => {
"Math::BigInt" => "1.997",
"Test::More" => "0.90"
},
"VERSION" => "0.28",
"test" => {
"TESTS" => "t/*.t"
}
);


my %FallbackPrereqs = (
"Math::BigInt" => "1.997",
"Test::More" => "0.90"
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);
11 changes: 11 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.


on 'test' => sub {
requires "Math::BigInt" => "1.997";
requires "Test::More" => "0.90";
};

on 'configure' => sub {
requires "ExtUtils::MakeMaker" => "0";
};
12 changes: 12 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ author = Graham Barr <gbarr@cpan.org>
license = Perl_5
copyright_holder = Graham Barr
abstract = Convert between perl data structures and ASN.1 encoded packets
[Meta::Maintainers]
maintainer = Timothy Legge <timlegge@gmail.com>


[@Filter]
Expand All @@ -17,6 +19,8 @@ directory = t
directory = examples

[Git::GatherDir]
exclude_filename = cpanfile
exclude_filename = Makefile.PL
[Git::NextVersion]

[PkgVersion]
Expand All @@ -37,6 +41,14 @@ repository.web = https://github.com/gbarr/perl-Convert-ASN1
repository.url = git://github.com/gbarr/perl-Convert-ASN1.git
repository.type = git

[CPANFile]

[CopyFilesFromBuild::Filtered]
copy = cpanfile
copy = Makefile.PL

[CopyFilesFromRelease]
copy = cpanfile, Makefile.PL

[Signature]

Expand Down
14 changes: 14 additions & 0 deletions t/19issue14.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use Convert::ASN1;
use Test::More tests => 2;

my $asn = Convert::ASN1->new;
$asn->prepare(q<
[APPLICATION 7] SEQUENCE {
int INTEGER
}
>);
my $out;
$out = $asn->decode( pack("H*", "dfccd3fde3") );
ok($out == "");
$out = $asn->decode( pack("H*", "b0805f92cb") );
ok($out == "");

0 comments on commit dcec7b1

Please sign in to comment.