mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Whitelist gem files to avoid packaging "The World"
This commit is contained in:
parent
b30a718ee1
commit
9871970545
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ Gem::Specification.new 'sinatra', Sinatra::VERSION do |s|
|
|||
s.email = "sinatrarb@googlegroups.com"
|
||||
s.homepage = "http://www.sinatrarb.com/"
|
||||
s.license = 'MIT'
|
||||
s.files = `git ls-files`.split("\n") - %w[.gitignore .travis.yml]
|
||||
s.files = %w(.yardopts AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE sinatra.gemspec) + Dir['README.*.md', 'lib/**/*.rb']
|
||||
s.test_files = s.files.select { |p| p =~ /^test\/.*_test.rb/ }
|
||||
s.extra_rdoc_files = s.files.select { |p| p =~ /^README/ } << 'LICENSE'
|
||||
s.rdoc_options = %w[--line-numbers --inline-source --title Sinatra --main README.rdoc --encoding=UTF-8]
|
||||
|
|
Loading…
Reference in a new issue