summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-01-17 13:34:18 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-01-17 13:34:18 -0800
commit746562d6358c27b838c95ea27b2a2bd82c03cefe (patch)
treebaa587f091d06c1385543bbde818970e5fee7b75 /tasks
parentfcd8d778baeeb990a64fe9042164bbd3e1dd5269 (diff)
downloadchef-746562d6358c27b838c95ea27b2a2bd82c03cefe.tar.gz
prepping for rubocop 0.52.1lcg/rubocop-0.52.1
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'tasks')
-rw-r--r--tasks/cbgb.rb2
-rw-r--r--tasks/maintainers.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/tasks/cbgb.rb b/tasks/cbgb.rb
index 70ca1036e8..09363b42d2 100644
--- a/tasks/cbgb.rb
+++ b/tasks/cbgb.rb
@@ -52,7 +52,7 @@ begin
def components(list, cmp)
out = ""
- cmp.each do |k, v|
+ cmp.each_value do |v|
out << "\n#### #{v['title'].gsub('#', '\\#')}\n"
out << cbgb(list, v["cbgb"])
end
diff --git a/tasks/maintainers.rb b/tasks/maintainers.rb
index f6385860c4..d2fc482a28 100644
--- a/tasks/maintainers.rb
+++ b/tasks/maintainers.rb
@@ -1,5 +1,5 @@
#
-# Copyright:: Copyright 2015-2016, Chef Software, Inc.
+# Copyright:: Copyright 2015-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -131,7 +131,7 @@ begin
else
%w{maintainers lieutenant title}.each { |k| cmp.delete(k) }
end
- cmp.each { |_k, v| prepare_teams(v) }
+ cmp.each_value { |v| prepare_teams(v) }
end
def update_team(team, additions, deletions)
@@ -189,7 +189,7 @@ begin
end
out << format_maintainers(cmp.delete("maintainers")) + "\n" if cmp.has_key?("maintainers")
cmp.delete("paths")
- cmp.each { |k, v| out << format_components(v) }
+ cmp.each_value { |v| out << format_components(v) }
out
end