Skip to content

Commit 27869f5

Browse files
hsbtkou
andcommitted
Use base option with Dir.glob instead of Dir.chdir.
Co-authored-by: Sutou Kouhei <[email protected]>
1 parent 109e8b3 commit 27869f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rdoc.gemspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentat
5454
"rdoc.gemspec",
5555
]
5656
template_files = Dir.glob("lib/rdoc/generator/template/**/*")
57-
lib_files = Dir.chdir(File.expand_path('..', __FILE__)) do
58-
Dir.glob("lib/**/*.{rb,kpeg,ry}")
59-
end
57+
lib_files = Dir.glob("lib/**/*.{rb,kpeg,ry}", base: File.expand_path('..', __FILE__))
6058

6159
s.files = (non_lib_files + template_files + lib_files).uniq
6260

0 commit comments

Comments
 (0)