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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3382f6c152f0409dc4d73404f92fa97fbf18ca5d
4
- data.tar.gz: 0255ee37ab9d9d5acd917c53e0ae16b1957af7d0
3
+ metadata.gz: da4f66f56a137e90229c6974496e65b4f5d7b287
4
+ data.tar.gz: 6056957f5ef0a389cfeeb45b9c2490de36af1e5d
5
5
  SHA512:
6
- metadata.gz: e5de3ff8707ce655fa809074259c316b5f8e5069d64cb8740c1536e40579630a548d29ddce83c5423c0e5c06913fe38b173f46953d722f91a6dbdeb88afe9add
7
- data.tar.gz: 21464871d23c541fcdb4db6c39d53d85f36464b4af746fd4d4d1fe14211e6891e38153aafdc34c733194c49004596551ebda32628e698cc1f189608d07792ca9
6
+ metadata.gz: 8651186693c7f4c31a515372afe81ae1ee1bd4b9bc0e23f8870fb4428d868196381f2da8f400cad4535b4bbed6baf00cffe0cc6ab66106eb88ca73833a8ac5db
7
+ data.tar.gz: 92e0bd14b992f4d209d6bdd41381a33a64163647db5ce5ef29eefc40ced890851e5b4855206ddc8796b6c868202a71277da36344ea26a7fffce83fde023a29f9
@@ -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
- path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
222
+ full_path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
223
223
 
224
224
  file = {
225
- "path" => path.join,
226
- "repo_key" => path[0],
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
- path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
270
+ full_path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
272
271
 
273
272
  file = {
274
- "path" => path.join,
275
- "repo_key" => path[0],
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
- path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
310
+ full_path = result['uri'].scan(/\/storage\/(.+?)(\/.*)/).flatten
313
311
 
314
312
  file = {
315
- "path" => path.join,
316
- "repo_key" => path[0],
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|
@@ -3,7 +3,7 @@
3
3
  #
4
4
 
5
5
  module Artifactory
6
- VERSION = "0.0.4"
6
+ VERSION = "0.0.5"
7
7
 
8
8
  def self.version
9
9
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artifactory-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti