forked from tildeverse/tilde.news
rubocop: Layout/FirstParameterIndentation, 98
This commit is contained in:
parent
6ae3b6b241
commit
e916cf73eb
|
@ -16,12 +16,12 @@ class Github
|
|||
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
|
||||
|
||||
|
|
|
@ -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+/)
|
||||
|
|
Loading…
Reference in New Issue
Block a user