nexus_api 1.0.1 → 1.0.2
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/nexus_api/cli.rb +7 -0
- 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: a0f26e46b8d952ceba7edcf549dfe334251f746c0968db1c6ceb8c664819c6b0
|
4
|
+
data.tar.gz: 062b5e894343eb8034f621f0a7837d50752594de1cccd5e79a5c67fd37f3b717
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9604cb6ec57506bd53de6671025883aeeccf79be94d8005ca034482367a56b2d577128c561dbf8befa325def03753e65002f6ecfeed2187c82cea9f07ad9d42b
|
7
|
+
data.tar.gz: f2599132bf37678f7cdc9a8e78cef4f48558727be9f32bc96c34ef3106034af52352fa310d421d12b7a2f44f39c36de8ab7ea9e1476d25ebe84c96e7e191d875
|
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.0.2](https://github.com/Cisco-AMP/nexus_api/compare/v1.0.1...v1.0.2) - 2020-02-27
|
9
|
+
### Added
|
10
|
+
- Ability to print the gem version on the CLI with `version`, `--version`, or `-v`
|
11
|
+
|
12
|
+
|
8
13
|
## [1.0.1](https://github.com/Cisco-AMP/nexus_api/compare/v1.0.0...v1.0.1) - 2020-01-15
|
9
14
|
### Security
|
10
15
|
- Use `excon` version `0.71.1` to avoid a [low severity vulnerability](https://github.com/excon/excon/security/advisories/GHSA-q58g-455p-8vw9)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nexus_api (1.0.
|
4
|
+
nexus_api (1.0.2)
|
5
5
|
bundler (~> 2)
|
6
6
|
docker-api (~> 1.34.2)
|
7
7
|
dotenv (~> 2.7.5)
|
@@ -11,7 +11,7 @@ PATH
|
|
11
11
|
thor (~> 0.20.3)
|
12
12
|
|
13
13
|
GEM
|
14
|
-
remote: https://rubygems.org
|
14
|
+
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
16
|
coderay (1.1.2)
|
17
17
|
diff-lcs (1.3)
|
data/lib/nexus_api/cli.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'nexus_api/cli_utils'
|
3
3
|
require 'nexus_api/cli_commands/commands'
|
4
|
+
require 'nexus_api/version'
|
4
5
|
|
5
6
|
module NexusAPI
|
6
7
|
class CLI < ::Thor
|
@@ -25,5 +26,11 @@ module NexusAPI
|
|
25
26
|
|
26
27
|
desc 'upload FORMAT', 'Upload a FORMAT type file'
|
27
28
|
subcommand 'upload', Upload
|
29
|
+
|
30
|
+
map %w[--version -v] => :version
|
31
|
+
desc 'version, --version, -v', 'Prints out current gem version'
|
32
|
+
def version
|
33
|
+
puts NexusAPI::VERSION
|
34
|
+
end
|
28
35
|
end
|
29
36
|
end
|
data/lib/nexus_api/version.rb
CHANGED