agoragames / leaderboard

Leaderboards backed by Redis in Ruby
https://rubygems.org/gems/leaderboard
MIT License
480 stars 65 forks source link

Get entire leaderboard #21

Closed hypomodern closed 12 years ago

hypomodern commented 12 years ago

If I have a leaderboard that I know is going to be a variable--but modest--size, I'd like to retrieve the whole thing in one request without pagination or specifying an arbitrarily large page_size.

Here's a sample implementation. I'm willing to do some refactoring to reduce duplication between the paged and unpaged versions of this if you're interested in including this.

hypomodern commented 12 years ago

Dammit, I didn't rebase to master before branching :).

czarneckid commented 12 years ago

See my comment re: redis_connection in #20.

hypomodern commented 12 years ago

fixed the commit range.