Skip to content

Commit 2e0835b

Browse files
committed
make file paths for rake tasks relative to current directory
1 parent b5d1178 commit 2e0835b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/support_table_data/tasks/utils.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def eager_load!
2323
# @param file_path [String, Pathname, nil] Optional file path to filter by.
2424
# @return [Array<SupportTableData::Documentation::SourceFile>]
2525
def support_table_sources(file_path = nil)
26-
require_relative file_path if file_path
26+
file_path = Pathname.new(file_path) if file_path.is_a?(String)
27+
require file_path.expand_path if file_path
2728

2829
sources = []
2930

0 commit comments

Comments
 (0)