twiauth 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/twiauth/client.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.rc2
|
data/lib/twiauth/client.rb
CHANGED
@@ -14,8 +14,8 @@ module TwiAuth
|
|
14
14
|
# @client = TwiAuth::Client.new( {:key => @consumer_key, :secret => @consumer_secret})
|
15
15
|
#
|
16
16
|
def initialize(consumer, options = {})
|
17
|
-
|
18
|
-
self.access_token =
|
17
|
+
raise "options are nil" if options.nil?
|
18
|
+
self.access_token = options[:access_token]
|
19
19
|
if self.access_token.nil?
|
20
20
|
raise "consumer could not be nil!" if consumer.nil?
|
21
21
|
self.consumer = connect(consumer['key'], consumer['secret'])
|