lib/queencheck.rb in queencheck-0.0.1 vs lib/queencheck.rb in queencheck-0.0.2
- old
+ new
@@ -1,10 +1,17 @@
-$:.unshift File.dirname(__FILE__)
+require "pathname"
+$:.unshift Pathname.new(File.expand_path('../', __FILE__))
require 'queencheck/core'
require 'queencheck/arbitrary'
require 'queencheck/integer'
require 'queencheck/float'
require 'queencheck/boolean'
require 'queencheck/array'
require 'queencheck/string'
+
+module QueenCheck
+ unless defined? Version
+ Version = `cat #{Pathname.new(File.expand_path('../../', __FILE__))}/VERSION`.strip
+ end
+end