Sam Ford 612fec47f3
bump-cask-pr: rescue CaskUnreadableError
The `replace_version_and_checksum` method handles a `CaskInvalidError`
when loading a cask (handling casks that aren't valid on Linux) but
we can sometimes still encounter an error when bumping a cask with
on_system blocks. For example, bumping `displaylink` will produce a
`Cask 'displaylink' is unreadable: undefined method 'csv' for nil`
error when `SimulateSystem` runs as Linux, as the cask interpolates
`version.csv.first` in a `license` string but `version` isn't set on
Linux.

This adds `Cask::CaskUnreadableError` to the `rescue` arguments,
which accounts for this particular situation (allowing `displaylink`
to be bumped like before).
2025-04-03 17:56:48 -04:00
..
2025-03-02 21:36:03 -08:00
2024-12-04 08:00:32 -08:00
2024-12-03 17:43:22 -08:00
2025-02-05 23:32:32 -08:00
2024-12-03 17:43:22 -08:00
2025-03-13 18:17:18 +08:00
2025-02-06 21:04:08 -08:00