Browse Source

Include necessary ruby-money config files in dist

Also add MANIFEST.SKIP to make tests pass.
pull/1/head
David D Lowe 6 years ago
parent
commit
9a828134e1
  1. 7
      MANIFEST
  2. 19
      MANIFEST.SKIP
  3. 17
      Makefile.PL

7
MANIFEST

@ -2,9 +2,16 @@ Changes
lib/Data/MoneyCurrency.pm
Makefile.PL
MANIFEST This list of files
MANIFEST.SKIP
README
LICENSE
t/00-load.t
t/manifest.t
t/pod-coverage.t
t/pod.t
xt/boilerplate.t
ruby-money/config/currency_backwards_compatible.json
ruby-money/config/currency_iso.json
ruby-money/config/currency_non_iso.json
ruby-money/LICENSE
ruby-money/README.md

19
MANIFEST.SKIP

@ -0,0 +1,19 @@
^\.git/
^\.gitignore$
^\.gitmodules$
~$
\.tar\.gz$
^Data-MoneyCurrency-.*/
ruby-money/lib/
ruby-money/spec/
ruby-money/.coveralls.yml
ruby-money/.git
ruby-money/.gitignore
ruby-money/.rspec
ruby-money/.travis.yml
ruby-money/AUTHORS
ruby-money/CHANGELOG.md
ruby-money/CONTRIBUTING.md
ruby-money/Gemfile
ruby-money/Rakefile
ruby-money/money.gemspec

17
Makefile.PL

@ -2,6 +2,23 @@ use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
use File::Basename qw(dirname);
use File::Spec;
my $dirname = dirname(__FILE__);
my @required_files = (
File::Spec->catfile("ruby-money", "config", "currency_backwards_compatible.json"),
File::Spec->catfile("ruby-money", "config", "currency_iso.json"),
File::Spec->catfile("ruby-money", "config", "currency_non_iso.json"),
File::Spec->catfile("ruby-money", "LICENSE"),
File::Spec->catfile("ruby-money", "README.md"),
);
for my $file (@required_files) {
my $path = File::Spec->catfile($dirname, $file);
if (! -e $path) {
die "Expected file '$path' to exist, have you checked out the submodule?";
}
}
WriteMakefile(
NAME => 'Data::MoneyCurrency',

Loading…
Cancel
Save