Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Gem::Commands::OutdatedCommand#partition_by_cooldown

partition_by_cooldown(spec_tuples)

Splits [NameTuple, Gem::Source] pairs into versions outside and within the cooldown period. Tuples with an unknown publish time count as outside the period, so the cooldown fails open.