From 08c58e3c0db8aaa6b573fe6c34a6318a17a83c68 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Fri, 16 Aug 2019 08:45:11 +0200 Subject: [bundler/bundler] Extract a `gemspec_dir` helper https://github.com/bundler/bundler/commit/71a29e286a --- spec/bundler/support/path.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/bundler/support/path.rb') diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 73d828cb5d..9493c5422a 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -13,6 +13,10 @@ module Spec @gemspec ||= root.join(ruby_core? ? "lib/bundler/bundler.gemspec" : "bundler.gemspec") end + def gemspec_dir + @gemspec_dir ||= gemspec.parent + end + def bindir @bindir ||= root.join(ruby_core? ? "libexec" : "exe") end -- cgit v1.2.3