diff options
author | Andre Arko <andre@arko.net> | 2014-04-28 08:48:34 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-04-28 08:48:34 -0700 |
commit | baba269cf8edc749921c6e9d847e83a2050ed060 (patch) | |
tree | 116b6f1066f4a810cec8a74fa19bc91c1f1703e7 /lib/bundler/cli/open.rb | |
parent | cc0d33a8cce9c3303bd6d8c7e29164d5d1ceebde (diff) | |
download | bundler-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.rb | 2 |
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 |