Skip to content
Browse files

Add a way to programmatically get the current version

  • Loading branch information...
1 parent 0094e60 commit 3f7626c70f08a59ccbc53ac24c7acd803369b935 @mcmire mcmire committed
Showing with 7 additions and 0 deletions.
  1. +2 −0 lib/rr.rb
  2. +5 −0 lib/rr/version.rb
View
2 lib/rr.rb
@@ -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
View
5 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.
Something went wrong with that request. Please try again.