fix rubocop warnings

This commit is contained in:
stve 2015-02-14 00:27:55 -05:00
parent 62098418d6
commit d1d493226c
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ module Instapaper
# always text/html encoded as UTF-8.
# @param bookmark_id [String] The id of the bookmark.
def get_text(bookmark_id)
perform_post_with_unparsed_response('/api/1/bookmarks/get_text', {bookmark_id: bookmark_id})
perform_post_with_unparsed_response('/api/1/bookmarks/get_text', bookmark_id: bookmark_id)
end
alias_method :text, :get_text
end

View file

@ -4,7 +4,7 @@ module Instapaper
module OAuth
# Gets an OAuth access token for a user.
def access_token(username, password)
response = perform_post_with_unparsed_response('/api/1/oauth/access_token', {x_auth_username: username, x_auth_password: password, x_auth_mode: 'client_auth'})
response = perform_post_with_unparsed_response('/api/1/oauth/access_token', x_auth_username: username, x_auth_password: password, x_auth_mode: 'client_auth')
params = response.split('&')
values = params.map { |part| part.split('=') }.flatten
values.unshift('error') if values.length == 1