@@ -13,13 +13,13 @@ module SharedHelpers
1313 def root
1414 gemfile = find_gemfile
1515 raise GemfileNotFound , "Could not locate Gemfile" unless gemfile
16- Pathname . new ( gemfile ) . tap { |x | x . untaint if RUBY_VERSION < "2.7" } . expand_path . parent
16+ Pathname . new ( gemfile ) . tap { |x | x . untaint if RUBY_VERSION < "2.7" } . expand_path . parent
1717 end
1818
1919 def default_gemfile
2020 gemfile = find_gemfile
2121 raise GemfileNotFound , "Could not locate Gemfile" unless gemfile
22- Pathname . new ( gemfile ) . tap { |x | x . untaint if RUBY_VERSION < "2.7" } . expand_path
22+ Pathname . new ( gemfile ) . tap { |x | x . untaint if RUBY_VERSION < "2.7" } . expand_path
2323 end
2424
2525 def default_lockfile
@@ -28,7 +28,7 @@ def default_lockfile
2828 case gemfile . basename . to_s
2929 when "gems.rb" then Pathname . new ( gemfile . sub ( /.rb$/ , ".locked" ) )
3030 else Pathname . new ( "#{ gemfile } .lock" )
31- end . tap { |x | x . untaint if RUBY_VERSION < "2.7" }
31+ end . tap { |x | x . untaint if RUBY_VERSION < "2.7" }
3232 end
3333
3434 def default_bundle_dir
@@ -100,7 +100,7 @@ def set_bundle_environment
100100 #
101101 # @see {Bundler::PermissionError}
102102 def filesystem_access ( path , action = :write , &block )
103- yield ( path . dup . tap { |x | x . untaint if RUBY_VERSION < "2.7" } )
103+ yield ( path . dup . tap { |x | x . untaint if RUBY_VERSION < "2.7" } )
104104 rescue Errno ::EACCES
105105 raise PermissionError . new ( path , action )
106106 rescue Errno ::EAGAIN
@@ -236,7 +236,7 @@ def find_directory(*names)
236236
237237 def search_up ( *names )
238238 previous = nil
239- current = File . expand_path ( SharedHelpers . pwd ) . tap { |x | x . untaint if RUBY_VERSION < "2.7" }
239+ current = File . expand_path ( SharedHelpers . pwd ) . tap { |x | x . untaint if RUBY_VERSION < "2.7" }
240240
241241 until !File . directory? ( current ) || current == previous
242242 if ENV [ "BUNDLER_SPEC_RUN" ]
0 commit comments