naether 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/naether.rb +28 -2
- data/lib/naether/bootstrap.rb +0 -2
- data/{naether-0.8.1.jar → naether-0.8.2.jar} +0 -0
- data/pom.xml +1 -1
- metadata +72 -86
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.2
|
data/lib/naether.rb
CHANGED
@@ -259,6 +259,32 @@ class Naether
|
|
259
259
|
end
|
260
260
|
|
261
261
|
end
|
262
|
+
|
263
|
+
def download_artifacts( notations )
|
264
|
+
if( notations.is_a? String )
|
265
|
+
notations = [notations]
|
266
|
+
end
|
267
|
+
|
268
|
+
files = nil
|
269
|
+
if Naether.platform == 'java'
|
270
|
+
files = @resolver.downloadArtifacts( notations )
|
271
|
+
else
|
272
|
+
list = Rjb::import("java.util.ArrayList").new
|
273
|
+
notations.each do |notation|
|
274
|
+
list.add( notation )
|
275
|
+
end
|
276
|
+
|
277
|
+
files = @resolver._invoke('downloadArtifacts', 'Ljava.util.List;', list)
|
278
|
+
end
|
279
|
+
|
280
|
+
paths = []
|
281
|
+
Naether::Java.convert_to_ruby_array(files).each do |file|
|
282
|
+
paths << file.getAbsolutePath();
|
283
|
+
end
|
284
|
+
|
285
|
+
paths
|
286
|
+
end
|
287
|
+
|
262
288
|
|
263
289
|
# Deploy artifact to remote repo url
|
264
290
|
def deploy_artifact( notation, file_path, url, opts = {} )
|
@@ -333,8 +359,8 @@ class Naether
|
|
333
359
|
@project_instance = Naether::Java.create("com.slackworks.naether.maven.Project")
|
334
360
|
@project_instance.setProjectNotation( notation )
|
335
361
|
|
336
|
-
dependencies().each do |
|
337
|
-
@project_instance.addDependency(
|
362
|
+
dependencies().each do |dep|
|
363
|
+
@project_instance.addDependency( dep )
|
338
364
|
end
|
339
365
|
|
340
366
|
@project_instance.toXml()
|
data/lib/naether/bootstrap.rb
CHANGED
Binary file
|
data/pom.xml
CHANGED
metadata
CHANGED
@@ -1,96 +1,88 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: naether
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 1
|
10
|
-
version: 0.8.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Michael Guymon
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2012-08-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rjb
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 29
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 3
|
31
|
-
- 3
|
18
|
+
requirements:
|
19
|
+
- - '='
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 1.3.3
|
33
22
|
type: :runtime
|
34
|
-
name: rjb
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - '='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.3.3
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 43
|
44
|
-
segments:
|
45
|
-
- 2
|
46
|
-
- 9
|
47
|
-
- 0
|
34
|
+
requirements:
|
35
|
+
- - '='
|
36
|
+
- !ruby/object:Gem::Version
|
48
37
|
version: 2.9.0
|
49
38
|
type: :development
|
50
|
-
name: rspec
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
39
|
prerelease: false
|
54
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - '='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.9.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bundler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
55
49
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
hash: 23
|
60
|
-
segments:
|
61
|
-
- 1
|
62
|
-
- 0
|
63
|
-
- 0
|
50
|
+
requirements:
|
51
|
+
- - ! '>'
|
52
|
+
- !ruby/object:Gem::Version
|
64
53
|
version: 1.0.0
|
65
54
|
type: :development
|
66
|
-
name: bundler
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
55
|
prerelease: false
|
70
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
57
|
none: false
|
72
|
-
requirements:
|
73
|
-
- -
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
58
|
+
requirements:
|
59
|
+
- - ! '>'
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.0.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: jeweler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>'
|
68
|
+
- !ruby/object:Gem::Version
|
80
69
|
version: 1.5.2
|
81
70
|
type: :development
|
82
|
-
|
83
|
-
version_requirements:
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>'
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.5.2
|
84
78
|
description: Java dependency resolver using Maven's Aether
|
85
79
|
email: michael.guymon@gmail.com
|
86
80
|
executables: []
|
87
|
-
|
88
81
|
extensions: []
|
89
|
-
|
90
|
-
extra_rdoc_files:
|
82
|
+
extra_rdoc_files:
|
91
83
|
- LICENSE
|
92
84
|
- README.rdoc
|
93
|
-
files:
|
85
|
+
files:
|
94
86
|
- LICENSE
|
95
87
|
- README.rdoc
|
96
88
|
- VERSION
|
@@ -98,40 +90,34 @@ files:
|
|
98
90
|
- lib/naether.rb
|
99
91
|
- lib/naether/bootstrap.rb
|
100
92
|
- lib/naether/java.rb
|
101
|
-
- naether-0.8.
|
93
|
+
- naether-0.8.2.jar
|
102
94
|
- pom.xml
|
103
95
|
homepage: http://github.com/mguymon/naether
|
104
|
-
licenses:
|
96
|
+
licenses:
|
105
97
|
- Apache
|
106
98
|
post_install_message:
|
107
99
|
rdoc_options: []
|
108
|
-
|
109
|
-
require_paths:
|
100
|
+
require_paths:
|
110
101
|
- lib
|
111
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
103
|
none: false
|
113
|
-
requirements:
|
114
|
-
- -
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
|
117
|
-
segments:
|
104
|
+
requirements:
|
105
|
+
- - ! '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
segments:
|
118
109
|
- 0
|
119
|
-
|
120
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
hash: -1732258374247833448
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
112
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
segments:
|
127
|
-
- 0
|
128
|
-
version: "0"
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
129
117
|
requirements: []
|
130
|
-
|
131
118
|
rubyforge_project: naether
|
132
119
|
rubygems_version: 1.8.24
|
133
120
|
signing_key:
|
134
121
|
specification_version: 3
|
135
122
|
summary: Java dependency resolver using Maven's Aether
|
136
123
|
test_files: []
|
137
|
-
|