nexus_api 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2379edda3e2f2845f6151d103bab5ddb73431fab4a32c1a8509f02348848fc81
4
- data.tar.gz: 787df5287d2626911972936c63686482b7a4eee20043a23d8fa505cdfb4f5b90
3
+ metadata.gz: f04df8459ef2419a7016b5dc3846ba6befebf51ba6440909e800c18a61feef38
4
+ data.tar.gz: 9577d72f80e3deff168266bc58544c466699f492634ccd5c225dd140ef01848b
5
5
  SHA512:
6
- metadata.gz: a6693a438c77406ca6a4b38cf57f55c24f6c590a0f4897bba86c34af20521f88a0a3db7cc18ff10aa200e85929849dc648bdc8a46769d97457df4447cdb35a26
7
- data.tar.gz: 8feb5be1d4860e6ab89f3f061a047d6ee1bb8bd10a153ab288d8dd56866c9cfcef73da51ca734e18fae287bd559a6055434761f8c80b205a97f883531dba985e
6
+ metadata.gz: f9f0944af34bcd1ef181fef60daaef5ff7c8f804b3ecfff9ecc12c6eb38ff42cc1afae192501ad427f3d8d5f751254e5c8815f039e809cac409c64c6cc85071d
7
+ data.tar.gz: d27cf15a296d562548e3021c5f68ff2919ee15fd8d8dbedbf56cfee57c29caeb7d8d0c9a3c9f0ebfcd9cea535ab0b96a1e18acdf24e2fb70dafdd85e80c2801e
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
 
8
+ ## [1.3.0](https://github.com/Cisco-AMP/nexus_api/compare/v1.2.1...v1.3.0) - 2020-04-30
9
+ ### Added
10
+ - Optional source and general keyword match into staging endpoint method (`move_components_to()`)
11
+
12
+
8
13
  ## [1.2.1](https://github.com/Cisco-AMP/nexus_api/compare/v1.2.0...v1.2.1) - 2020-04-29
9
14
  ### Fixed
10
15
  - Correctly building request URLs when pagination is the only argument
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nexus_api (1.2.1)
4
+ nexus_api (1.3.0)
5
5
  bundler (~> 2)
6
6
  docker-api (~> 1.34.2)
7
7
  dotenv (~> 2.7.5)
@@ -34,7 +34,7 @@ GEM
34
34
  method_source (0.9.2)
35
35
  mime-types (3.3.1)
36
36
  mime-types-data (~> 3.2015)
37
- mime-types-data (3.2019.1009)
37
+ mime-types-data (3.2020.0425)
38
38
  multi_json (1.14.1)
39
39
  netrc (0.11.0)
40
40
  pry (0.12.2)
@@ -2,8 +2,11 @@ module NexusAPI
2
2
  class API
3
3
  # POST /service/rest/v1/staging/delete
4
4
  # POST /service/rest/v1/staging/move/{destination}
5
- def move_components_to(destination:, tag:)
6
- @connection.post(endpoint: "staging/move/#{destination}?tag=#{tag}")
5
+ def move_components_to(destination:, tag:, source: nil, keyword: nil)
6
+ endpoint = "staging/move/#{destination}?tag=#{tag}"
7
+ endpoint += "&repository=#{source}" unless source.nil?
8
+ endpoint += "&q=#{keyword}" unless keyword.nil?
9
+ @connection.post(endpoint: endpoint)
7
10
  end
8
11
  end
9
12
  end
@@ -1,4 +1,4 @@
1
1
  module NexusAPI
2
- VERSION = '1.2.1'
2
+ VERSION = '1.3.0'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Levesque