diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 14:55:20 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-02 15:08:43 -0700 |
commit | 21189d25a9385aa9ff3368716824b8333475a08b (patch) | |
tree | d4316d70ff88b5a43ffff90d04bd789da51cf9d4 /tasks | |
parent | fb6c052ae6d58db2499cf04ef0595d1e06a4c13c (diff) | |
download | chef-21189d25a9385aa9ff3368716824b8333475a08b.tar.gz |
fix Style/PreferredHashMethods
absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the
floor of that gem is bumped up.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/cbgb.rb | 4 | ||||
-rw-r--r-- | tasks/maintainers.rb | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tasks/cbgb.rb b/tasks/cbgb.rb index 801739a6af..9621f160c3 100644 --- a/tasks/cbgb.rb +++ b/tasks/cbgb.rb @@ -68,12 +68,12 @@ begin end def person(list, person) - if list[person].has_key?("GitHub") + if list[person].key?("GitHub") out = "* [#{list[person]["Name"]}](https://github.com/#{list[person]["GitHub"]})" else out = "* #{list[person]["Name"]}" end - if list[person].has_key?("Person") + if list[person].key?("Person") out << " - #{list[person]["Person"]}" end out diff --git a/tasks/maintainers.rb b/tasks/maintainers.rb index 1adac47ecc..117ac2ce4c 100644 --- a/tasks/maintainers.rb +++ b/tasks/maintainers.rb @@ -181,13 +181,13 @@ begin def format_components(cmp) out = "## " + cmp.delete("title") + "\n\n" - out << cmp.delete("text") + "\n" if cmp.has_key?("text") - out << "To mention the team, use @chef/#{cmp.delete("team")}\n\n" if cmp.has_key?("team") - if cmp.has_key?("lieutenant") + out << cmp.delete("text") + "\n" if cmp.key?("text") + out << "To mention the team, use @chef/#{cmp.delete("team")}\n\n" if cmp.key?("team") + if cmp.key?("lieutenant") out << "### Lieutenant\n\n" out << format_person(cmp.delete("lieutenant")) + "\n\n" end - out << format_maintainers(cmp.delete("maintainers")) + "\n" if cmp.has_key?("maintainers") + out << format_maintainers(cmp.delete("maintainers")) + "\n" if cmp.key?("maintainers") cmp.delete("paths") cmp.each_value { |v| out << format_components(v) } out |