Skip to content

Commit

Permalink
Added Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nico01f committed Aug 8, 2016
1 parent 9ccf8e0 commit 9d8f83d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'colorize', '~> 0.8.1'
gem 'gmail', '~> 0.6.0'
Empty file modified gmail.rb
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions gmail_oo.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
class Check_email
ACCOUNT = YAML.load_file('account.yml') unless defined? ACCOUNT
G = Gmail.connect(ACCOUNT['email'], ACCOUNT['password'])

def info
puts "Account: #{ACCOUNT['email']}"
password_hided = '*' * ACCOUNT['password'].length
puts "Password: #{password_hided}"
puts '==============='
end
end

def unread
n = G.inbox.count(:unread)
end
Expand Down

0 comments on commit 9d8f83d

Please sign in to comment.