awskeyring 1.8.0 → 1.8.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: b48c06baceecbcec6e2b949d0985d8e67b788988385545a0c5c93ef1b355728d
4
- data.tar.gz: 5409309869822c30497465a753a40e1717a3cee31f040ad80e287c71bbc2ae50
3
+ metadata.gz: 6f414457dbb053f2bbe8fde789ee2238ed11d3554576bfbd67ff52c84697eb5b
4
+ data.tar.gz: 70766a2e47f57dccd562a604d278bfa248b6133b7aa5f6f6a0c697bd2fd09cdc
5
5
  SHA512:
6
- metadata.gz: 202db6a54856b8365246994f5a814b657d4b6f4912d170c80cf979d2bd4818d4a58150daf737a2f3085ebb8b4ad39788e92de809b6fbe0dea59315d4abed1717
7
- data.tar.gz: 70e3cb77196023d67bd60e5b4b9afc6ddfdbac4b2f5a89610ed5f068e97e604e5884a29c30ae0ec7be3c73f3ad77e613e7f9e957d9ef1e84393a30e6fe55080b
6
+ metadata.gz: 6a14c818ec8f52ad3b0520d779c047eb2523252d9ebc032005571ed347fe3a66f3015e7cc5f7f64a0ff36845ea4c7232e5c70f64da171b5e489bc01b1be6b525
7
+ data.tar.gz: bbd9103d268378c1901097854df9880d6b5dc32843feb24e654faff26d8dfd8952862cfb48c492c290cd88b87ee6897c4ad8a8f1407dc0c22a8207b32f1c34d3
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.8.1](https://github.com/servian/awskeyring/tree/v1.8.1) (2021-01-20)
4
+
5
+ [Full Changelog](https://github.com/servian/awskeyring/compare/v1.8.0...v1.8.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Update command failed. [\#75](https://github.com/servian/awskeyring/issues/75)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Default nil token \(fix \#75\) [\#76](https://github.com/servian/awskeyring/pull/76) ([tristanmorgan](https://github.com/tristanmorgan))
14
+
3
15
  ## [v1.8.0](https://github.com/servian/awskeyring/tree/v1.8.0) (2020-12-07)
4
16
 
5
17
  [Full Changelog](https://github.com/servian/awskeyring/compare/v1.7.0...v1.8.0)
@@ -145,7 +145,7 @@ module Awskeyring
145
145
  # @param [String] key The aws_access_key_id
146
146
  # @param [String] secret The aws_secret_access_key
147
147
  # @param [String] token The aws_session_token
148
- def self.verify_cred(key:, secret:, token:)
148
+ def self.verify_cred(key:, secret:, token: nil)
149
149
  begin
150
150
  ENV['AWS_DEFAULT_REGION'] = 'us-east-1' unless region
151
151
  sts = Aws::STS::Client.new(access_key_id: key, secret_access_key: secret, session_token: token)
@@ -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.8.0'
9
+ VERSION = '1.8.1'
10
10
  # The Gem's homepage
11
11
  HOMEPAGE = 'https://github.com/servian/awskeyring'
12
12
 
@@ -209,7 +209,7 @@ class AwskeyringCommand < Thor # rubocop:disable Metrics/ClassLength
209
209
  existing: options[:mfa], message: I18n.t('message.mfa'),
210
210
  flags: 'optional', validator: Awskeyring::Validate.method(:mfa_arn)
211
211
  )
212
- Awskeyring::Awsapi.verify_cred(key: key, secret: secret, token: nil) unless options['no-remote']
212
+ Awskeyring::Awsapi.verify_cred(key: key, secret: secret) unless options['no-remote']
213
213
  Awskeyring.add_account(
214
214
  account: account,
215
215
  key: key,
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.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Morgan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-07 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-iam
@@ -98,8 +98,8 @@ licenses:
98
98
  metadata:
99
99
  bug_tracker_uri: https://github.com/servian/awskeyring/issues
100
100
  changelog_uri: https://github.com/servian/awskeyring/blob/main/CHANGELOG.md
101
- documentation_uri: https://rubydoc.info/gems/awskeyring/1.8.0
102
- source_code_uri: https://github.com/servian/awskeyring/tree/v1.8.0
101
+ documentation_uri: https://rubydoc.info/gems/awskeyring/1.8.1
102
+ source_code_uri: https://github.com/servian/awskeyring/tree/v1.8.1
103
103
  wiki_uri: https://github.com/servian/awskeyring/wiki
104
104
  post_install_message:
105
105
  rdoc_options: []