Skip to content

Commit

Permalink
Some whitespace adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Apr 9, 2010
1 parent efe4cc6 commit 039c595
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions lib/oauth/consumer.rb
Expand Up @@ -76,10 +76,10 @@ def initialize(consumer_key, consumer_secret, options = {})
@secret = consumer_secret

# ensure that keys are symbols
@options = @@default_options.merge(options.inject({}) { |opts, (key, value)|
@options = @@default_options.merge(options.inject({}) do |opts, (key, value)|
opts[key.to_sym] = value
opts
})
end)
end

# The default http method
Expand Down Expand Up @@ -128,10 +128,10 @@ def get_request_token(request_options = {}, *arguments, &block)

if block_given?
response = token_request(http_method,
(request_token_url? ? request_token_url : request_token_path),
nil,
request_options,
*arguments, &block)
(request_token_url? ? request_token_url : request_token_path),
nil,
request_options,
*arguments, &block)
else
response = token_request(http_method, (request_token_url? ? request_token_url : request_token_path), nil, request_options, *arguments)
end
Expand Down Expand Up @@ -277,7 +277,7 @@ def proxy
@options[:proxy]
end

protected
protected

# Instantiates the http object
def create_http(_url = nil)
Expand Down Expand Up @@ -358,9 +358,7 @@ def create_http_request(http_method, path, *arguments)
end

def marshal_dump(*args)
{:key => @key,
:secret => @secret,
:options => @options}
{:key => @key, :secret => @secret, :options => @options}
end

def marshal_load(data)
Expand Down

0 comments on commit 039c595

Please sign in to comment.