digicert-cli 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1abbf50c6b8d9282270e6a7d0ac3612697960bad830a6e501e69f79a083a6306
4
- data.tar.gz: a514f1d0cb523933312bae6ba79271ecda52037ef2f2cfb280ecda7e59c67dfb
3
+ metadata.gz: 0adb697cdcd78788018dc606d1365cdc841d4c81ae3510290e38bc296eb352a5
4
+ data.tar.gz: a5fb86a8587581a5656d51cb1d3bfa65ce57a5502ae036fcd4be354a8d94854e
5
5
  SHA512:
6
- metadata.gz: f629804e272191fd80d25fa901d8bb7aac958f2d7cf71589081b8e16cf5271916eb3d6d24362f6d0b766cf3e970af342255c559352548c61415c63c612ad203f
7
- data.tar.gz: 8bd04d42035fe1acce5871813e23e8b085f23e415303ace19261787522dad5c7e9673215eb1e94fee637331d1a56f88ca9cce30ad19e24d9ea2d26f14f36ad81
6
+ metadata.gz: a3272cd9e39ddcb76f86fde4bb0948d92e36364a4e775b64b7907497bdf29aa9ed3cb6ae8df2a6693ee81bd7f19534011689238f40ec0f9cd1b087c781ba8560
7
+ data.tar.gz: 48cebe946301f2801e4c405c41be1a394740bb7dac3b388e9b958e357d1b8c76b75da4cba7cb3ae7a1caa16ad30b10ea5449f319aa3348d4bda19ff3d790c326
@@ -1,3 +1,8 @@
1
+ ## 0.5.1 (2019-06-29)
2
+
3
+ * Fix invalid table width argument issue
4
+ * Gracefully handle invalid API requests
5
+
1
6
  ## 0.5.0 (2019-03-14)
2
7
 
3
8
  * Change CSR's Order Id to be optional
@@ -33,8 +33,13 @@ module Digicert
33
33
  module CLI
34
34
  def self.start(arguments)
35
35
  Digicert::CLI::Util.run(arguments)
36
+
37
+ rescue Digicert::Errors::RequestError => error
38
+ Digicert::CLI::Util.say(
39
+ "A request to Digicert API failed\nError: #{error}",
40
+ )
36
41
  rescue Digicert::Errors::Forbidden, NoMethodError
37
- Thor::Shell::Basic.new.say(
42
+ Digicert::CLI::Util.say(
38
43
  "Invalid: Missing API KEY\n\n" \
39
44
  "A valid Digicert API key is required for any of the CLI operation\n" \
40
45
  "You can set your API Key using `digicert config api-key YOUR_API_KEY`",
@@ -65,7 +65,6 @@ module Digicert
65
65
  end
66
66
 
67
67
  Digicert::CLI::Util.make_it_pretty(
68
- table_wdith: 100,
69
68
  rows: certificates_attributes,
70
69
  headings: ["Id", "Common Name", "SAN Names", "Status", "Validity"],
71
70
  )
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Digicert
24
24
  module CLI
25
- VERSION = "0.5.0".freeze
25
+ VERSION = "0.5.1".freeze
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digicert-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-14 00:00:00.000000000 Z
11
+ date: 2019-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -218,8 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
220
  requirements: []
221
- rubyforge_project:
222
- rubygems_version: 2.7.3
221
+ rubygems_version: 3.0.3
223
222
  signing_key:
224
223
  specification_version: 4
225
224
  summary: The CLI for digicert API