glennfu-contacts 1.2.1 → 1.2.1.1
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.
- data/lib/contacts/yahoo.rb +1 -1
- metadata +2 -2
data/lib/contacts/yahoo.rb
CHANGED
|
@@ -94,7 +94,7 @@ class Contacts
|
|
|
94
94
|
|
|
95
95
|
def parse(data, options={})
|
|
96
96
|
@contacts ||= []
|
|
97
|
-
if data =~ /var InitialContacts = (\[.*?\])
|
|
97
|
+
if data =~ /var InitialContacts = (\[.*?\]);/
|
|
98
98
|
@contacts += Contacts.parse_json($1).select{|contact|!contact["email"].to_s.empty?}.map{|contact|[contact["contactName"], contact["email"]]}
|
|
99
99
|
elsif data =~ /^\{"response":/
|
|
100
100
|
@contacts += Contacts.parse_json(data)["response"]["ResultSet"]["Contacts"].to_a.select{|contact|!contact["email"].to_s.empty?}.map{|contact|[contact["contactName"], contact["email"]]}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: glennfu-contacts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.1
|
|
4
|
+
version: 1.2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Glenn Sidney
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2010-01-15 00:00:00 -06:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|