Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix relative path of version to gem install dir
  • Loading branch information
mguymon committed Sep 3, 2012
1 parent 2cd580c commit 0fcda20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -4,7 +4,7 @@

<groupId>com.tobedevoured</groupId>
<artifactId>solr_sail</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
<packaging>jar</packaging>

<name>Solr Sail</name>
Expand Down
6 changes: 3 additions & 3 deletions src/main/ruby/solr_sail/version.rb
@@ -1,8 +1,8 @@
module SolrSail

# Load VERSION file to VERSION var
if File.exists?( File.expand_path("#{File.dirname(__FILE__)}/../VERSION") )
VERSION = IO.read(File.expand_path("#{File.dirname(__FILE__)}/../VERSION")).strip
# Load VERSION file from gem to VERSION var
if File.exists?( File.expand_path("#{File.dirname(__FILE__)}/../../VERSION") )
VERSION = IO.read(File.expand_path("#{File.dirname(__FILE__)}/../../VERSION")).strip

# VERSION file not found in gem dir, assume running from checkout
else
Expand Down

0 comments on commit 0fcda20

Please sign in to comment.