gmail_oauth 0.1.2 → 0.1.3

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/gmail/client.rb CHANGED
@@ -53,11 +53,11 @@ module Gmail
53
53
 
54
54
  # Login to specified account.
55
55
  def login(raise_errors=false)
56
- @imap and @logged_in = (login = @imap.authenticate('XOAUTH', email,
57
- :consumer_key => consumer_key,
58
- :consumer_secret => consumer_secret,
59
- :token => token,
60
- :token_secret => secret
56
+ @imap and @logged_in = (login = @imap.authenticate('XOAUTH', @email,
57
+ :consumer_key => @consumer_key,
58
+ :consumer_secret => @consumer_secret,
59
+ :token => @token,
60
+ :token_secret => @secret
61
61
  )) && login.name == 'OK'
62
62
  rescue Net::IMAP::NoResponseError
63
63
  raise_errors and raise AuthorizationError, "Couldn't login to given GMail account"
data/lib/gmail/version.rb CHANGED
@@ -2,7 +2,7 @@ module Gmail
2
2
  class Version #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STRING = [MAJOR, MINOR, PATCH].join('.')
7
7
  end # Version
8
8
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - BehindLogic