awskeyring 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -4
- data/README.md +6 -2
- data/awskeyring.gemspec +1 -1
- data/lib/awskeyring/awsapi.rb +3 -0
- data/lib/awskeyring/version.rb +1 -1
- data/lib/awskeyring_command.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b48c06baceecbcec6e2b949d0985d8e67b788988385545a0c5c93ef1b355728d
|
4
|
+
data.tar.gz: 5409309869822c30497465a753a40e1717a3cee31f040ad80e287c71bbc2ae50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 202db6a54856b8365246994f5a814b657d4b6f4912d170c80cf979d2bd4818d4a58150daf737a2f3085ebb8b4ad39788e92de809b6fbe0dea59315d4abed1717
|
7
|
+
data.tar.gz: 70e3cb77196023d67bd60e5b4b9afc6ddfdbac4b2f5a89610ed5f068e97e604e5884a29c30ae0ec7be3c73f3ad77e613e7f9e957d9ef1e84393a30e6fe55080b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v1.8.0](https://github.com/servian/awskeyring/tree/v1.8.0) (2020-12-07)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/servian/awskeyring/compare/v1.7.0...v1.8.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Include expiry time export, AWS\_CREDENTIAL\_EXPIRATION [\#74](https://github.com/servian/awskeyring/pull/74) ([tristanmorgan](https://github.com/tristanmorgan))
|
10
|
+
|
3
11
|
## [v1.7.0](https://github.com/servian/awskeyring/tree/v1.7.0) (2020-11-18)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/servian/awskeyring/compare/v1.6.0...v1.7.0)
|
@@ -9,6 +17,10 @@
|
|
9
17
|
- Allow specifying a browser other than the default [\#71](https://github.com/servian/awskeyring/issues/71)
|
10
18
|
- Autocomplete for Browsers [\#73](https://github.com/servian/awskeyring/pull/73) ([tristanmorgan](https://github.com/tristanmorgan))
|
11
19
|
|
20
|
+
**Merged pull requests:**
|
21
|
+
|
22
|
+
- Updates for added RuboCop checks. [\#70](https://github.com/servian/awskeyring/pull/70) ([tristanmorgan](https://github.com/tristanmorgan))
|
23
|
+
|
12
24
|
## [v1.6.0](https://github.com/servian/awskeyring/tree/v1.6.0) (2020-08-11)
|
13
25
|
|
14
26
|
[Full Changelog](https://github.com/servian/awskeyring/compare/v1.5.0...v1.6.0)
|
@@ -19,10 +31,6 @@
|
|
19
31
|
- RuboCop and Spec update [\#68](https://github.com/servian/awskeyring/pull/68) ([tristanmorgan](https://github.com/tristanmorgan))
|
20
32
|
- Add SimpleCov reports. [\#67](https://github.com/servian/awskeyring/pull/67) ([tristanmorgan](https://github.com/tristanmorgan))
|
21
33
|
|
22
|
-
**Merged pull requests:**
|
23
|
-
|
24
|
-
- Updates for added RuboCop checks. [\#70](https://github.com/servian/awskeyring/pull/70) ([tristanmorgan](https://github.com/tristanmorgan))
|
25
|
-
|
26
34
|
## [v1.5.0](https://github.com/servian/awskeyring/tree/v1.5.0) (2020-07-08)
|
27
35
|
|
28
36
|
[Full Changelog](https://github.com/servian/awskeyring/compare/v1.4.0...v1.5.0)
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Awskeyring
|
2
2
|
|
3
|
-
![Awskeyring](https://raw.githubusercontent.com/servian/awskeyring/
|
3
|
+
![Awskeyring](https://raw.githubusercontent.com/servian/awskeyring/main/awskeyring-144.png)
|
4
4
|
|
5
|
-
* [![Build Status](https://travis-ci.org/servian/awskeyring.svg?branch=
|
5
|
+
* [![Build Status](https://travis-ci.org/servian/awskeyring.svg?branch=main)](https://travis-ci.org/servian/awskeyring)
|
6
6
|
* [![Gem Version](https://badge.fury.io/rb/awskeyring.svg)](https://badge.fury.io/rb/awskeyring)
|
7
7
|
* [![license MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
|
8
8
|
* [![All Downloads](https://ruby-gem-downloads-badge.herokuapp.com/awskeyring?type=total)](https://rubygems.org/gems/awskeyring)
|
@@ -27,6 +27,10 @@ Install it with:
|
|
27
27
|
|
28
28
|
$ gem install awskeyring --user-install
|
29
29
|
|
30
|
+
or via [homebrew gem](https://github.com/sportngin/brew-gem):
|
31
|
+
|
32
|
+
$ brew gem install awskeyring
|
33
|
+
|
30
34
|
## Wiki
|
31
35
|
|
32
36
|
Please see the [Wiki](https://github.com/servian/awskeyring/wiki) for full usage instructions and tips.
|
data/awskeyring.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.metadata = {
|
26
26
|
'bug_tracker_uri' => "#{Awskeyring::HOMEPAGE}/issues",
|
27
|
-
'changelog_uri' => "#{Awskeyring::HOMEPAGE}/blob/
|
27
|
+
'changelog_uri' => "#{Awskeyring::HOMEPAGE}/blob/main/CHANGELOG.md",
|
28
28
|
'documentation_uri' => "https://rubydoc.info/gems/#{spec.name}/#{Awskeyring::VERSION}",
|
29
29
|
'source_code_uri' => "#{Awskeyring::HOMEPAGE}/tree/v#{Awskeyring::VERSION}",
|
30
30
|
'wiki_uri' => "#{Awskeyring::HOMEPAGE}/wiki"
|
data/lib/awskeyring/awsapi.rb
CHANGED
@@ -27,6 +27,7 @@ module Awskeyring
|
|
27
27
|
AWS_ACCOUNT_NAME
|
28
28
|
AWS_ACCESS_KEY_ID
|
29
29
|
AWS_ACCESS_KEY
|
30
|
+
AWS_CREDENTIAL_EXPIRATION
|
30
31
|
AWS_SECRET_ACCESS_KEY
|
31
32
|
AWS_SECRET_KEY
|
32
33
|
AWS_SECURITY_TOKEN
|
@@ -126,6 +127,8 @@ module Awskeyring
|
|
126
127
|
env_var = {}
|
127
128
|
env_var['AWS_DEFAULT_REGION'] = 'us-east-1' unless region
|
128
129
|
|
130
|
+
params[:expiration] = Time.at(params[:expiry]).iso8601 unless params[:expiry].nil?
|
131
|
+
|
129
132
|
params.each_key do |param_name|
|
130
133
|
AWS_ENV_VARS.each do |var_name|
|
131
134
|
if var_name.include?(param_name.to_s.upcase) && !params[param_name].nil?
|
data/lib/awskeyring/version.rb
CHANGED
data/lib/awskeyring_command.rb
CHANGED
@@ -88,7 +88,7 @@ class AwskeyringCommand < Thor # rubocop:disable Metrics/ClassLength
|
|
88
88
|
warn I18n.t('message.missing_role', bin: File.basename($PROGRAM_NAME))
|
89
89
|
exit 1
|
90
90
|
end
|
91
|
-
if options[
|
91
|
+
if options[:detail]
|
92
92
|
puts Awskeyring.list_role_names_plus.join("\n")
|
93
93
|
else
|
94
94
|
puts Awskeyring.list_role_names.join("\n")
|
@@ -100,7 +100,7 @@ class AwskeyringCommand < Thor # rubocop:disable Metrics/ClassLength
|
|
100
100
|
method_option 'unset', type: :boolean, aliases: '-u', desc: I18n.t('method_option.unset'), default: false
|
101
101
|
# Print Env vars
|
102
102
|
def env(account = nil)
|
103
|
-
if options[
|
103
|
+
if options[:unset]
|
104
104
|
put_env_string(account: nil, key: nil, secret: nil, token: nil)
|
105
105
|
else
|
106
106
|
account = ask_check(
|
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.
|
4
|
+
version: 1.8.0
|
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-
|
11
|
+
date: 2020-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-iam
|
@@ -97,9 +97,9 @@ licenses:
|
|
97
97
|
- MIT
|
98
98
|
metadata:
|
99
99
|
bug_tracker_uri: https://github.com/servian/awskeyring/issues
|
100
|
-
changelog_uri: https://github.com/servian/awskeyring/blob/
|
101
|
-
documentation_uri: https://rubydoc.info/gems/awskeyring/1.
|
102
|
-
source_code_uri: https://github.com/servian/awskeyring/tree/v1.
|
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
|
103
103
|
wiki_uri: https://github.com/servian/awskeyring/wiki
|
104
104
|
post_install_message:
|
105
105
|
rdoc_options: []
|