Skip to content

Commit

Permalink
Use install_share and dist_dir to allow locating amqp_spec file witho…
Browse files Browse the repository at this point in the history
…ut loading Coro.
  • Loading branch information
clkao committed Aug 16, 2010
1 parent bcbde73 commit 4e19c01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ requires 'File::ShareDir';


tests 't/*.t'; tests 't/*.t';
author_tests 'xt'; author_tests 'xt';
install_share;


build_requires 'Test::More'; build_requires 'Test::More';
build_requires 'Test::Exception'; build_requires 'Test::Exception';
Expand Down
2 changes: 1 addition & 1 deletion lib/Net/RabbitFoot.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sub load_xml_spec {
} }


sub default_amqp_spec { sub default_amqp_spec {
my $dir = File::ShareDir::module_dir(__PACKAGE__); my $dir = File::ShareDir::dist_dir("Net-RabbitFoot");
return "$dir/fixed_amqp0-8.xml"; return "$dir/fixed_amqp0-8.xml";
} }


Expand Down
File renamed without changes.

0 comments on commit 4e19c01

Please sign in to comment.