lib/require_bench.rb in require_bench-1.0.4.pre.alpha.7 vs lib/require_bench.rb in require_bench-1.0.4
- old
+ new
@@ -6,12 +6,15 @@
if REQUIRE_BENCH_ENABLED
require 'benchmark'
require 'timeout'
end
+# external libs
+require "version_gem"
+
# This Gem
-require 'require_bench/version'
+require_relative 'require_bench/version'
# Namespace for this gem
module RequireBench
if REQUIRE_BENCH_ENABLED
TIMINGS = Hash.new { |h, k| h[k] = 0.0 }
@@ -177,6 +180,10 @@
else
send("#{type}_without_timing", file_path, *args)
end
end
end
+end
+
+RequireBench::Version.class_eval do
+ extend VersionGem::Basic
end