nexus_api 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/nexus_api/cli_commands/tag.rb +1 -1
- data/lib/nexus_api/nexus_connection.rb +2 -1
- 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: 2379edda3e2f2845f6151d103bab5ddb73431fab4a32c1a8509f02348848fc81
|
4
|
+
data.tar.gz: 787df5287d2626911972936c63686482b7a4eee20043a23d8fa505cdfb4f5b90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6693a438c77406ca6a4b38cf57f55c24f6c590a0f4897bba86c34af20521f88a0a3db7cc18ff10aa200e85929849dc648bdc8a46769d97457df4447cdb35a26
|
7
|
+
data.tar.gz: 8feb5be1d4860e6ab89f3f061a047d6ee1bb8bd10a153ab288d8dd56866c9cfcef73da51ca734e18fae287bd559a6055434761f8c80b205a97f883531dba985e
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ 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.2.1](https://github.com/Cisco-AMP/nexus_api/compare/v1.2.0...v1.2.1) - 2020-04-29
|
9
|
+
### Fixed
|
10
|
+
- Correctly building request URLs when pagination is the only argument
|
11
|
+
- `bin/nexus_api tag list` now using pagination
|
12
|
+
|
13
|
+
|
8
14
|
## [1.2.0](https://github.com/Cisco-AMP/nexus_api/compare/v1.1.0...v1.2.0) - 2020-04-24
|
9
15
|
### Added
|
10
16
|
- `move_components_to` method for moving all components that match a given tag into a new destination
|
data/Gemfile.lock
CHANGED
@@ -31,7 +31,7 @@ module NexusAPI
|
|
31
31
|
desc 'list', 'Prints out a list of all tags'
|
32
32
|
option :full, :aliases => '-f', :desc => 'Print full JSON output'
|
33
33
|
def list
|
34
|
-
|
34
|
+
print_paginating_set(action: :list_tags, params: {}, filter: 'name')
|
35
35
|
end
|
36
36
|
|
37
37
|
desc 'remove', 'Removes a tag from an asset'
|
@@ -120,9 +120,10 @@ module NexusAPI
|
|
120
120
|
end
|
121
121
|
|
122
122
|
def send_get(endpoint, paginate, headers, api_version)
|
123
|
+
url_marker = endpoint.include?('?') ? '&' : '?'
|
123
124
|
# paginate answers is the user requesting pagination, paginate? answers does a continuation token exist
|
124
125
|
# if an empty continuation token is included in the request we'll get an ArrayIndexOutOfBoundsException
|
125
|
-
endpoint += "
|
126
|
+
endpoint += "#{url_marker}continuationToken=#{@continuation_token}" if paginate && paginate?
|
126
127
|
response = send_request(
|
127
128
|
:get,
|
128
129
|
endpoint,
|
data/lib/nexus_api/version.rb
CHANGED