Skip to content
Browse files

Adding an explicit leaderboard-version file

  • Loading branch information...
1 parent 09e0cc9 commit 51f08c338b58ab920a8c11e0ece12fb8ac62145b @czarneckid czarneckid committed
Showing with 6 additions and 3 deletions.
  1. +2 −1 leaderboard.gemspec
  2. +3 −0 lib/leaderboard-version.rb
  3. +1 −2 lib/leaderboard.rb
View
3 leaderboard.gemspec
@@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require 'leaderboard'
+require 'leaderboard-version'
Gem::Specification.new do |s|
s.name = "leaderboard"
@@ -20,4 +20,5 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_dependency('redis')
+ s.add_development_dependency('rake')
end
View
3 lib/leaderboard-version.rb
@@ -0,0 +1,3 @@
+class Leaderboard
+ VERSION = '2.0.1'
+end
View
3 lib/leaderboard.rb
@@ -1,8 +1,7 @@
require 'redis'
+require 'leaderboard-version'
class Leaderboard
- VERSION = '2.0.1'
-
DEFAULT_PAGE_SIZE = 25
DEFAULT_OPTIONS = {
:page_size => DEFAULT_PAGE_SIZE

0 comments on commit 51f08c3

Please sign in to comment.
Something went wrong with that request. Please try again.