diff --git a/src/gmail.rb b/src/gmail.rb index 7b13861..372261f 100644 --- a/src/gmail.rb +++ b/src/gmail.rb @@ -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 diff --git a/src/gmail_login_information.rb b/src/gmail_login_information.rb new file mode 100644 index 0000000..052d761 --- /dev/null +++ b/src/gmail_login_information.rb @@ -0,0 +1,2 @@ +$gmail_username = "your_username_here" +$gmail_password = "user_password_here"