gmailRubyUtilities 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gmailRubyUtilities.rb +3 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76d8a8583bbccf516d06e4c0ac67ea78173a116a
4
- data.tar.gz: f44a3859332b7b16bb304898611c4f0afa5d1369
3
+ metadata.gz: 048f75deff9c7a7153f1c3d02edf0e1f74ec6d91
4
+ data.tar.gz: 021c55dcfa451bde1f6f6a496d5883779a8e7511
5
5
  SHA512:
6
- metadata.gz: ff380150d6cd0a99f5a3037a43cdc2fcaf357828477adb52d294fda9100e933c8c845bdd7b75cfef9c7fda5b6319e1611330b48266dd41723c566880cea5ca7e
7
- data.tar.gz: 982abc0c53dbebbcf60b92f47b1fd8db12012fbdc96c034c25cd96627fd571c1e25c4591b300b73ebbbfe045049c3c9ee9a0b26ab6a4b29b35f810f0412ac89c
6
+ metadata.gz: 0558658ecab420eb420c14f4899cdad7cec304693128857873b63bf6fb1664e2e8a67f250f288fececded498808f2eed111a7d60caa2626356c35edee395a948
7
+ data.tar.gz: 13a1bd8874b3ecfa7c6bc92645e9e5c4808e90c91dca2601dd9c2e4e108f2e2951f0da8588dfcea193c447427bc5296385acf5c1d636679faf2907d1aef82241
@@ -36,10 +36,9 @@ class GmailRubyUtilities
36
36
  end
37
37
  email.deliver!
38
38
  end
39
- def self.getTestLinkByRecipientEmailId(username,password,sender,recipient)
39
+
40
+ def self.getCountOfEmailsWithRecipientId(username,password,recipient)
40
41
  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
42
+ puts gmail.inbox.count(:to => recipient)
44
43
  end
45
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmailRubyUtilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adarsha