gmailRubyUtilities 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gmailRubyUtilities.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 331913d28238d1ef37478db0cfb85fdc4fb3ac42
4
- data.tar.gz: cddd4e9cd40098408593ae326db22135d81a5977
3
+ metadata.gz: 76d8a8583bbccf516d06e4c0ac67ea78173a116a
4
+ data.tar.gz: f44a3859332b7b16bb304898611c4f0afa5d1369
5
5
  SHA512:
6
- metadata.gz: 3c6be58ce08a212b7f5d5fd5bf4b1db13036f3f7b7aba667097ec11c4216ca0e972d729fe96464f0bde93d7052d0594fb981d01b70f470de2d2794501355b462
7
- data.tar.gz: f6818e6c347ce78337c8a954a23081c234857a95a93dccfbcc92c865c4d6bf8df3ff80287edd47739c300b86fc2993be625af1f7d52368a4ab2ee13b96882c4a
6
+ metadata.gz: ff380150d6cd0a99f5a3037a43cdc2fcaf357828477adb52d294fda9100e933c8c845bdd7b75cfef9c7fda5b6319e1611330b48266dd41723c566880cea5ca7e
7
+ data.tar.gz: 982abc0c53dbebbcf60b92f47b1fd8db12012fbdc96c034c25cd96627fd571c1e25c4591b300b73ebbbfe045049c3c9ee9a0b26ab6a4b29b35f810f0412ac89c
@@ -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.1
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-08 00:00:00.000000000 Z
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