Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a way to programmatically get the current version

  • Loading branch information...
commit 3f7626c70f08a59ccbc53ac24c7acd803369b935 1 parent 0094e60
@mcmire mcmire authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.