Skip to content

Commit

Permalink
fixed spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed May 26, 2010
1 parent 810bc79 commit 2da6c47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/twitter/httpauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class HTTPAuth
attr_reader :username, :password, :options

def initialize(username, password, options={})
warn "[DEPRECATION] Baic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."
warn "[DEPRECATION] Basic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."

@username, @password = username, password
@options = {:ssl => false}.merge(options)
Expand All @@ -16,25 +16,25 @@ def initialize(username, password, options={})
end

def get(uri, headers={})
warn "[DEPRECATION] Baic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."
warn "[DEPRECATION] Basic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."

self.class.get(uri, :headers => headers, :basic_auth => basic_auth)
end

def post(uri, body={}, headers={})
warn "[DEPRECATION] Baic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."
warn "[DEPRECATION] Basic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."

self.class.post(uri, :body => body, :headers => headers, :basic_auth => basic_auth)
end

def put(uri, body={}, headers={})
warn "[DEPRECATION] Baic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."
warn "[DEPRECATION] Basic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."

self.class.put(uri, :body => body, :headers => headers, :basic_auth => basic_auth)
end

def delete(uri, body={}, headers={})
warn "[DEPRECATION] Baic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."
warn "[DEPRECATION] Basic auth is deprecated as Twitter is ending support in June 2010. Please migrate to OAuth."

self.class.delete(uri, :body => body, :headers => headers, :basic_auth => basic_auth)
end
Expand Down

0 comments on commit 2da6c47

Please sign in to comment.