Skip to content

Commit

Permalink
move test data out t/data to hide from MinimumPerl scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed May 19, 2015
1 parent ce56510 commit bb1adb8
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,10 @@ Changes for Perl programming language extension Parse-CPAN-Meta

{{$NEXT}}

[FIXED]

- Minimum Perl was inadvertently set to v5.10.0. Now back to v5.8.1.

1.4415 2015-04-28 11:29:52-04:00 America/New_York (TRIAL RELEASE)

[TESTS]
Expand Down
6 changes: 3 additions & 3 deletions Makefile.PL
@@ -1,8 +1,8 @@
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.035.
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.036.
use strict;
use warnings;

use 5.010;
use 5.008001;

use ExtUtils::MakeMaker;

Expand All @@ -15,7 +15,7 @@ my %WriteMakefileArgs = (
"DISTNAME" => "Parse-CPAN-Meta",
"EXE_FILES" => [],
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.010",
"MIN_PERL_VERSION" => "5.008001",
"NAME" => "Parse::CPAN::Meta",
"PREREQ_PM" => {
"CPAN::Meta::YAML" => "0.011",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion dist.ini
Expand Up @@ -6,7 +6,7 @@ copyright_holder = Adam Kennedy and Contributors

[Encoding]
encoding = Latin-1
filename = t/data/BadMETA.yml
filename = corpus/BadMETA.yml

[Prereqs]
CPAN::Meta::YAML = 0.011
Expand All @@ -19,6 +19,7 @@ Test::More = 0.47
[@DAGOLDEN]
:version = 0.072
-remove = MakeMaker
Test::MinimumVersion.max_target_perl = 5.008001
authority = cpan:ADAMK
stopwords = LoadFile
stopwords = deserialization
Expand Down
3 changes: 2 additions & 1 deletion t/02_api.t
Expand Up @@ -54,6 +54,7 @@ my $meta_yaml = catfile( test_data_directory(), 'META-VR.yml' );
my $yaml_meta = catfile( test_data_directory(), 'yaml.meta' );
my $json_meta = catfile( test_data_directory(), 'json.meta' );
my $bare_yaml_meta = catfile( test_data_directory(), 'bareyaml.meta' );
my $bad_yaml_meta = catfile( test_data_directory(), 'BadMETA.yml' );

### YAML tests
{
Expand Down Expand Up @@ -97,7 +98,7 @@ my $bare_yaml_meta = catfile( test_data_directory(), 'bareyaml.meta' );

note '';
is(Parse::CPAN::Meta->yaml_backend(), 'CPAN::Meta::YAML', 'yaml_backend(): CPAN::Meta::YAML');
my @yaml = Parse::CPAN::Meta::LoadFile( 't/data/BadMETA.yml' );
my @yaml = Parse::CPAN::Meta::LoadFile( $bad_yaml_meta );
is($yaml[0]{author}[0], 'Olivier Mengu\xE9', "Bad UTF-8 is replaced");
}

Expand Down
2 changes: 1 addition & 1 deletion t/lib/Parse/CPAN/Meta/Test.pm
Expand Up @@ -16,7 +16,7 @@ BEGIN {
}

sub test_data_directory {
return( File::Spec->catdir(qw(t data)) );
return( "corpus" );
}

# 22 tests per call to yaml_ok
Expand Down

0 comments on commit bb1adb8

Please sign in to comment.