SIGN IN SIGN UP
Homebrew / brew UNCLAIMED

🍺 The missing package manager for macOS (or Linux)

0 0 185 Ruby

Livecheck: add throttle days parameter

This replaces the `throttle_max_age_days` method in the `Livecheck`
DSL with a `days` parameter on the existing `throttle` method. This is
cleaner and `throttle days: 1` should be readily understandable.
`throttle 5, days: 1` should be interpreted as "every five versions or
one days, whichever comes first" and I've explained this in the docs
comment for the `throttle` method.

This also the removes "max age" terminology in livecheck/livecheck,
simply using "throttle days" and "throttle interval" concepts. These
concepts should work better for general day-based throttling.
S
Sam Ford committed
ffa5d416935cf03c862bddb27e0d6807e3900a46
Parent: 8799834