enfcli 5.0.2 → 5.0.3

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: 1883bd16dddfb14ff7e17a920e9aca8407ad282ed66d2f3e84db871539e942ad
4
- data.tar.gz: 30f42ab6ed5ab2a2814daf42b08fe9bc6b9f50542b794d93189284887d6a9c2a
3
+ metadata.gz: 2f52dc569750edcf380a6f64241fd985decde7de862ca0700e00b8a411548a4b
4
+ data.tar.gz: c3bd0fdbbf27ccc877e82c4ac663118b1710dcf2ccfdeffe2abe91a7930d44fb
5
5
  SHA512:
6
- metadata.gz: 0375c1d273adb5e80261ad45627f03e035301d775e5e66afb4e04a2bebd83eed64b24b9a37636cfb05e9ecdbd50bcbfff578e46d0fa647a200d2ee34e9533698
7
- data.tar.gz: 494772462039bf61523b93d587ffef2e2dc5bb36a45aff9ff0c0033ac6d2c0bd319b14fd049556b9d6e16a07183396a82626a244810c0c3ad6fa04f7bf81617d
6
+ metadata.gz: 5ced4fe396b61814d1d4b6bd377cf2d913899c8ddf78041e97897f17de7adb526f1e9f1cab24de0443adedda7975ede9545ea720dc9a198cddfa00c6a4c7e257
7
+ data.tar.gz: 375a32dd626c0ccf6b17ca876598791883c6f1fd41a26f9fdc66432a5a750607a960a463ed8eae51c772407cfb15fd9c258c14b69f191a9994840f0ceed1dfc4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enfcli (5.0.2)
4
+ enfcli (5.0.3)
5
5
  clipboard
6
6
  ffi
7
7
  readline
@@ -92,4 +92,4 @@ DEPENDENCIES
92
92
  webmock
93
93
 
94
94
  BUNDLED WITH
95
- 2.1.4
95
+ 2.2.4
data/lib/enfcli.rb CHANGED
@@ -22,6 +22,7 @@ require "ipaddr"
22
22
  require "clipboard"
23
23
  require "json"
24
24
  require "securerandom"
25
+ require "io/console"
25
26
 
26
27
  require "rubygems/commands/update_command"
27
28
  require "rubygems/commands/search_command"
@@ -111,21 +112,9 @@ module EnfCli
111
112
  end
112
113
 
113
114
  def self.ask_password(prompt = nil)
114
- begin
115
- prompt ||= "Enter Password:"
116
- print prompt
117
- # We hide the entered characters before to ask for the password
118
- system "stty -echo"
119
- password = $stdin.gets.chomp
120
- system "stty echo"
121
- puts ""
122
- return password
123
- rescue NoMethodError, Interrupt
124
- # When the process is exited, we display the characters again
125
- # And we exit
126
- system "stty echo"
127
- exit
128
- end
115
+ prompt ||= "Enter Password: "
116
+ password = IO::console.getpass prompt
117
+ return password
129
118
  end
130
119
 
131
120
  def self.generate_ec_cert(key, ipv6)
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
  #
16
16
  module EnfCli
17
- VERSION = "5.0.2"
17
+ VERSION = "5.0.3"
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enfcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Venkatakumar Srinivasan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor