gmailRubyUtilities 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gmailRubyUtilities.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 828eb92de3872ef652bbab7a6416c25d48f722ae
|
4
|
+
data.tar.gz: 333c86fa3cc5cda039e911fa7a4c2534676cec82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13cc2b31852b71e024fb4e1cd2404d69a5995de83bf0bfb27df240731453cc9b1b6d27753a2d4a8f6f151ae8a12319e8f13ec1cbc3145f9cc82f635cb6c0c673
|
7
|
+
data.tar.gz: be1a9588c9053d34611ec0cca08cd18299067d02f2cc98428911e14a3f83741e50e446287811da96845609cd3ca3c1ffd56ca21bbcde8da059b438befa5658e6
|
data/lib/gmailRubyUtilities.rb
CHANGED
@@ -5,19 +5,16 @@ class GmailRubyUtilities
|
|
5
5
|
gmail = Gmail.connect(username, password)
|
6
6
|
mail=gmail.inbox.find(:from => sender,:unread=> true).last
|
7
7
|
linkInTheEmail=mail.html_part.decoded.scan(/<a.+?href="(.+?)".+?/)[0]
|
8
|
-
puts linkInTheEmail
|
9
8
|
end
|
10
9
|
def self.readHtmlPartOfLatestMailFromGmail(username,password,sender)
|
11
10
|
gmail = Gmail.connect(username, password)
|
12
11
|
mail=gmail.inbox.find(:from => sender,:unread=> true).last
|
13
12
|
htmlPart=mail.html_part.decoded
|
14
|
-
puts htmlPart
|
15
13
|
end
|
16
14
|
def self.readTextPartOfLatestMailFromGmail(username,password,sender)
|
17
15
|
gmail = Gmail.connect(username, password)
|
18
16
|
mail=gmail.inbox.find(:from => sender,:unread=> true).last
|
19
17
|
textPart=mail.text_part.decoded
|
20
|
-
puts textPart
|
21
18
|
end
|
22
19
|
|
23
20
|
def self.markAllEmailsAsRead(username,password,sender)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmailRubyUtilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adarsha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple hello world gem
|
14
14
|
email: adarsha.shetty.89@live.in
|