Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Fix Style/BracesAroundHashParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Koronen committed Aug 14, 2015
1 parent 391f2b3 commit eaee3d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/bundler/fetcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit eaee3d9

Please sign in to comment.