naether 0.5.8-java → 0.5.9-java

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.8
1
+ 0.5.9
data/lib/naether.rb CHANGED
@@ -12,7 +12,7 @@ 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.7.jar" #XXX: hardcoded, should be based on VERSION file
15
+ JAR_PATH = "#{JAR_LIB}/naether-0.5.9.jar" #XXX: hardcoded, should be based on VERSION file
16
16
 
17
17
  class << self
18
18
 
@@ -200,7 +200,18 @@ class Naether
200
200
  end
201
201
 
202
202
  def to_local_paths( notations )
203
- Naether::Java.convert_to_ruby_array( @resolver.getLocalPaths( notations ) )
203
+ if Naether.platform == 'java'
204
+ Naether::Java.convert_to_ruby_array( @resolver.getLocalPaths( notations ) )
205
+ else
206
+ list = Rjb::import("java.util.ArrayList").new
207
+ notations.each do |notation|
208
+ list.add( notation )
209
+ end
210
+ paths = @resolver._invoke('getLocalPaths', 'Ljava.util.List;', list)
211
+
212
+ Naether::Java.convert_to_ruby_array( paths, true )
213
+ end
214
+
204
215
  end
205
216
 
206
217
  # Deploy artifact to remote repo url
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.7</version>
7
+ <version>0.5.9</version>
8
8
  <packaging>jar</packaging>
9
9
  <name>naether</name>
10
10
  <url>https://github.com/mguymon/naether</url>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.8
5
+ version: 0.5.9
6
6
  platform: java
7
7
  authors:
8
8
  - Michael Guymon
@@ -74,7 +74,7 @@ files:
74
74
  - lib/naether.rb
75
75
  - lib/naether/bootstrap.rb
76
76
  - lib/naether/java.rb
77
- - naether-0.5.7.jar
77
+ - naether-0.5.9.jar
78
78
  - pom.xml
79
79
  has_rdoc: true
80
80
  homepage: http://github.com/mguymon/naether