contacts 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/lib/contacts/base.rb CHANGED
@@ -8,7 +8,7 @@ require "thread"
8
8
 
9
9
  class Contacts
10
10
  TYPES = {}
11
- VERSION = "1.0.9"
11
+ VERSION = "1.0.10"
12
12
 
13
13
  class Base
14
14
  def initialize(login, password)
@@ -54,7 +54,7 @@ class Contacts
54
54
  data.gsub!(/ &&&END&&&$/, '')
55
55
  data.gsub!(/\t/, ' ') # tabs in the note field cause errors with JSON.parse
56
56
 
57
- @contacts = JSON.parse(data)['Body']['Contacts']
57
+ @contacts = JSON.parse(data)['Body']['Contacts'] || {}
58
58
 
59
59
  # Determine in which format to return the data.
60
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Carlson
@@ -9,7 +9,7 @@ autorequire: contacts
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-26 00:00:00 -05:00
12
+ date: 2008-02-28 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency