Skip to content

Commit

Permalink
Exclude dotfiles from gem archive
Browse files Browse the repository at this point in the history
This is especially intended to exclude .rubocop.yml.
Otherwise the rubocop.yml bundled with guard-rubocop may bother user's
.rubocop.yml if the user installed guard-rubocop via bundler in
vendor/bundle and configured to exclude the path in his project's
.rubocop.yml.
  • Loading branch information
yujinakayama committed Jun 14, 2013
1 parent fecf986 commit dd3d87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guard-rubocop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/yujinakayama/guard-rubocop'
spec.license = 'MIT'

spec.files = `git ls-files`.split($/)
spec.files = `git ls-files`.split($/).reject { |f| File.basename(f).start_with?('.') }
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
Expand Down

0 comments on commit dd3d87c

Please # to comment.