Skip to content

Commit

Permalink
rdoc: ignore gemspec files
Browse files Browse the repository at this point in the history
[ruby-core:91067] [Bug #15531]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jan 13, 2019
1 parent 71d2695 commit edb65a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rdoc/options.rb
Expand Up @@ -346,6 +346,7 @@ def init_ivars # :nodoc:
@dry_run = false
@exclude = %w[
~\z \.orig\z \.rej\z \.bak\z
\.gemspec\z
]
@files = nil
@force_output = false
Expand Down
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_options.rb
Expand Up @@ -66,7 +66,7 @@ class << coder; alias add []=; end
expected = {
'charset' => 'UTF-8',
'encoding' => encoding,
'exclude' => %w[~\z \.orig\z \.rej\z \.bak\z],
'exclude' => %w[~\z \.orig\z \.rej\z \.bak\z \.gemspec\z],
'hyperlink_all' => false,
'line_numbers' => false,
'locale' => nil,
Expand Down

0 comments on commit edb65a6

Please sign in to comment.