Skip to content

Commit 6c2d240

Browse files
committed
[DOC] Include document files in the generated gem file
1 parent f5254a3 commit 6c2d240

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

irb.gemspec

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,12 @@ Gem::Specification.new do |spec|
2222
spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
2323

2424
spec.files = [
25+
".rdoc_options",
2526
"Gemfile",
26-
"LICENSE.txt",
27-
"README.md",
28-
"Rakefile",
29-
"bin/console",
30-
"bin/setup",
31-
"doc/irb/irb-tools.rd.ja",
32-
"doc/irb/irb.rd.ja",
3327
"exe/irb",
34-
"irb.gemspec",
3528
"man/irb.1",
3629
] + Dir.chdir(File.expand_path('..', __FILE__)) do
37-
Dir.glob("lib/**/*").map {|f| f unless File.directory?(f) }.compact
30+
Dir.glob(%w[*.txt *.md bin/* doc/**/* lib/**/*]).select {|f| !File.directory?(f) }
3831
end
3932
spec.bindir = "exe"
4033
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)