Sha256: 6a6658f10c35bd61c64b1a9c5614b61de4c28dfaedda5e3027b15d5783c1faca

Contents?: true

Size: 486 Bytes

Versions: 41

Compression:

Stored size: 486 Bytes

Contents

#!/usr/bin/env ruby

require "rubygems"
require "highline/import"

tounge_twister = ask("... try saying that three times fast") do |q|
  q.gather = 3
  q.verify_match = true
  q.responses[:mismatch] = "Nope, those don't match. Try again."
end

puts "Ok, you did it."

pass = ask("<%= @key %>:  ") do |q|
  q.echo = '*'
  q.verify_match = true
  q.gather = {"Enter a password" => '',
              "Please type it again for verification" => ''}
end

puts "Your password is now #{pass}!"

Version data entries

41 entries across 41 versions & 7 rubygems

Version Path
brakeman-4.3.1 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/repeat_entry.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/repeat_entry.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/repeat_entry.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/repeat_entry.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/repeat_entry.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/repeat_entry.rb
highline-1.7.10 examples/repeat_entry.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.3.5 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb