Skip to content

Commit

Permalink
Include .rb files as part of default ext/ glob
Browse files Browse the repository at this point in the history
Fixes #1213
  • Loading branch information
lsegal committed Jan 22, 2019
1 parent 7e9aa9d commit 6252ced
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ which is automatically detected by YARD if found in the root of your project
(any file starting with `README*`). You can specify extra files on the command
line (or in the `.yardopts` file) by listing them after the '-' separator:

yardoc lib/**/*.rb ext/**/*.c - LICENSE.txt
yardoc lib/**/*.rb ext/**/*.{c,rb} - LICENSE.txt

Note that the README will automatically be picked up, so you do not need to
specify it. If you don't want to modify the default file globs, you can ignore
Expand Down
2 changes: 1 addition & 1 deletion lib/yard/cli/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def general_options(opts)
opts.banner = "Usage: yard i18n [options] [source_files [- extra_files]]"
opts.top.list.clear
opts.separator "(if a list of source files is omitted, "
opts.separator " {lib,app}/**/*.rb ext/**/*.c is used.)"
opts.separator " {lib,app}/**/*.rb ext/**/*.{c,rb} is used.)"
opts.separator ""
opts.separator "Example: yard i18n -o yard.pot - FAQ LICENSE"
opts.separator " The above example outputs .pot file for files in"
Expand Down
2 changes: 1 addition & 1 deletion lib/yard/cli/stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def optparse(*args)
opts = OptionParser.new
opts.banner = "Usage: yard stats [options] [source_files]"

opts.separator "(if a list of source files is omitted, lib/**/*.rb ext/**/*.c is used.)"
opts.separator "(if a list of source files is omitted, lib/**/*.rb ext/**/*.{c,rb} is used.)"

general_options(opts)
output_options(opts)
Expand Down
2 changes: 1 addition & 1 deletion lib/yard/cli/yardoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def optparse(*args)
opts.banner = "Usage: yard doc [options] [source_files [- extra_files]]"

opts.separator "(if a list of source files is omitted, "
opts.separator " {lib,app}/**/*.rb ext/**/*.c is used.)"
opts.separator " {lib,app}/**/*.rb ext/**/*.{c,rb} is used.)"
opts.separator ""
opts.separator "Example: yardoc -o documentation/ - FAQ LICENSE"
opts.separator " The above example outputs documentation for files in"
Expand Down
2 changes: 1 addition & 1 deletion lib/yard/parser/source_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SourceParser

# The default glob of files to be parsed.
# @since 0.9.0
DEFAULT_PATH_GLOB = ["{lib,app}/**/*.rb", "ext/**/*.{c,cc,cxx,cpp}"]
DEFAULT_PATH_GLOB = ["{lib,app}/**/*.rb", "ext/**/*.{c,cc,cxx,cpp,rb}"]

# Byte order marks for various encodings
# @since 0.7.0
Expand Down

0 comments on commit 6252ced

Please sign in to comment.