diff --git a/extras/github.rb b/extras/github.rb index 4ce60cbc6..6f42c2159 100644 --- a/extras/github.rb +++ b/extras/github.rb @@ -16,12 +16,12 @@ def self.oauth_consumer def self.token_and_user_from_code(code) s = Sponge.new res = s.fetch( - "https://github.com/login/oauth/access_token", - :post, - :client_id => self.CLIENT_ID, - :client_secret => self.CLIENT_SECRET, - :code => code, - ) + "https://github.com/login/oauth/access_token", + :post, + :client_id => self.CLIENT_ID, + :client_secret => self.CLIENT_SECRET, + :code => code, + ) ps = CGI.parse(res) tok = ps["access_token"].first diff --git a/script/post_to_twitter b/script/post_to_twitter index 9ee302c90..9b9dbdadb 100755 --- a/script/post_to_twitter +++ b/script/post_to_twitter @@ -66,11 +66,7 @@ StoriesPaginator.new(StoryRepository.new.hottest).get.first status = title + status end - res = Twitter.oauth_request( - "/1.1/statuses/update.json", - :post, - "status" => status - ) + res = Twitter.oauth_request("/1.1/statuses/update.json", :post, "status" => status) begin if res["id_str"].to_s.match(/\d+/)