nexus_cli 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/nexus_cli/nexus_oss_remote.rb +3 -4
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
@@ -133,7 +133,6 @@ module NexusCli
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def create_repository(name, proxy, url)
|
136
|
-
|
137
136
|
json = if proxy
|
138
137
|
create_proxy_repository_json(name, url)
|
139
138
|
else
|
@@ -166,7 +165,7 @@ module NexusCli
|
|
166
165
|
|
167
166
|
def get_repository_info(name)
|
168
167
|
begin
|
169
|
-
nexus["service/local/repositories/#{name.downcase}"].get
|
168
|
+
nexus["service/local/repositories/#{name.gsub(" ", "_").downcase}"].get
|
170
169
|
rescue Errno::ECONNREFUSED => e
|
171
170
|
raise CouldNotConnectToNexusException
|
172
171
|
rescue RestClient::ResourceNotFound => e
|
@@ -282,7 +281,7 @@ module NexusCli
|
|
282
281
|
params[:repoType] = "hosted"
|
283
282
|
params[:repoPolicy] = "RELEASE"
|
284
283
|
params[:name] = name
|
285
|
-
params[:id] = name.downcase
|
284
|
+
params[:id] = name.gsub(" ", "_").downcase
|
286
285
|
params[:format] = "maven2"
|
287
286
|
JSON.dump(:data => params)
|
288
287
|
end
|
@@ -298,7 +297,7 @@ module NexusCli
|
|
298
297
|
params[:downloadRemoteIndexes] = true
|
299
298
|
params[:autoBlockActive] = true
|
300
299
|
params[:name] = name
|
301
|
-
params[:id] = name.downcase
|
300
|
+
params[:id] = name.gsub(" ", "_").downcase
|
302
301
|
params[:remoteStorage] = {:remoteStorageUrl => url.nil? ? "http://change-me.com/" : url}
|
303
302
|
JSON.dump(:data => params)
|
304
303
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexus_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -252,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
segments:
|
254
254
|
- 0
|
255
|
-
hash:
|
255
|
+
hash: -102862049208592148
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
257
|
none: false
|
258
258
|
requirements:
|
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: '0'
|
262
262
|
segments:
|
263
263
|
- 0
|
264
|
-
hash:
|
264
|
+
hash: -102862049208592148
|
265
265
|
requirements: []
|
266
266
|
rubyforge_project:
|
267
267
|
rubygems_version: 1.8.21
|