naether 0.8.3-java → 0.8.4-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/naether.rb +7 -7
  3. data/naether-0.8.3.jar +0 -0
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.3
1
+ 0.8.4
data/lib/naether.rb CHANGED
@@ -79,6 +79,10 @@ class Naether
79
79
  Naether::Java.convert_to_ruby_array(@resolver.getRemoteRepositories())
80
80
  end
81
81
 
82
+ def remote_repository_urls
83
+ Naether::Java.convert_to_ruby_array(@resolver.getRemoteRepositoryUrls(), true)
84
+ end
85
+
82
86
  # Path to local maven repo
83
87
  def local_repo_path
84
88
  @resolver.getLocalRepoPath()
@@ -340,7 +344,7 @@ class Naether
340
344
 
341
345
  end
342
346
 
343
- @project_instance.getRepositoryUrls().each do |url|
347
+ Naether::Java.convert_to_ruby_array(@project_instance.getRepositoryUrls()).each do |url|
344
348
  add_remote_repository( url )
345
349
  end
346
350
 
@@ -365,9 +369,7 @@ class Naether
365
369
 
366
370
  @project_instance.setRepositories( @resolver.getRemoteRepositoryUrls() )
367
371
 
368
- dependencies().each do |dep|
369
- @project_instance.addDependency( dep )
370
- end
372
+ @project_instance.setDependencies( @resolver.getDependencies() )
371
373
 
372
374
  @project_instance.toXml()
373
375
 
@@ -381,9 +383,7 @@ class Naether
381
383
  @project_instance = Naether::Java.create("com.slackworks.naether.maven.Project")
382
384
  @project_instance.setProjectNotation( notation )
383
385
 
384
- dependencies().each do |notation|
385
- @project_instance.addDependency( notation )
386
- end
386
+ @project_instance.setDependencies( @resolver.getDependencies() )
387
387
 
388
388
  @project_instance.writePom( file_path )
389
389
 
data/naether-0.8.3.jar CHANGED
Binary file
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: naether
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.3
5
+ version: 0.8.4
6
6
  platform: java
7
7
  authors:
8
8
  - Michael Guymon
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-08-25 00:00:00 Z
13
+ date: 2012-08-26 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec