Skip to content

Commit

Permalink
Rename types to CPAN::Audit::DB
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Feb 17, 2024
1 parent 4a7c6f8 commit 676f4ed
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions t/validate.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Mojo::Util;
use YAML::XS;


package My::Type::YYYYMMDD {
package CPAN::Audit::DB::Type::YYYYMMDD {
use parent 'Data::Rx::CommonType::EasyNew';

sub type_uri {
Expand All @@ -25,7 +25,7 @@ package My::Type::YYYYMMDD {
}
}

package My::Type::GHSA {
package CPAN::Audit::DB::Type::GHSA {
use parent 'Data::Rx::CommonType::EasyNew';

sub type_uri {
Expand All @@ -42,7 +42,7 @@ package My::Type::GHSA {
}
}

package My::Type::CVE {
package CPAN::Audit::DB::Type::CVE {
use parent 'Data::Rx::CommonType::EasyNew';

sub type_uri {
Expand All @@ -59,7 +59,7 @@ package My::Type::CVE {
}
}

package My::Type::URL {
package CPAN::Audit::DB::Type::URL {
use parent 'Data::Rx::CommonType::EasyNew';

sub type_uri {
Expand All @@ -86,7 +86,7 @@ package My::Type::URL {
}
}

package My::Type::VCS_URL {
package CPAN::Audit::DB::Type::VCS_URL {
use parent 'Data::Rx::CommonType::EasyNew';

sub type_uri {
Expand Down Expand Up @@ -117,7 +117,11 @@ my @files = glob("cpansa/*.yml");

my $rx = Data::Rx->new({
type_plugins => [qw(
My::Type::YYYYMMDD My::Type::GHSA My::Type::CVE My::Type::URL My::Type::VCS_URL
CPAN::Audit::DB::Type::YYYYMMDD
CPAN::Audit::DB::Type::GHSA
CPAN::Audit::DB::Type::CVE
CPAN::Audit::DB::Type::URL
CPAN::Audit::DB::Type::VCS_URL
)], });


Expand Down

0 comments on commit 676f4ed

Please sign in to comment.