diff options
author | Andreas Hellwig <a5308y@gmail.com> | 2015-10-03 09:32:35 +0200 |
---|---|---|
committer | Andreas Hellwig <a5308y@gmail.com> | 2015-10-03 09:32:35 +0200 |
commit | b73c775240e02606479d9110efa2c9ad1503c982 (patch) | |
tree | 751ec61fc11120ff9a3d53616401cc5f0c9ebddf | |
parent | 16576f3a0a3780b09f38a78336ddfbd3fc5a9573 (diff) | |
download | bundler-b73c775240e02606479d9110efa2c9ad1503c982.tar.gz |
There's no flat_map in 1.8.7
-rw-r--r-- | lib/bundler/installer/standalone.rb | 4 |
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 |