hotmailer 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hotmailer.rb +7 -2
- metadata +2 -2
data/lib/hotmailer.rb
CHANGED
@@ -66,8 +66,13 @@ def contacts(reload=false)
|
|
66
66
|
#Get each contact's name and email, and append it to @contacts
|
67
67
|
details = (c/"td")
|
68
68
|
name = details[0].inner_html
|
69
|
-
email =
|
70
|
-
|
69
|
+
email = ""
|
70
|
+
#Sometimes print view does not have an email
|
71
|
+
#this checks whether it exists
|
72
|
+
if (details[1]/"span")[0]
|
73
|
+
email = (details[1]/"span")[0].inner_html
|
74
|
+
end
|
75
|
+
@contacts << {:name => name,:email => email}
|
71
76
|
end
|
72
77
|
|
73
78
|
return @contacts
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: hotmailer
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2006-
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2006-12-01 00:00:00 +00:00
|
8
8
|
summary: Package for programatically accessing hotmail accounts
|
9
9
|
require_paths:
|
10
10
|
- lib
|