From 4a42b18c60825820d54e839b7a1bba5ad3b76ab0 Mon Sep 17 00:00:00 2001 From: Ilya Bylich Date: Thu, 24 Sep 2020 19:01:37 +0300 Subject: [PATCH] Exclude .gitignore from the package to support vendoring. If .gitignore is a part of the .gem it's impossible to include source of the locally installed parser (using bundle install --path ./vendor) because git automatically excludes all gitignore-d files (including all parsers and lexer). --- parser.gemspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser.gemspec b/parser.gemspec index fd7843d4e..dcb9a4a8d 100644 --- a/parser.gemspec +++ b/parser.gemspec @@ -35,7 +35,10 @@ Gem::Specification.new do |spec| lib/parser/ruby30.rb lib/parser/macruby.rb lib/parser/rubymotion.rb + ) - %w( + .gitignore ) + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^test/}) spec.require_paths = ['lib']