summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-12-02 10:13:57 +0000
committerBundlerbot <bot@bundler.io>2019-12-02 10:13:57 +0000
commitf6b970d0b8347681fdcf804a837876798a9230ef (patch)
treec6f134a81b4edcf12fab604250dc8c68d953b101
parent0cb51921d238f330c91673428b53f523016cdd01 (diff)
parent55768bd78c3aabbaaafc4439b7ce02044d1654eb (diff)
downloadbundler-f6b970d0b8347681fdcf804a837876798a9230ef.tar.gz
Merge #7463
7463: Vendor fileutils 1.4.1 r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was no big deal. Just a discrepancy between the fileutils version we're vendoring and the one that will ship with ruby 2.7. This doesn't cause any issues, but I prefer that they match. ### What is your fix for the problem, implemented in this PR? My fix is to `bin/rake vendor:fileutils[v1.4.1]` and commit the result. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
-rw-r--r--lib/bundler/vendor/fileutils/lib/fileutils.rb6
-rw-r--r--lib/bundler/vendor/fileutils/lib/fileutils/version.rb5
2 files changed, 3 insertions, 8 deletions
diff --git a/lib/bundler/vendor/fileutils/lib/fileutils.rb b/lib/bundler/vendor/fileutils/lib/fileutils.rb
index c1988dceab..8f8faf30c8 100644
--- a/lib/bundler/vendor/fileutils/lib/fileutils.rb
+++ b/lib/bundler/vendor/fileutils/lib/fileutils.rb
@@ -6,8 +6,6 @@ rescue LoadError
# for make mjit-headers
end
-require_relative "fileutils/version"
-
#
# = fileutils.rb
#
@@ -104,6 +102,7 @@ require_relative "fileutils/version"
# <tt>:verbose</tt> flags to methods in Bundler::FileUtils.
#
module Bundler::FileUtils
+ VERSION = "1.4.1"
def self.private_module_function(name) #:nodoc:
module_function name
@@ -1300,7 +1299,8 @@ module Bundler::FileUtils
.reject {|n| n == '.' or n == '..' }
end
- files.map {|n| Entry_.new(prefix(), join(rel(), n.tap{|x| x.untaint if RUBY_VERSION < "2.7" })) }
+ untaint = RUBY_VERSION < '2.7'
+ files.map {|n| Entry_.new(prefix(), join(rel(), untaint ? n.untaint : n)) }
end
def stat
diff --git a/lib/bundler/vendor/fileutils/lib/fileutils/version.rb b/lib/bundler/vendor/fileutils/lib/fileutils/version.rb
deleted file mode 100644
index b8f616e4fb..0000000000
--- a/lib/bundler/vendor/fileutils/lib/fileutils/version.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# frozen_string_literal: true
-
-module Bundler::FileUtils
- VERSION = "1.3.0"
-end