Skip to content

Commit

Permalink
Only inline GitTracker's files
Browse files Browse the repository at this point in the history
We don't want to try inlining something from stdlib, for example.
  • Loading branch information
stevenharman committed Oct 30, 2020
1 parent 51adce4 commit b9af74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/git_tracker/standalone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def save(filename, path: ".")
def each_source_file
GIT_TRACKER_ROOT.join("lib/git_tracker.rb").open("r") do |main|
main.each_line do |req|
if req =~ /^require\s+["'](.+)["']/
yield GIT_TRACKER_ROOT.join("lib/#{$1}.rb").to_path
if req =~ /^require\s+["']git_tracker\/(.+)["']/
yield GIT_TRACKER_ROOT.join("lib/git_tracker/#{$1}.rb").to_path
end
end
end
Expand Down

0 comments on commit b9af74e

Please sign in to comment.