Skip to content

Commit

Permalink
add makefile.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Dec 2, 2023
1 parent 84e582b commit c0333c9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use ExtUtils::MakeMaker;

WriteMakefile(
ABSTRACT => 'gdpr iab tcf v2 consent string decoder',
AUTHOR => 'Tiago Peczenyj <[email protected]>',
NAME => 'GDPR::IAB::TCFv2',
VERSION_FROM => 'lib/GDPR/IAB/TCFv2.pm',
MIN_PERL_VERSION => 5.012,
LICENSE => "mit",
TEST_REQUIRES => {
'Test::Exception' => 0,
'Test::More' => 0,
},
VERSION => '0.001',
);
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# GDPR-IAB-TCFv2

gdpr iab tcf v2 consent string parser
4 changes: 3 additions & 1 deletion lib/GDPR/IAB/TCFv2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ use warnings;
use integer;
use bytes;

use version; our $VERSION = version->declare('v0.0.1');

use MIME::Base64 qw<decode_base64>;
use Carp qw<croak>;


my $CONSENT_STRING_TCF2_SEPARATOR = '.';
my $CONSENT_STRING_TCF2_PREFIX = 'C';
my $DECIS_PER_ONE = 10;
my $MIN_BIT_SIZE = 29 * 8;

# ABSTRACT: gdpr iab tcf v2 consent string parser

sub Parse {
my ( $klass, $gdpr_consent_string ) = @_;
Expand Down

0 comments on commit c0333c9

Please sign in to comment.