Skip to content

Commit

Permalink
Exclude .gitignore from the package to support vendoring. (#743)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
iliabylich committed Sep 24, 2020
1 parent 2b1ddad commit f925b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parser.gemspec
Expand Up @@ -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']
Expand Down

0 comments on commit f925b97

Please sign in to comment.