glennfu-contacts 1.2.1 → 1.2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/contacts/yahoo.rb +1 -1
  2. metadata +2 -2
@@ -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: 2009-05-06 00:00:00 -04:00
12
+ date: 2010-01-15 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency