nexus_cli 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.3
|
@@ -16,7 +16,7 @@ module NexusCli
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def nexus
|
19
|
-
|
19
|
+
RestClient::Resource.new configuration["url"], :user => configuration["username"], :password => configuration["password"], :timeout => 1000000, :open_timeout => 1000000
|
20
20
|
end
|
21
21
|
|
22
22
|
def status
|
@@ -94,7 +94,7 @@ module NexusCli
|
|
94
94
|
docs = Array.new
|
95
95
|
parse_search_params(*params).each do |param|
|
96
96
|
begin
|
97
|
-
nexus['service/local/search/m2/freeform'].get
|
97
|
+
nexus['service/local/search/m2/freeform'].get(:params => {:p => param[0], :t => param[1], :v => param[2]}) do |response|
|
98
98
|
raise BadSearchRequestException if response.code == 400
|
99
99
|
docs.push(Nokogiri::XML(response.body).xpath("/search-results/data"))
|
100
100
|
end
|
@@ -164,13 +164,13 @@ module NexusCli
|
|
164
164
|
def enable_smart_proxy(host=nil, port=nil)
|
165
165
|
params = {:enabled => true}
|
166
166
|
params[:host] = host unless host.nil?
|
167
|
-
params[:port] = port unless port.nil?
|
167
|
+
params[:port] = port unless port.nil?
|
168
168
|
smart_proxy(params)
|
169
169
|
end
|
170
170
|
|
171
171
|
def disable_smart_proxy
|
172
172
|
params = {:enabled => false}
|
173
|
-
smart_proxy(params)
|
173
|
+
smart_proxy(params)
|
174
174
|
end
|
175
175
|
|
176
176
|
def smart_proxy(params)
|
@@ -210,7 +210,7 @@ module NexusCli
|
|
210
210
|
case response.code
|
211
211
|
when 204
|
212
212
|
return true
|
213
|
-
else
|
213
|
+
else
|
214
214
|
raise UnexpectedStatusCodeException.new(response.code)
|
215
215
|
end
|
216
216
|
end
|
@@ -264,7 +264,7 @@ module NexusCli
|
|
264
264
|
def create_pub_sub_json(params)
|
265
265
|
JSON.dump(:data => params)
|
266
266
|
end
|
267
|
-
|
267
|
+
|
268
268
|
def parse_update_params(*params)
|
269
269
|
begin
|
270
270
|
parsed_params = Hash.new
|
@@ -16,7 +16,7 @@ module NexusCli
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def nexus
|
19
|
-
|
19
|
+
RestClient::Resource.new configuration["url"], :user => configuration["username"], :password => configuration["password"]
|
20
20
|
end
|
21
21
|
|
22
22
|
def status
|
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.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -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: 1504590789206713809
|
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: 1504590789206713809
|
265
265
|
requirements: []
|
266
266
|
rubyforge_project:
|
267
267
|
rubygems_version: 1.8.21
|