Browse files

Fix loading outside of rubygems

  • Loading branch information...
1 parent 9565d91 commit 729ce63966743daf710b97559df92b5cdd0850ef @pangloss committed Sep 20, 2012
Showing with 8 additions and 3 deletions.
  1. +6 −1 lib/pacer-dex.rb
  2. +1 −1 lib/pacer-dex/version.rb
  3. +1 −1 pom.xml
View
7 lib/pacer-dex.rb
@@ -1,6 +1,11 @@
+require 'pacer' unless defined? Pacer
+
+lib_path = File.expand_path(File.join(File.dirname(__FILE__), '../lib'))
+$:.unshift lib_path unless $:.any? { |path| path == lib_path }
+
require 'pacer-dex/version'
+
if Pacer::Dex::ENABLED
- require 'pacer'
require Pacer::Dex::JAR
require 'pacer-dex/graph'
View
2 lib/pacer-dex/version.rb
@@ -4,7 +4,7 @@ module Dex
if not defined? ENABLED
ENABLED = ENV_JAVA['java.runtime.version'] =~ /^1\.6\./
end
- VERSION = "2.0.0"
+ VERSION = "2.0.1"
JAR = "pacer-dex-#{ VERSION }-standalone.jar"
JAR_PATH = "lib/#{ JAR }"
BLUEPRINTS_VERSION = "2.1.0"
View
2 pom.xml
@@ -7,7 +7,7 @@
<artifactId>pacer-dex</artifactId>
<!-- NOTE: the following properties are automatically updated based on the values in lib/pacer-neo4j/version.rb -->
<properties>
- <gem.version>2.0.0</gem.version>
+ <gem.version>2.0.1</gem.version>
<blueprints.version>2.1.0</blueprints.version>
<pipes.version>2.1.0</pipes.version>
</properties>

0 comments on commit 729ce63

Please sign in to comment.