liangzan-contacts 1.2.22 → 1.2.23

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/hotmail.rb +2 -1
  2. metadata +2 -2
@@ -64,7 +64,8 @@ class Contacts
64
64
  contact_list_url = get_contact_list_url
65
65
  data, resp, cookies, forward = get(contact_list_url, @cookies )
66
66
 
67
- data.force_encoding('UTF-8')
67
+ data.force_encoding('UTF-16')
68
+ data = data.encode('UTF-8')
68
69
  @contacts = CSV.parse(data, {:headers => true, :col_sep => data[7]}).map do |row|
69
70
  name = ""
70
71
  name = row["First Name"] if !row["First Name"].nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liangzan-contacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.22
4
+ version: 1.2.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2012-11-03 00:00:00.000000000 Z
16
+ date: 2013-02-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: json