From eaee3d96b46cf91b4800f3710afbf5e7ab917404 Mon Sep 17 00:00:00 2001 From: Victor Koronen Date: Sat, 8 Aug 2015 17:27:28 +0200 Subject: [PATCH] Fix Style/BracesAroundHashParameters --- .rubocop_todo.yml | 6 ------ lib/bundler/graph.rb | 2 +- spec/bundler/fetcher_spec.rb | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 584fc1b905c..342dbfa7de3 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -80,12 +80,6 @@ Style/BlockDelimiters: Style/BlockEndNewline: Enabled: false -# Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles. -Style/BracesAroundHashParameters: - Enabled: false - # Offense count: 3 Style/CaseEquality: Enabled: false diff --git a/lib/bundler/graph.rb b/lib/bundler/graph.rb index 4c5d9efd344..55b193e9c93 100644 --- a/lib/bundler/graph.rb +++ b/lib/bundler/graph.rb @@ -124,7 +124,7 @@ def initialize(graph_instance) 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 diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb index fd72f457c58..622c25d2876 100644 --- a/spec/bundler/fetcher_spec.rb +++ b/spec/bundler/fetcher_spec.rb @@ -19,14 +19,14 @@ describe "include CI information" do it "from one CI" do - with_env_vars({ "JENKINS_URL" => "foo" }) do + with_env_vars("JENKINS_URL" => "foo") do ci_part = fetcher.user_agent.split(" ").find {|x| x.match(%r{\Aci/}) } expect(ci_part).to match("jenkins") end end it "from many CI" do - with_env_vars({ "TRAVIS" => "foo", "CI_NAME" => "my_ci" }) do + with_env_vars("TRAVIS" => "foo", "CI_NAME" => "my_ci") do ci_part = fetcher.user_agent.split(" ").find {|x| x.match(%r{\Aci/}) } expect(ci_part).to match("travis") expect(ci_part).to match("my_ci")