summaryrefslogtreecommitdiff
path: root/lib/csv
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2020-10-13 20:06:41 -0500
committerSutou Kouhei <kou@cozmixng.org>2020-11-24 09:33:55 +0900
commitc5fcafd2fd82ddbae38739a874bf84a19b4ef402 (patch)
tree49c100f228340ed6d45e551a39e13edd73fd7a1d /lib/csv
parent3cfb63fcd864e6114138a9ba4e972bd616034bc2 (diff)
downloadruby-c5fcafd2fd82ddbae38739a874bf84a19b4ef402.tar.gz
[ruby/csv] Split recipes into three pages: parsing, generating, filtering (#184)
Co-authored-by: Sutou Kouhei <kou@clear-code.com> https://github.com/ruby/csv/commit/f0bab6a592
Diffstat (limited to 'lib/csv')
-rw-r--r--lib/csv/csv.gemspec9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/csv/csv.gemspec b/lib/csv/csv.gemspec
index be7e735d04..d0284728f7 100644
--- a/lib/csv/csv.gemspec
+++ b/lib/csv/csv.gemspec
@@ -43,8 +43,15 @@ Gem::Specification.new do |spec|
"LICENSE.txt",
"NEWS.md",
"README.md",
- "doc/csv/recipes.rdoc"
]
+ recipes_dir = File.join(doc_dir, "csv", "recipes")
+ if File.exist?(recipes_dir)
+ Dir.chdir(recipes_dir) do
+ Dir.glob("**/*.rdoc").each do |recipe_file|
+ rdoc_files << "doc/csv/recipes/#{recipe_file}"
+ end
+ end
+ end
spec.extra_rdoc_files = rdoc_files
spec.required_ruby_version = ">= 2.5.0"