summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hellwig <a5308y@gmail.com>2015-10-03 09:32:35 +0200
committerAndreas Hellwig <a5308y@gmail.com>2015-10-03 09:32:35 +0200
commitb73c775240e02606479d9110efa2c9ad1503c982 (patch)
tree751ec61fc11120ff9a3d53616401cc5f0c9ebddf
parent16576f3a0a3780b09f38a78336ddfbd3fc5a9573 (diff)
downloadbundler-b73c775240e02606479d9110efa2c9ad1503c982.tar.gz
There's no flat_map in 1.8.7
-rw-r--r--lib/bundler/installer/standalone.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/installer/standalone.rb b/lib/bundler/installer/standalone.rb
index f9b50e1d98..6776dd6200 100644
--- a/lib/bundler/installer/standalone.rb
+++ b/lib/bundler/installer/standalone.rb
@@ -23,13 +23,13 @@ module Bundler
private
def paths
- @specs.flat_map do |spec|
+ @specs.map do |spec|
next if spec.name == "bundler"
Array(spec.require_paths).map do |path|
gem_path(path, spec).sub(version_dir, '#{ruby_engine}/#{ruby_version}')
# This is a static string intentionally. It's interpolated at a later time.
end
- end
+ end.flatten
end
def version_dir