Skip to content

Commit 29ba586

Browse files
committed
Handle some files under the doc directory for gemspec
1 parent 58c5891 commit 29ba586

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

Manifest.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ LICENSE.txt
44
MIT.txt
55
Manifest.txt
66
README.md
7-
doc/MAINTAINERS.txt
8-
doc/rubygems/CONTRIBUTING.md
9-
doc/rubygems/POLICIES.md
10-
doc/rubygems/UPGRADING.md
11-
doc/bundler/UPGRADING.md
127
bundler/CHANGELOG.md
138
bundler/LICENSE.md
149
bundler/README.md
@@ -357,6 +352,11 @@ bundler/lib/bundler/version.rb
357352
bundler/lib/bundler/vlad.rb
358353
bundler/lib/bundler/worker.rb
359354
bundler/lib/bundler/yaml_serializer.rb
355+
doc/MAINTAINERS.txt
356+
doc/bundler/UPGRADING.md
357+
doc/rubygems/CONTRIBUTING.md
358+
doc/rubygems/POLICIES.md
359+
doc/rubygems/UPGRADING.md
360360
exe/gem
361361
exe/update_rubygems
362362
hide_lib_for_update/note.txt

Rakefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ module Rubygems
450450
class ProjectFiles
451451
def self.all
452452
files = []
453-
exclude = %r{\A(?:\.|bundler/(?!lib|exe|[^/]+\.md|bundler.gemspec)|tool/|Rakefile|bin|test)}
453+
exclude = %r{\A(?:\.|bundler/(?!lib|exe|[^/]+\.md|bundler.gemspec)|tool/|Rakefile|bin|test|doc)}
454454
tracked_files = `git ls-files`.split("\n")
455455

456456
tracked_files.each do |path|
@@ -459,6 +459,15 @@ module Rubygems
459459
files << path
460460
end
461461

462+
# Restore important documents
463+
%w[
464+
doc/MAINTAINERS.txt
465+
doc/bundler/UPGRADING.md
466+
doc/rubygems/CONTRIBUTING.md
467+
doc/rubygems/POLICIES.md
468+
doc/rubygems/UPGRADING.md
469+
].each {|f| files << f }
470+
462471
files.sort
463472
end
464473
end

0 commit comments

Comments
 (0)