diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 16:48:42 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 17:08:50 +0900 |
commit | c896f71577e17e7b89ad39463b82d8936f000480 (patch) | |
tree | 6ac34bbb39b364052ecd38cb1de66976e7d79b85 /spec/bundler/support/path.rb | |
parent | b43f4bd2184989c5f47ee539e583c785dfadb8d0 (diff) | |
download | ruby-c896f71577e17e7b89ad39463b82d8936f000480.tar.gz |
[bundler/bundler] Extract a `tracked_files` path helper
https://github.com/bundler/bundler/commit/d35e31d2e0
Diffstat (limited to 'spec/bundler/support/path.rb')
-rw-r--r-- | spec/bundler/support/path.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 133d86e722..70ce645c0a 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -25,6 +25,10 @@ module Spec @spec_dir ||= root.join(ruby_core? ? "spec/bundler" : "spec") end + def tracked_files + @tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb spec/bundler` : `git ls-files -z` + end + def tmp(*path) root.join("tmp", *path) end |