adamhunter-contacts 1.1.17 → 1.1.18

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/base.rb CHANGED
@@ -8,7 +8,7 @@ require "thread"
8
8
 
9
9
  class Contacts
10
10
  TYPES = {}
11
- VERSION = "1.1.17"
11
+ VERSION = "1.1.18"
12
12
 
13
13
  class Base
14
14
  def initialize(login, password)
@@ -6,7 +6,6 @@ class Contacts
6
6
 
7
7
  def contacts
8
8
  return @contacts if @contacts
9
- real_connect
10
9
  end
11
10
 
12
11
  def real_connect
@@ -27,7 +26,13 @@ class Contacts
27
26
  @contacts << [title, email] unless email.nil?
28
27
  end
29
28
  @contacts
29
+ rescue GData::Client::AuthorizationError => e
30
+ raise Contacts::AuthenticationError
30
31
  end
31
32
 
33
+ private
34
+
35
+ TYPES[:gmail] = Gmail
36
+
32
37
  end
33
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adamhunter-contacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.17
4
+ version: 1.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Carlson