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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 478caf9f833e13814ac88e18fd549a3ab4aef6ed
4
- data.tar.gz: f813dfb69d87c1169c4764ca3e85e39e90cb2f72
3
+ metadata.gz: fc32e4eb8cb29f396af0187ef970d9b98552558c
4
+ data.tar.gz: d4810f09a4877d807b358bb7ff2c17b50a57e65b
5
5
  SHA512:
6
- metadata.gz: 071c8c41b6753186870cc4b4a840563c50c7d48bb8704d171092e182b1c101da0552807eb65e01d69a1d5708c48ca2269282b04070eb03bf31363786e0d55b25
7
- data.tar.gz: 10f0c9abff4e4862e5dad8778a8c44abd6f6e74130e39eb12c293768854c6ce3f904d7bd46b0a7ab077fe638741f8f7adbdf9dcb6ef8c537b3c2c8cb211eab80
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 = $stdin.gets.chomp
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.1
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: 2017-08-09 00:00:00.000000000 Z
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