Extra file for Google login information

master
Marvin Johanning 2018-07-11 14:32:05 +02:00
parent 6c29974b05
commit 99ea05257b
2 changed files with 5 additions and 3 deletions

View File

@ -7,9 +7,9 @@ unless /linux/ =~ RUBY_PLATFORM then
end
#Requiring all the different gems
gems = ['serialport', 'gmail', 'fileutils', 'colorize', 'socket']
gems = ['serialport', 'gmail', 'fileutils', 'colorize', 'socket', 'gmail_login_information.rb']
gems.each do |gem|
require gem
unless gem == 'gmail_login_information.rb' then require gem else require_relative gem end
end
#Checking internet connection to google.com (pinging it)
@ -33,7 +33,7 @@ end
#FileUtils.rm("#{File.dirname(__FILE__)}/src/serial")
#Gmail username and password
gmail = Gmail.connect("", "")
gmail = Gmail.connect($gmail_username, $gmail_password)
#count the number of unread messages
begin

View File

@ -0,0 +1,2 @@
$gmail_username = "your_username_here"
$gmail_password = "user_password_here"