cask: add installed_time to JSON output.

This is provided for formulae in `installed.time` and is useful to have
for casks as well as formulae so let's output it here too.
This commit is contained in:
Mike McQuaid 2023-11-03 11:37:01 +00:00
parent a4b4b90940
commit 54012f14ce
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 2 additions and 0 deletions

View File

@ -321,6 +321,7 @@ module Cask
"appcast" => appcast, "appcast" => appcast,
"version" => version, "version" => version,
"installed" => installed_version, "installed" => installed_version,
"installed_time" => install_time&.to_i,
"outdated" => outdated?, "outdated" => outdated?,
"sha256" => sha256, "sha256" => sha256,
"artifacts" => artifacts_list, "artifacts" => artifacts_list,

View File

@ -20,6 +20,7 @@
"appcast": null, "appcast": null,
"version": "1.2.3", "version": "1.2.3",
"installed": null, "installed": null,
"installed_time": null,
"outdated": false, "outdated": false,
"sha256": "c64c05bdc0be845505d6e55e69e696a7f50d40846e76155f0c85d5ff5e7bbb84", "sha256": "c64c05bdc0be845505d6e55e69e696a7f50d40846e76155f0c85d5ff5e7bbb84",
"artifacts": [ "artifacts": [