Skip to content

Commit

Permalink
Fixed a bug where the @config was improperly set.
Browse files Browse the repository at this point in the history
The config object passed in via the constructor was never really used,
except for the @api_host.

Signed-off-by: John Nunemaker <[email protected]>
  • Loading branch information
pope authored and jnunemaker committed Jan 5, 2009
1 parent 66afd33 commit 9c5fd0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/twitter/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class Base
# Identi.ca example:
# Twitter.new('email/username', 'password', :api_host => 'identi.ca/api')
def initialize(email, password, options={})
@config, @config[:email], @config[:password] = {}, email, password
@api_host = options.delete(:api_host) || 'twitter.com'
@config, @config[:email], @config[:password] = options, email, password
end

# Returns an array of statuses for a timeline; Defaults to your friends timeline.
Expand Down Expand Up @@ -254,4 +254,4 @@ def parse(response)
Hpricot.XML(response || '')
end
end
end
end

0 comments on commit 9c5fd0f

Please sign in to comment.