naether 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.9
1
+ 0.5.10
data/lib/naether.rb CHANGED
@@ -12,7 +12,18 @@ class Naether
12
12
 
13
13
  # Naether jar path will default to packaged in the gem
14
14
  JAR_LIB = "#{File.dirname(__FILE__)}/.."
15
- JAR_PATH = "#{JAR_LIB}/naether-0.5.9.jar" #XXX: hardcoded, should be based on VERSION file
15
+
16
+ # Load VERSION file to VERSION var
17
+ if File.exists?( File.join( JAR_LIB, "VERSION" ) )
18
+ VERSION = File.open( File.join( JAR_LIB, "VERSION" ) ) {|f| f.readline }.strip
19
+
20
+ # VERSION file not found in gem dir, assume running from checkout
21
+ else
22
+ VERSION = File.open( "VERSION" ) {|f| f.readline }.strip
23
+ end
24
+
25
+ # Use the VERSION to create jar file name
26
+ JAR_PATH = "#{JAR_LIB}/naether-#{VERSION}.jar"
16
27
 
17
28
  class << self
18
29
 
data/pom.xml CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <groupId>com.slackworks</groupId>
6
6
  <artifactId>naether</artifactId>
7
- <version>0.5.9</version>
7
+ <version>0.5.10</version>
8
8
  <packaging>jar</packaging>
9
9
  <name>naether</name>
10
10
  <url>https://github.com/mguymon/naether</url>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 9
10
- version: 0.5.9
9
+ - 10
10
+ version: 0.5.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Guymon
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-13 00:00:00 Z
18
+ date: 2012-02-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false
@@ -98,7 +98,7 @@ files:
98
98
  - lib/naether.rb
99
99
  - lib/naether/bootstrap.rb
100
100
  - lib/naether/java.rb
101
- - naether-0.5.9.jar
101
+ - naether-0.5.10.jar
102
102
  - pom.xml
103
103
  homepage: http://github.com/mguymon/naether
104
104
  licenses: