diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 9bbbe6c01d..a2f2a08787 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -130,7 +130,7 @@ module Hbc end end - def to_hash + def to_h { "name" => name, "homepage" => homepage, diff --git a/Library/Homebrew/cask/lib/hbc/cli/info.rb b/Library/Homebrew/cask/lib/hbc/cli/info.rb index 770723e9de..340a90daa5 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/info.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/info.rb @@ -12,7 +12,7 @@ module Hbc def run if json == "v1" - puts JSON.generate(casks.map(&:to_hash)) + puts JSON.generate(casks.map(&:to_h)) else casks.each do |cask| odebug "Getting info for Cask #{cask}"