aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli/open.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-04-28 08:48:34 -0700
committerAndre Arko <andre@arko.net>2014-04-28 08:48:34 -0700
commitbaba269cf8edc749921c6e9d847e83a2050ed060 (patch)
tree116b6f1066f4a810cec8a74fa19bc91c1f1703e7 /lib/bundler/cli/open.rb
parentcc0d33a8cce9c3303bd6d8c7e29164d5d1ceebde (diff)
downloadbundler-baba269cf8edc749921c6e9d847e83a2050ed060.tar.gz
had no idea that in-array splat was 1.9
Diffstat (limited to 'lib/bundler/cli/open.rb')
-rw-r--r--lib/bundler/cli/open.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/open.rb b/lib/bundler/cli/open.rb
index 39c1a6cb..c6c61794 100644
--- a/lib/bundler/cli/open.rb
+++ b/lib/bundler/cli/open.rb
@@ -14,7 +14,7 @@ module Bundler
return Bundler.ui.info("To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR") unless editor
path = Bundler::CLI::Common.select_spec(name, :regex_match).full_gem_path
Dir.chdir(path) do
- command = [*Shellwords.split(editor), path]
+ command = Shellwords.split(editor) + [path]
system(*command) || Bundler.ui.info("Could not run '#{command.join(' ')}'")
end
end