artifactory-ruby 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/artifactory/client.rb +9 -12
- data/lib/artifactory/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da4f66f56a137e90229c6974496e65b4f5d7b287
|
|
4
|
+
data.tar.gz: 6056957f5ef0a389cfeeb45b9c2490de36af1e5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8651186693c7f4c31a515372afe81ae1ee1bd4b9bc0e23f8870fb4428d868196381f2da8f400cad4535b4bbed6baf00cffe0cc6ab66106eb88ca73833a8ac5db
|
|
7
|
+
data.tar.gz: 92e0bd14b992f4d209d6bdd41381a33a64163647db5ce5ef29eefc40ced890851e5b4855206ddc8796b6c868202a71277da36344ea26a7fffce83fde023a29f9
|
data/lib/artifactory/client.rb
CHANGED
|
@@ -219,12 +219,11 @@ module Artifactory
|
|
|
219
219
|
params << "repos=#{repo_key.is_a?(Array) ? repo_key.join(',') : repo_key}"
|
|
220
220
|
|
|
221
221
|
api_get([path, params.join('&')].join('?'))['results'].each do |result|
|
|
222
|
-
|
|
222
|
+
full_path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
|
|
223
223
|
|
|
224
224
|
file = {
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"name" => path[1]
|
|
225
|
+
"repo_key" => full_path[0],
|
|
226
|
+
"path" => full_path[1]
|
|
228
227
|
}
|
|
229
228
|
|
|
230
229
|
result.each do |k, v|
|
|
@@ -268,12 +267,11 @@ module Artifactory
|
|
|
268
267
|
params << "dateFields=#{date_fields.join(',')}"
|
|
269
268
|
|
|
270
269
|
api_get([path, params.join('&')].join('?'))['results'].each do |result|
|
|
271
|
-
|
|
270
|
+
full_path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
|
|
272
271
|
|
|
273
272
|
file = {
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"name" => path[1]
|
|
273
|
+
"repo_key" => full_path[0],
|
|
274
|
+
"path" => full_path[1]
|
|
277
275
|
}
|
|
278
276
|
|
|
279
277
|
result.each do |k, v|
|
|
@@ -309,12 +307,11 @@ module Artifactory
|
|
|
309
307
|
params << "repos=#{repo_key.is_a?(Array) ? repo_key.join(',') : repo_key}"
|
|
310
308
|
|
|
311
309
|
api_get([path, params.join('&')].join('?'))['results'].each do |result|
|
|
312
|
-
|
|
310
|
+
full_path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
|
|
313
311
|
|
|
314
312
|
file = {
|
|
315
|
-
"
|
|
316
|
-
"
|
|
317
|
-
"name" => path[1]
|
|
313
|
+
"repo_key" => full_path[0],
|
|
314
|
+
"path" => full_path[1]
|
|
318
315
|
}
|
|
319
316
|
|
|
320
317
|
result.each do |k, v|
|
data/lib/artifactory/version.rb
CHANGED