Skip to content
This repository
Browse code

Add a way to programmatically get the current version

  • Loading branch information...
commit 3f7626c70f08a59ccbc53ac24c7acd803369b935 1 parent 0094e60
Elliot Winkler authored March 15, 2013
2  lib/rr.rb
@@ -87,6 +87,8 @@
87 87
 require "#{dir}/rr/adapters/test_unit"
88 88
 require "#{dir}/rr/adapters/minitest"
89 89
 
  90
+require "#{dir}/rr/version"
  91
+
90 92
 module RR
91 93
   class << self
92 94
     include Adapters::RRMethods
5  lib/rr/version.rb
... ...
@@ -0,0 +1,5 @@
  1
+
  2
+module RR
  3
+  VERSION = File.read(File.expand_path('../../../VERSION', __FILE__))
  4
+  def self.version; VERSION; end
  5
+end

0 notes on commit 3f7626c

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