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 +1 -1
- data/lib/naether.rb +13 -2
- data/{naether-0.5.7.jar → naether-0.5.9.jar} +0 -0
- data/pom.xml +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
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.
|
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
|
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
|
Binary file
|
data/pom.xml
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: naether
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
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.
|
77
|
+
- naether-0.5.9.jar
|
78
78
|
- pom.xml
|
79
79
|
has_rdoc: true
|
80
80
|
homepage: http://github.com/mguymon/naether
|