naether 0.5.8 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 8
10
- version: 0.5.8
9
+ - 9
10
+ version: 0.5.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Guymon
@@ -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.7.jar
101
+ - naether-0.5.9.jar
102
102
  - pom.xml
103
103
  homepage: http://github.com/mguymon/naether
104
104
  licenses: