module

Listing

Constants

FIVE_YEARS = Time::Span.new(days: 5 * 365)

Class methods

filtered(shards : Array(Shard), active : Bool) : Array(Shard)

"last 5 years" filter: drop shards not pushed within the window.

Source
sorted(shards : Array(Shard), sort : String | Nil) : Array(Shard)

sort: nil = keep incoming order (search relevance), "stars", "date".

Source