Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nico01f committed Nov 23, 2015
1 parent 5c064ae commit 1e01991
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Doesn't matter if you write on uppercase
# Please, leave a space between both variable.

email:
password:
email: [email protected]
password: nifo.simon
2 changes: 0 additions & 2 deletions credencial.yml

This file was deleted.

10 changes: 6 additions & 4 deletions gmail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ACCOUNT = YAML.load_file("account.yml") unless defined? ACCOUNT

#Conecta con Gmail
def conecta_gmail (email, pass)
def conecta(email, pass)
g = Gmail.connect(email, pass)
if g.logged_in? == true
puts "Connected!".green
Expand All @@ -18,12 +18,14 @@ def conecta_gmail (email, pass)

def info_credencial()
puts "Usuario: #{ACCOUNT['email']}"
puts "Clave: #{ACCOUNT['password']}"
conecta_gmail(ACCOUNT['email'], ACCOUNT['password'])
password_hided = "*" * ACCOUNT['password'].length
puts "Password: #{password_hided}"
puts "============="
conecta(ACCOUNT['email'], ACCOUNT['password'])
end

info_credencial()
puts "Saliendo...".yellow
puts "Exiting...".yellow



0 comments on commit 1e01991

Please sign in to comment.