提交 8c869ea9 编写于 作者: M Mislav Marohnić

Filter files that are not in version control from the gemspec

Keeps unversioned files that I'm currently experimenting with from
accidentally getting released.
上级 0e57bebc
......@@ -15,6 +15,12 @@ Gem::Specification.new do |s|
s.files += Dir.glob("bin/**/*")
s.files += Dir.glob("man/**/*")
# include only files in version control
git_dir = File.expand_path('../.git', __FILE__)
if File.directory?(git_dir)
s.files &= `git --git-dir='#{git_dir}' ls-files -z`.split("\0")
end
s.executables = %w( hub )
s.description = <<desc
`hub` is a command line utility which adds GitHub knowledge to `git`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册