naether 0.3.3 → 0.3.4
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 +24 -5
- data/naether-0.3.1.jar +0 -0
- metadata +9 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/lib/naether.rb
CHANGED
@@ -89,7 +89,7 @@ class Naether
|
|
89
89
|
@resolver.addDependency( notation, scope )
|
90
90
|
end
|
91
91
|
|
92
|
-
# Add a dependency
|
92
|
+
# Add a dependency Java object
|
93
93
|
def add_dependency( dependency )
|
94
94
|
#@resolver.addDependency( dependency )
|
95
95
|
if Naether.platform == 'java'
|
@@ -140,11 +140,12 @@ class Naether
|
|
140
140
|
dependenciesNotation
|
141
141
|
end
|
142
142
|
|
143
|
+
# Deploy artifact to remote repo url
|
143
144
|
def deploy_artifact( notation, file_path, url, opts = {} )
|
144
145
|
if Naether.platform == 'java'
|
145
|
-
@instance = com.slackworks.naether.DeployArtifact.new
|
146
|
+
@instance = com.slackworks.naether.deploy.DeployArtifact.new
|
146
147
|
else
|
147
|
-
deployArtifactClass = Rjb::import('com.slackworks.naether.DeployArtifact')
|
148
|
+
deployArtifactClass = Rjb::import('com.slackworks.naether.deploy.DeployArtifact')
|
148
149
|
@instance = deployArtifactClass.new
|
149
150
|
end
|
150
151
|
|
@@ -162,15 +163,33 @@ class Naether
|
|
162
163
|
@resolver.deployArtifact(@instance)
|
163
164
|
end
|
164
165
|
|
166
|
+
# Install artifact to local repo
|
167
|
+
def install_artifact( notation, file_path, opts = {} )
|
168
|
+
if Naether.platform == 'java'
|
169
|
+
@instance = com.slackworks.naether.deploy.DeployArtifact.new
|
170
|
+
else
|
171
|
+
deployArtifactClass = Rjb::import('com.slackworks.naether.deploy.DeployArtifact')
|
172
|
+
@instance = deployArtifactClass.new
|
173
|
+
end
|
174
|
+
|
175
|
+
@instance.setNotation( notation )
|
176
|
+
@instance.setFilePath( file_path )
|
177
|
+
if opts[:pom_path]
|
178
|
+
@instance.setPomPath( opts[:pom_path] )
|
179
|
+
end
|
180
|
+
|
181
|
+
@resolver.installArtifact(@instance)
|
182
|
+
end
|
183
|
+
|
165
184
|
# filePath to write the pom
|
166
185
|
# notation of the pom, groupId:artifactId:type:version
|
167
186
|
#
|
168
187
|
# loads all resolved dependencies into pom
|
169
188
|
def write_pom( notation, file_path )
|
170
189
|
if Naether.platform == 'java'
|
171
|
-
@project_instance = com.slackworks.naether.
|
190
|
+
@project_instance = com.slackworks.naether.maven.Project.new
|
172
191
|
else
|
173
|
-
projectClass = Rjb::import('com.slackworks.naether.
|
192
|
+
projectClass = Rjb::import('com.slackworks.naether.maven.Project')
|
174
193
|
@project_instance = projectClass.new
|
175
194
|
end
|
176
195
|
|
data/naether-0.3.1.jar
CHANGED
Binary file
|
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Guymon
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-30 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -40,14 +40,14 @@ dependencies:
|
|
40
40
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - "="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 11
|
46
46
|
segments:
|
47
|
+
- 2
|
47
48
|
- 1
|
48
|
-
-
|
49
|
-
|
50
|
-
version: 1.3.1
|
49
|
+
- 0
|
50
|
+
version: 2.1.0
|
51
51
|
requirement: *id002
|
52
52
|
type: :development
|
53
53
|
- !ruby/object:Gem::Dependency
|