awskeyring 1.9.4 → 1.9.5

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: 31da4ef422d59adf9c5963938ad2ffeaf6ca6457b5b5f8ca2fa3857290316ed3
4
- data.tar.gz: 8fd51c42d7211c456ab6300561bce071a29acdbe90dea71a2b896f631cd29f07
3
+ metadata.gz: b6ba49e965bca0b0058320cec1abfaaad640ce032c8e0307e1eb00c234de1290
4
+ data.tar.gz: 74c07eac3bf8080a776460a6466e789e6c18a31880fc619ea8ce2dca200b5d01
5
5
  SHA512:
6
- metadata.gz: 7036e99a3e9ef4d171e0c71fbfd883cb9dbe3158a0f07c3457f380016503ac4e8876121ae4b82a0fd5a8f9b4c3266581041d66fd47f7a72ac3fc201a8d0d27e8
7
- data.tar.gz: e5cb973a8903077a01bd83eda8ef3f0a00fc6ea7e42257cd3e71c8953258975b428020e0078a58c02672a1d92d1595dae5af5563647ca462f30c7f7c87554325
6
+ metadata.gz: 93fe4ab30ce3b64de1ca11f3db11253593c5aba9935bb9b766ab17121f8fd4ae931ce3ac99769ca97bb00682b13b8909092e2741e95f4aa6fdffc967edeb345a
7
+ data.tar.gz: 39ababe4689fd33f5c5600adb08646e3e42fa0a67e5e93b69d608c346d90b4628ec828e35f1646038904f9b1e4f0017ed62e756222791f24cf4ae14acd275fd2
@@ -6,7 +6,7 @@ require 'json'
6
6
  # Version const and query of latest.
7
7
  module Awskeyring
8
8
  # The Gem's version number
9
- VERSION = '1.9.4'
9
+ VERSION = '1.9.5'
10
10
  # The Gem's homepage
11
11
  HOMEPAGE = 'https://github.com/servian/awskeyring'
12
12
 
@@ -364,21 +364,16 @@ class AwskeyringCommand < Thor # rubocop:disable Metrics/ClassLength
364
364
  end
365
365
  item_hash = age_check_and_get(account: account, no_token: true)
366
366
 
367
- begin
368
- new_creds = Awskeyring::Awsapi.get_token(
369
- code: code,
370
- role_arn: (Awskeyring.get_role_arn(role_name: role) if role),
371
- duration: default_duration(options[:duration], role, code),
372
- mfa: item_hash[:mfa],
373
- key: item_hash[:key],
374
- secret: item_hash[:secret],
375
- user: ENV.fetch('USER', 'awskeyring')
376
- )
377
- Awskeyring.delete_token(account: account, message: '# Removing STS credentials')
378
- rescue Aws::Errors::ServiceError => e
379
- warn e.to_s
380
- exit 1
381
- end
367
+ new_creds = Awskeyring::Awsapi.get_token(
368
+ code: code,
369
+ role_arn: (Awskeyring.get_role_arn(role_name: role) if role),
370
+ duration: default_duration(options[:duration], role, code),
371
+ mfa: item_hash[:mfa],
372
+ key: item_hash[:key],
373
+ secret: item_hash[:secret],
374
+ user: ENV.fetch('USER', 'awskeyring')
375
+ )
376
+ Awskeyring.delete_token(account: account, message: '# Removing STS credentials')
382
377
 
383
378
  Awskeyring.add_token(
384
379
  account: account,
@@ -409,18 +404,13 @@ class AwskeyringCommand < Thor # rubocop:disable Metrics/ClassLength
409
404
 
410
405
  path = options[:path] || 'console'
411
406
 
412
- begin
413
- login_url = Awskeyring::Awsapi.get_login_url(
414
- key: cred[:key],
415
- secret: cred[:secret],
416
- token: cred[:token],
417
- path: path,
418
- user: ENV.fetch('USER', 'awskeyring')
419
- )
420
- rescue Aws::Errors::ServiceError => e
421
- warn e.to_s
422
- exit 1
423
- end
407
+ login_url = Awskeyring::Awsapi.get_login_url(
408
+ key: cred[:key],
409
+ secret: cred[:secret],
410
+ token: cred[:token],
411
+ path: path,
412
+ user: ENV.fetch('USER', 'awskeyring')
413
+ )
424
414
 
425
415
  if options['no-open']
426
416
  puts login_url
data/man/awskeyring.5 CHANGED
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "AWSKEYRING" "5" "April 2022" "" ""
4
+ .TH "AWSKEYRING" "5" "October 2022" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBAwskeyring\fR \- is a small tool to manage AWS account keys in the macOS Keychain
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awskeyring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Morgan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-22 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-iam
@@ -92,9 +92,9 @@ licenses:
92
92
  metadata:
93
93
  bug_tracker_uri: https://github.com/servian/awskeyring/issues
94
94
  changelog_uri: https://github.com/servian/awskeyring/blob/main/CHANGELOG.md
95
- documentation_uri: https://rubydoc.info/gems/awskeyring/1.9.4
95
+ documentation_uri: https://rubydoc.info/gems/awskeyring/1.9.5
96
96
  rubygems_mfa_required: 'true'
97
- source_code_uri: https://github.com/servian/awskeyring/tree/v1.9.4
97
+ source_code_uri: https://github.com/servian/awskeyring/tree/v1.9.5
98
98
  wiki_uri: https://github.com/servian/awskeyring/wiki
99
99
  post_install_message:
100
100
  rdoc_options: []