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-3.3.4 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
windows-pr-1.2.5 vendor/bundle/ruby/2.2.0/gems/win32-api-1.6.0-universal-mingw32/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.3.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
win32-api-1.6.0-universal-mingw32 vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.3.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
brakeman-3.3.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb
highline-1.7.8 examples/repeat_entry.rb
highline-1.7.7 examples/repeat_entry.rb
highline-1.7.6 examples/repeat_entry.rb
highline-1.7.5 examples/repeat_entry.rb
highline-1.7.3 examples/repeat_entry.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/highline-1.6.21/examples/repeat_entry.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/highline-1.6.21/examples/repeat_entry.rb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/highline-1.7.2/examples/repeat_entry.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/highline-1.6.21/examples/repeat_entry.rb
highline-1.7.2 examples/repeat_entry.rb
highline-1.7.1 examples/repeat_entry.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/repeat_entry.rb
highline-1.6.21 examples/repeat_entry.rb