зеркало из https://github.com/github/ruby.git
[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:
Родитель
71bee3819f
Коммит
e3808c5aca
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче