1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/csv] Add missing document files to .gem

GitHub: fix GH-125

Reported by joast. Thanks!!!

https://github.com/ruby/csv/commit/bf41fa94cf
This commit is contained in:
Sutou Kouhei 2020-05-18 05:59:14 +09:00 committed by Nobuyoshi Nakada
parent 71bee3819f
commit e3808c5aca
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2020-07-20 03:35:42 +09:00

View file

@ -18,23 +18,34 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/ruby/csv"
spec.license = "BSD-2-Clause"
spec.files = [
lib_path = "lib"
spec.require_paths = [lib_path]
files = []
lib_dir = File.join(__dir__, lib_path)
if File.exist?(lib_dir)
Dir.chdir(lib_dir) do
Dir.glob("**/*.rb").each do |file|
files << "lib/#{file}"
end
end
end
doc_dir = File.join(__dir__, "doc")
if File.exist?(doc_dir)
Dir.chdir(doc_dir) do
Dir.glob("**/*.rdoc").each do |rdoc_file|
files << "doc/#{rdoc_file}"
end
end
end
spec.files = files
spec.rdoc_options.concat(["--main", "README.md"])
rdoc_files = [
"LICENSE.txt",
"NEWS.md",
"README.md",
"lib/csv.rb",
"lib/csv/core_ext/array.rb",
"lib/csv/core_ext/string.rb",
"lib/csv/delete_suffix.rb",
"lib/csv/fields_converter.rb",
"lib/csv/match_p.rb",
"lib/csv/parser.rb",
"lib/csv/row.rb",
"lib/csv/table.rb",
"lib/csv/version.rb",
"lib/csv/writer.rb",
]
spec.require_paths = ["lib"]
spec.extra_rdoc_files = rdoc_files
spec.required_ruby_version = ">= 2.3.0"
spec.add_development_dependency "bundler"