From 7a85492176f21cdb4bbcc3c5b74703da3b35e175 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Thu, 29 Dec 2022 02:05:16 -0500 Subject: [PATCH] Use JSON instead of `#inspect` to include cask container in API --- Library/Homebrew/cask/cask.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/cask.rb b/Library/Homebrew/cask/cask.rb index 9775e80bd8032..b50acc92233bb 100644 --- a/Library/Homebrew/cask/cask.rb +++ b/Library/Homebrew/cask/cask.rb @@ -244,7 +244,7 @@ def to_h "caveats" => (to_h_string_gsubs(caveats) unless caveats.empty?), "depends_on" => depends_on, "conflicts_with" => conflicts_with, - "container" => container, + "container" => container&.pairs, "auto_updates" => auto_updates, } end