aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/graph.rb
diff options
context:
space:
mode:
authorErick Sasse <esasse@gmail.com>2015-07-17 19:33:19 -0300
committerErick Sasse <esasse@gmail.com>2015-07-17 19:33:19 -0300
commit01f76e52a073361dd56dbb9b5a4b71e81c88838d (patch)
tree889e687d30a72bf3322275876770baf735b1f31e /lib/bundler/graph.rb
parent7515ea86066b0f81f93a212b22a2219605aa7e75 (diff)
downloadbundler-01f76e52a073361dd56dbb9b5a4b71e81c88838d.tar.gz
Fix Style/SpaceInsideHashLiteralBraces
Diffstat (limited to 'lib/bundler/graph.rb')
-rw-r--r--lib/bundler/graph.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/graph.rb b/lib/bundler/graph.rb
index a89cd1c7..8b1b36d3 100644
--- a/lib/bundler/graph.rb
+++ b/lib/bundler/graph.rb
@@ -124,7 +124,7 @@ module Bundler
end
def g
- @g ||= ::GraphViz.digraph(@graph_name, {:concentrate => true, :normalize => true, :nodesep => 0.55}) do |g|
+ @g ||= ::GraphViz.digraph(@graph_name, { :concentrate => true, :normalize => true, :nodesep => 0.55 }) do |g|
g.edge[:weight] = 2
g.edge[:fontname] = g.node[:fontname] = "Arial, Helvetica, SansSerif"
g.edge[:fontsize] = 12
@@ -135,18 +135,18 @@ module Bundler
@groups.each do |group|
g.add_nodes(
group,
- {:style => "filled",
+ { :style => "filled",
:fillcolor => "#B9B9D5",
:shape => "box3d",
- :fontsize => 16}.merge(@node_options[group])
+ :fontsize => 16 }.merge(@node_options[group])
)
end
@relations.each do |parent, children|
children.each do |child|
if @groups.include?(parent)
- g.add_nodes(child, {:style => "filled", :fillcolor => "#B9B9D5"}.merge(@node_options[child]))
- g.add_edges(parent, child, {:constraint => false}.merge(@edge_options["#{parent}_#{child}"]))
+ g.add_nodes(child, { :style => "filled", :fillcolor => "#B9B9D5" }.merge(@node_options[child]))
+ g.add_edges(parent, child, { :constraint => false }.merge(@edge_options["#{parent}_#{child}"]))
else
g.add_nodes(child, @node_options[child])
g.add_edges(parent, child, @edge_options["#{parent}_#{child}"])