Skip to content

Commit

Permalink
Changes to work with recent YAML.pm
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.perl.org/modules/Module-Build/trunk@5761 50811bd7-b8ce-0310-adc1-d9db26280581
  • Loading branch information
kenahoo committed Jan 20, 2006
1 parent ac0f7de commit ac67171
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Build.PL
Expand Up @@ -53,7 +53,7 @@ my $build = new ModuleBuildBuilder
YAML_support =>
{
description => "Can write fully-functional META.yml files",
requires => { YAML => ' >= 0.35, < 0.49 ' },
requires => { YAML => ' >= 0.35, != 0.49_01 ' },
},
C_support =>
{
Expand Down
3 changes: 3 additions & 0 deletions Changes
Expand Up @@ -5,6 +5,9 @@ Revision history for Perl extension Module::Build.
- Fixed an undefined-variable warning when building the META.yml file
and the author hasn't used the 'module_name' mechanism. [Chris Dolan]

- We should now work with recent (> 0.49) versions of YAML.pm when
creating the META.yml file. [Yitzchak Scott-Thoennes]

0.27_05 Thu Jan 12 17:39:21 CST 2006

- In t/common.pl, we were attempting to let the user's installed
Expand Down
1 change: 1 addition & 0 deletions lib/Module/Build/Base.pm
Expand Up @@ -2987,6 +2987,7 @@ sub write_metafile {

if ($self->_mb_feature('YAML_support')) {
require YAML;
require YAML::Node;

# We use YAML::Node to get the order nice in the YAML file.
$self->prepare_metadata( my $node = YAML::Node->new({}) );
Expand Down
1 change: 1 addition & 0 deletions t/metadata.t
Expand Up @@ -43,6 +43,7 @@ SKIP: {
skip( 'YAML_support feature is not enabled', 8 ) unless $has_YAML;

require YAML;
require YAML::Node;
my $node = YAML::Node->new({});
$node = $mb->prepare_metadata( $node );

Expand Down

0 comments on commit ac67171

Please sign in to comment.