Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version 2.0.3

* Bump version to 2.0.3
* Update documentation for `:reverse => false` option
* Update license for 2012
* Added .rdb files to .gitignore
  • Loading branch information...
commit 0caed3e3a4aa0d5e70016bc294b66ea31cde3bc5 1 parent b62a000
@czarneckid czarneckid authored
View
1  .gitignore
@@ -7,3 +7,4 @@ doc
pkg
Gemfile.lock
test/db/*
+*.rdb
View
4 CHANGELOG.markdown
@@ -1,5 +1,9 @@
# CHANGELOG
+## leaderboard 2.0.3 (2012-02-22)
+
+ * Added `:reverse => false` to `Leaderboard::DEFAULT_OPTIONS` to support leaderboards sorted from lowest to highest score instead of highest to lowest score. (Thanks @siuying)
+
## leaderboard 2.0.2 (2012-02-03)
* Fix for checking to see if a member actually exists in the leaderboard for the `around_me` calls
View
2  LICENSE.txt
@@ -1,4 +1,4 @@
-Copyright (c) 2011 David Czarnecki
+Copyright (c) 2011-2012 David Czarnecki
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
13 README.markdown
@@ -37,6 +37,17 @@ If you need to pass in options for Redis, you can do this in the initializer:
=> #<Leaderboard:0x00000103095200 @leaderboard_name="highscores", @page_size=25, @redis_connection=#<Redis client v2.2.2 connected to redis://localhost:6379/1 (Redis v2.2.5)>>
```
+The `Leaderboard::DEFAULT_OPTIONS` are as follows:
+
+```ruby
+DEFAULT_OPTIONS = {
+ :page_size => DEFAULT_PAGE_SIZE,
+ :reverse => false
+}
+```
+
+You would use the option, `:reverse => true`, if you wanted a leaderboard sorted from lowest to highest score.
+
You can pass in an existing connection to Redis using :redis_connection in the Redis options hash:
```ruby
@@ -240,5 +251,5 @@ The following ports have been made of the leaderboard gem.
## Copyright
-Copyright (c) 2011 David Czarnecki. See LICENSE.txt for further details.
+Copyright (c) 2011-2012 David Czarnecki. See LICENSE.txt for further details.
View
2  lib/leaderboard/version.rb
@@ -1,3 +1,3 @@
class Leaderboard
- VERSION = '2.0.2'.freeze
+ VERSION = '2.0.3'.freeze
end
View
2  test/test_leaderboard.rb
@@ -13,7 +13,7 @@ def teardown
end
def test_version
- assert_equal '2.0.2', Leaderboard::VERSION
+ assert_equal '2.0.3', Leaderboard::VERSION
end
def test_initialize_with_defaults
View
2  test/test_rev_leaderboard.rb
@@ -13,7 +13,7 @@ def teardown
end
def test_version
- assert_equal '2.0.2', Leaderboard::VERSION
+ assert_equal '2.0.3', Leaderboard::VERSION
end
def test_initialize_with_defaults
Please sign in to comment.
Something went wrong with that request. Please try again.