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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f6e3a83759d0f8ffff031d9d1125c5c436563cf331658faaf04ccfee7ece84c
4
- data.tar.gz: 00063cc74e3d8738da1dc175e4091c1b30942ad03cc7b3e268dddbbebbe2a9dd
3
+ metadata.gz: a0f26e46b8d952ceba7edcf549dfe334251f746c0968db1c6ceb8c664819c6b0
4
+ data.tar.gz: 062b5e894343eb8034f621f0a7837d50752594de1cccd5e79a5c67fd37f3b717
5
5
  SHA512:
6
- metadata.gz: 16e8643ced13965e6b697d74b902f106b43902fcb8ef46d49ed48ed95cceb6c43ba6eb789901ebf86c1da23245b38d12d79f7e5ce6562837977a128ead67e7e8
7
- data.tar.gz: 76d19505e343c156f2ee0cd40b85303225fa9af85f3b20fea42e5d472e13146bd0854843f1a5706e29b01d207f0c070bd32e429d446f8994223bae2820eae642
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.1)
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
@@ -1,4 +1,4 @@
1
1
  module NexusAPI
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
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.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Levesque