--- a/ffi.gemspec +++ b/ffi.gemspec @@ -16,19 +16,7 @@ s.metadata['source_code_uri'] = 'https://github.com/ffi/ffi/' s.metadata['mailing_list_uri'] = 'http://groups.google.com/group/ruby-ffi' end - s.files = `git ls-files -z`.split("\x0").reject do |f| - f =~ /^(\.|bench|gen|libtest|nbproject|spec)/ - end - - # Add libffi git files - lfs = `git --git-dir ext/ffi_c/libffi/.git ls-files -z`.split("\x0") - # Add autoconf generated files of libffi - lfs += %w[ configure config.guess config.sub install-sh ltmain.sh missing fficonfig.h.in ] - # Add automake generated files of libffi - lfs += `git --git-dir ext/ffi_c/libffi/.git ls-files -z *.am */*.am`.gsub(".am\0", ".in\0").split("\x0") - s.files += lfs.map do |f| - File.join("ext/ffi_c/libffi", f) - end + s.files = Dir['lib/**/*', 'ext/**/*'] s.extensions << 'ext/ffi_c/extconf.rb' s.rdoc_options = %w[--exclude=ext/ffi_c/.*\.o$ --exclude=ffi_c\.(bundle|so)$]