mydrive-aws-mfa 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws_mfa/credentials_loader.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc32e4eb8cb29f396af0187ef970d9b98552558c
|
4
|
+
data.tar.gz: d4810f09a4877d807b358bb7ff2c17b50a57e65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a59069e8ad84b8c79ca51df4a666957fdbdc679f4210e52a482060788faa34f7c77e1f27fa1eb8776d9cf7c2ea0adc0f3e9ac75616fced535cafcd18c0e4ae20
|
7
|
+
data.tar.gz: eccced2cdc4e5ce34cfe26b33b2726448e3e4a04f005625991f8f16d10fba58fae47232223cc2589d53ad1517c57fc5743c52a0c1e5e3526d0e55d541c4b428f
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'io/console'
|
1
2
|
require_relative 'errors'
|
2
3
|
require_relative 'shell_command'
|
3
4
|
|
@@ -53,7 +54,7 @@ class AwsMfa
|
|
53
54
|
|
54
55
|
def request_code_from_user
|
55
56
|
puts 'Enter the 6-digit code from your MFA device:'
|
56
|
-
code =
|
57
|
+
code = STDIN.noecho(&:gets).chomp
|
57
58
|
raise Errors::InvalidCode, 'That is an invalid MFA code' unless code =~ /^\d{6}$/
|
58
59
|
code
|
59
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mydrive-aws-mfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MyDrive Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|