tumblr_wrapper 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tumblr_wrapper/client.rb +4 -4
- data/lib/tumblr_wrapper/version.rb +1 -1
- data/spec/client_spec.rb +2 -2
- metadata +2 -2
@@ -11,8 +11,8 @@ class TumblrWrapper::Client
|
|
11
11
|
@access_token = {
|
12
12
|
consumer_key: TumblrWrapper.consumer_key,
|
13
13
|
consumer_secret: TumblrWrapper.consumer_secret,
|
14
|
-
|
15
|
-
|
14
|
+
token: token.token,
|
15
|
+
token_secret: token.secret
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
@@ -24,8 +24,8 @@ class TumblrWrapper::Client
|
|
24
24
|
@access_token = {
|
25
25
|
consumer_key: TumblrWrapper.consumer_key,
|
26
26
|
consumer_secret: TumblrWrapper.consumer_secret,
|
27
|
-
|
28
|
-
|
27
|
+
token: token,
|
28
|
+
token_secret: secret }
|
29
29
|
end
|
30
30
|
|
31
31
|
def consumer
|
data/spec/client_spec.rb
CHANGED
@@ -24,8 +24,8 @@ describe TumblrWrapper::Client do
|
|
24
24
|
|
25
25
|
token_hash = client.request_access_token('verifier')
|
26
26
|
|
27
|
-
token_hash[:
|
28
|
-
token_hash[:
|
27
|
+
token_hash[:token].should == 'token'
|
28
|
+
token_hash[:token_secret].should == 'secret'
|
29
29
|
token_hash[:consumer_key].should == 'consumer key'
|
30
30
|
token_hash[:consumer_secret].should == 'consumer secret'
|
31
31
|
end
|