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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +2 -2
- data/lib/endpoints/staging.rb +5 -2
- data/lib/nexus_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f04df8459ef2419a7016b5dc3846ba6befebf51ba6440909e800c18a61feef38
|
4
|
+
data.tar.gz: 9577d72f80e3deff168266bc58544c466699f492634ccd5c225dd140ef01848b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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)
|
data/lib/endpoints/staging.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/nexus_api/version.rb
CHANGED