Sha256: 1fb42d7e22c9ce4856d1ba8a84c582f265b7b4328ff4deebcff489d6d20cc12e
Contents?: true
Size: 477 Bytes
Versions: 4
Compression:
Stored size: 477 Bytes
Contents
# Add current dir to path $LOAD_PATH.unshift File.dirname(__FILE__) gem 'quicktravel_client' require 'quicktravel_client' require 'example_config' puts 'Login with username:' login = gets.chomp puts 'And password:' password = gets.chomp puts "Ok #{login}, just a tick..." result = begin QuickTravel::Party.login(login: login, password: password) rescue QuickTravel::AdapterException nil end if result puts "Ok. You'll do this time." else puts 'No go, chappy' end
Version data entries
4 entries across 4 versions & 1 rubygems