pandora_client 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ ## 0.1.2 (2012-05-21)
2
+
3
+ * Clear authentication state when calling `Pandora::User#reauthenticate` and
4
+ `Pandora::Partner#reauthenticate`.
5
+
1
6
  ## 0.1.1 (2012-05-21)
2
7
 
3
8
  * Added `Pandora::User#reauthenticate` and `Pandora::Partner#reauthenticate` to
@@ -40,6 +40,8 @@ module Pandora
40
40
  end
41
41
 
42
42
  def authenticate
43
+ @partner_id = @partner_auth_token = @time_offset = nil
44
+
43
45
  result = call 'auth.partnerLogin', { secure: true, encrypt: false }, {
44
46
  username: @username,
45
47
  password: @password,
@@ -41,6 +41,8 @@ module Pandora
41
41
  private
42
42
 
43
43
  def login
44
+ @user_auth_token = @user_id = nil
45
+
44
46
  result = call 'auth.userLogin', { secure: true, encrypt: true }, {
45
47
  loginType: 'user',
46
48
  username: username,
@@ -1,3 +1,3 @@
1
1
  module Pandora
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandora_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: