summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLutz Lengemann <mobilutz@users.noreply.github.com>2016-02-18 09:02:37 +0100
committerLutz Lengemann <mobilutz@users.noreply.github.com>2016-02-18 09:02:37 +0100
commita7e417b5eace4f87f55881f6e527112e793f9983 (patch)
tree88c90a0b40093453df05804bd04d8d21fca76291
parent3ed2440ed5476da0defe7d3c30fc26a0ffd106df (diff)
downloadbundler-a7e417b5eace4f87f55881f6e527112e793f9983.tar.gz
Change `without` handling so `bundle install` way
-rw-r--r--lib/bundler/cli/viz.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/cli/viz.rb b/lib/bundler/cli/viz.rb
index ba30484c99..75e6affff9 100644
--- a/lib/bundler/cli/viz.rb
+++ b/lib/bundler/cli/viz.rb
@@ -8,9 +8,11 @@ module Bundler
def run
require "graphviz"
+
+ options[:without] = options[:without].join(":").tr(" ", ":").split(":")
output_file = File.expand_path(options[:file])
- without = options[:without].empty? ? [] : options[:without].first.split(',')
- graph = Graph.new(Bundler.load, output_file, options[:version], options[:requirements], options[:format], without)
+
+ graph = Graph.new(Bundler.load, output_file, options[:version], options[:requirements], options[:format], options[:without])
graph.viz
rescue LoadError => e
Bundler.ui.error e.inspect