diff options
author | Vít Ondruch <vondruch@redhat.com> | 2014-12-08 15:45:11 +0100 |
---|---|---|
committer | Vít Ondruch <vondruch@redhat.com> | 2014-12-08 15:45:11 +0100 |
commit | eba61220ed79d899fa24f8d9bb941dbc9da9d92c (patch) | |
tree | c6274826d1c347dbba092150bbce876b36b437d0 | |
parent | fe0a6e41dc0861f337155056433866a8e6a8f427 (diff) | |
download | bundler-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.rb | 2 |
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)}/ } |