diff options
author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2020-10-13 20:06:41 -0500 |
---|---|---|
committer | Sutou Kouhei <kou@cozmixng.org> | 2020-11-24 09:33:55 +0900 |
commit | c5fcafd2fd82ddbae38739a874bf84a19b4ef402 (patch) | |
tree | 49c100f228340ed6d45e551a39e13edd73fd7a1d /lib/csv | |
parent | 3cfb63fcd864e6114138a9ba4e972bd616034bc2 (diff) | |
download | ruby-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.gemspec | 9 |
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" |