Skip to content

Commit b9af74e

Browse files
committed
Only inline GitTracker's files
We don't want to try inlining something from stdlib, for example.
1 parent 51adce4 commit b9af74e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git_tracker/standalone.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def save(filename, path: ".")
4141
def each_source_file
4242
GIT_TRACKER_ROOT.join("lib/git_tracker.rb").open("r") do |main|
4343
main.each_line do |req|
44-
if req =~ /^require\s+["'](.+)["']/
45-
yield GIT_TRACKER_ROOT.join("lib/#{$1}.rb").to_path
44+
if req =~ /^require\s+["']git_tracker\/(.+)["']/
45+
yield GIT_TRACKER_ROOT.join("lib/git_tracker/#{$1}.rb").to_path
4646
end
4747
end
4848
end

0 commit comments

Comments
 (0)