gmailRubyUtilities 0.0.1 → 0.0.2
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 +6 -1
- 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: 76d8a8583bbccf516d06e4c0ac67ea78173a116a
|
4
|
+
data.tar.gz: f44a3859332b7b16bb304898611c4f0afa5d1369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff380150d6cd0a99f5a3037a43cdc2fcaf357828477adb52d294fda9100e933c8c845bdd7b75cfef9c7fda5b6319e1611330b48266dd41723c566880cea5ca7e
|
7
|
+
data.tar.gz: 982abc0c53dbebbcf60b92f47b1fd8db12012fbdc96c034c25cd96627fd571c1e25c4591b300b73ebbbfe045049c3c9ee9a0b26ab6a4b29b35f810f0412ac89c
|
data/lib/gmailRubyUtilities.rb
CHANGED
@@ -7,7 +7,6 @@ class GmailRubyUtilities
|
|
7
7
|
linkInTheEmail=mail.html_part.decoded.scan(/<a.+?href="(.+?)".+?/)[0]
|
8
8
|
puts linkInTheEmail
|
9
9
|
end
|
10
|
-
|
11
10
|
def self.readHtmlPartOfLatestMailFromGmail(username,password,sender)
|
12
11
|
gmail = Gmail.connect(username, password)
|
13
12
|
mail=gmail.inbox.find(:from => sender,:unread=> true).last
|
@@ -37,4 +36,10 @@ class GmailRubyUtilities
|
|
37
36
|
end
|
38
37
|
email.deliver!
|
39
38
|
end
|
39
|
+
def self.getTestLinkByRecipientEmailId(username,password,sender,recipient)
|
40
|
+
gmail = Gmail.connect(username, password)
|
41
|
+
mail=gmail.inbox.find(:from => sender,:unread=> true,:to =>recipient).last
|
42
|
+
linkInTheEmail=mail.html_part.decoded.scan(/<a.+?href="(.+?)".+?/)[0]
|
43
|
+
puts linkInTheEmail
|
44
|
+
end
|
40
45
|
end
|
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.2
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple hello world gem
|
14
14
|
email: adarsha.shetty.89@live.in
|