From d6915b1b6a1fd72b82d666cb92333202d2c6fb59 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Tue, 2 Feb 2016 18:00:38 +0900 Subject: [PATCH] Ensure examples, all lib files, Gemfile and Rakefile are included in package --- sinatra.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sinatra.gemspec b/sinatra.gemspec index 345e7492..9544e75d 100644 --- a/sinatra.gemspec +++ b/sinatra.gemspec @@ -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 = %w(.yardopts AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE MAINTENANCE.md SECURITY.md sinatra.gemspec) + Dir['README.*.md', 'lib/**/*.rb'] + s.files = %w(.yardopts AUTHORS.md CHANGELOG.md CONTRIBUTING.md Gemfile LICENSE MAINTENANCE.md Rakefile SECURITY.md sinatra.gemspec) + Dir['README*.md', 'lib/**/*', 'examples/*'] 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]