Skip to content

Commit

Permalink
Add a way to programmatically get the current version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Mar 15, 2013
1 parent 0094e60 commit 3f7626c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rr.rb
Expand Up @@ -87,6 +87,8 @@
require "#{dir}/rr/adapters/test_unit"
require "#{dir}/rr/adapters/minitest"

require "#{dir}/rr/version"

module RR
class << self
include Adapters::RRMethods
Expand Down
5 changes: 5 additions & 0 deletions lib/rr/version.rb
@@ -0,0 +1,5 @@

module RR
VERSION = File.read(File.expand_path('../../../VERSION', __FILE__))
def self.version; VERSION; end
end

0 comments on commit 3f7626c

Please sign in to comment.