Add extra_rdoc_files to gemspec
This makes `LICENSE` and `README.md` available to RDoc documentation. The files remain included in the gem package because `Gem::Specification#files` automatically merges `extra_rdoc_files`.
This commit is contained in:
parent
6669601b5d
commit
17e9603474
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ Gem::Specification.new do |spec|
|
|||
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
|
||||
spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/mcp"
|
||||
|
||||
spec.files = Dir["LICENSE", "README.md", "lib/**/*"]
|
||||
spec.files = Dir["lib/**/*"]
|
||||
spec.extra_rdoc_files = ["LICENSE", "README.md"]
|
||||
|
||||
spec.bindir = "exe"
|
||||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue