summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2014-12-08 15:45:11 +0100
committerVít Ondruch <vondruch@redhat.com>2014-12-08 15:45:11 +0100
commiteba61220ed79d899fa24f8d9bb941dbc9da9d92c (patch)
treec6274826d1c347dbba092150bbce876b36b437d0
parentfe0a6e41dc0861f337155056433866a8e6a8f427 (diff)
downloadbundler-eba61220ed79d899fa24f8d9bb941dbc9da9d92c.tar.gz
Use flatten withou bang.
The bang variant returns nil in case there was no change needed.
-rw-r--r--lib/bundler/rubygems_integration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index a28ece1e77..5235dcc77e 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -135,7 +135,7 @@ module Bundler
# therefore use RubyGems facilities to obtain their load paths.
if Gem::Specification.method_defined? :full_require_paths
loaded_gem_paths = Gem.loaded_specs.map {|n, s| s.full_require_paths}
- loaded_gem_paths.flatten!
+ loaded_gem_paths.flatten
else
$LOAD_PATH.select do |p|
Bundler.rubygems.gem_path.any?{|gp| p =~ /^#{Regexp.escape(gp)}/ }