Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply changes for CPAN-Meta-YAML v0.014.
Held to be applied to blead before perl-5.23.1. One test failure was corrected: t/Porting/exec-bit.t. set +x on this executable, as it is in the cpan distribution Additional patch by Karen Etheridge.
- Loading branch information
Showing
15 changed files
with
163 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
do { my $x = { | ||
'configure' => { | ||
'requires' => { | ||
'ExtUtils::MakeMaker' => '6.17', | ||
'perl' => '5.008001' | ||
} | ||
}, | ||
'develop' => { | ||
'requires' => { | ||
'Dist::Zilla' => '5', | ||
'Dist::Zilla::Plugin::AppendExternalData' => '0', | ||
'Dist::Zilla::Plugin::Doppelgaenger' => '0.007', | ||
'Dist::Zilla::Plugin::Encoding' => '0', | ||
'Dist::Zilla::Plugin::Git::NextVersion' => '0', | ||
'Dist::Zilla::Plugin::MakeMaker::Highlander' => '0.003', | ||
'Dist::Zilla::Plugin::MetaResources' => '0', | ||
'Dist::Zilla::Plugin::PkgVersion' => '0', | ||
'Dist::Zilla::Plugin::PodWeaver' => '0', | ||
'Dist::Zilla::Plugin::PruneFiles' => '0', | ||
'Dist::Zilla::Plugin::RemovePrereqs' => '0', | ||
'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.072', | ||
'File::Spec' => '0', | ||
'File::Temp' => '0', | ||
'IO::Handle' => '0', | ||
'IPC::Open3' => '0', | ||
'Test::CPAN::Meta' => '0', | ||
'Test::More' => '0', | ||
'Test::Pod' => '1.41', | ||
'Test::Version' => '1' | ||
} | ||
}, | ||
'runtime' => { | ||
'requires' => { | ||
'B' => '0', | ||
'Carp' => '0', | ||
'Exporter' => '0', | ||
'Fcntl' => '0', | ||
'Scalar::Util' => '0', | ||
'perl' => '5.008001', | ||
'strict' => '0', | ||
'warnings' => '0' | ||
} | ||
}, | ||
'test' => { | ||
'recommends' => { | ||
'CPAN::Meta' => '2.120900' | ||
}, | ||
'requires' => { | ||
'ExtUtils::MakeMaker' => '0', | ||
'File::Basename' => '0', | ||
'File::Find' => '0', | ||
'File::Spec' => '0', | ||
'File::Spec::Functions' => '0', | ||
'File::Temp' => '0.18', | ||
'IO::Dir' => '0', | ||
'JSON::PP' => '0', | ||
'Test::More' => '0.99', | ||
'lib' => '0', | ||
'perl' => '5.008001', | ||
'utf8' => '0', | ||
'vars' => '0' | ||
} | ||
} | ||
}; | ||
$x; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
=pod | ||
This is an example of a serious design flaw in CPAN::Meta::YAML. | ||
It is generally a bad idea to fake out a parsing process. In this case, | ||
CPAN::Meta::YAML strips off all lines that look like comments. | ||
It should be easy to find dozens of bugs by looking at the assumptions the code | ||
makes and then finding a counter case like this. | ||
That's why I'm working on Tiny::YAML and YAML::Pegex, which are driven by a | ||
grammar. | ||
=cut | ||
|
||
use Test::More tests => 1; | ||
use CPAN::Meta::YAML; | ||
|
||
TODO: { | ||
local $TODO = "Failing tests for things CPAN::Meta::YAML does wrong"; | ||
|
||
my $yaml = <<'...'; | ||
- | | ||
# Perl sub: | ||
sub foo {} | ||
... | ||
is Load($yaml)->[0], | ||
"# Perl sub:\nsub foo{}\n", | ||
"Comments in literal scalars"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,9 @@ | |
\--- foo | ||
a: 1 | ||
--- error: E_CLASSIFY | ||
|
||
=== mapping with double key | ||
--- yaml | ||
foo: 1 | ||
foo: 2 | ||
--- error: E_DUPKEY |
Oops, something went wrong.