diff options
-rw-r--r-- | .rubocop_todo.yml | 6 | ||||
-rw-r--r-- | lib/bundler/graph.rb | 2 | ||||
-rw-r--r-- | spec/bundler/fetcher_spec.rb | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 584fc1b905..342dbfa7de 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -81,12 +81,6 @@ 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 4c5d9efd34..55b193e9c9 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 diff --git a/spec/bundler/fetcher_spec.rb b/spec/bundler/fetcher_spec.rb index fd72f457c5..622c25d287 100644 --- a/spec/bundler/fetcher_spec.rb +++ b/spec/bundler/fetcher_spec.rb @@ -19,14 +19,14 @@ describe Bundler::Fetcher do 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") |