lib/tw/client/auth.rb in tw-1.0.2 vs lib/tw/client/auth.rb in tw-1.0.3

- old
+ new

@@ -1,6 +1,5 @@ - module Tw class Client def self.client @@client end @@ -40,11 +39,11 @@ def self.regist_user consumer = OAuth::Consumer.new(Conf['consumer_key'], Conf['consumer_secret'], :site => 'http://api.twitter.com') request_token = consumer.get_request_token - puts cmd = "open #{request_token.authorize_url}" - system cmd + puts "open #{request_token.authorize_url}" + Launchy.open request_token.authorize_url print 'input PIN Number: ' verifier = STDIN.gets.strip access_token = request_token.get_access_token(:oauth_verifier => verifier) client = Tw::Client.new.auth('access_token' => access_token.token, 'access_secret' => access_token.secret)