From 49bae9b619d6f94560ba82774e406baa53638898 Mon Sep 17 00:00:00 2001 From: alexbostock Date: Tue, 17 Jul 2018 11:12:04 +0100 Subject: [PATCH] Rename to_hash method --- Library/Homebrew/cask/lib/hbc/cask.rb | 2 +- Library/Homebrew/cask/lib/hbc/cli/info.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}"