Permalink
Browse files

Changed :rest to be a synonym for :v1 though :rest is now considered …

…deprecated
  • Loading branch information...
Hayes Davis
Hayes Davis committed Jun 13, 2010
1 parent 3fbdec2 commit 0d5576d6060660ee8a642a814274a8270d26989e
Showing with 3 additions and 4 deletions.
  1. +2 −3 lib/grackle/client.rb
  2. +1 −1 test/test_client.rb
View
@@ -86,10 +86,9 @@ def params
# refer to it wherever Grackle::Client uses an API symbol. You may wish
# to do this when Twitter introduces API versions greater than 1.
TWITTER_API_HOSTS = {
- :rest=>'twitter.com',
- :search=>'search.twitter.com',
- :v1=>'api.twitter.com/1'
+ :search=>'search.twitter.com', :v1=>'api.twitter.com/1'
}
+ TWITTER_API_HOSTS[:rest] = TWITTER_API_HOSTS[:v1]
#Basic OAuth information needed to communicate with Twitter
TWITTER_OAUTH_SPEC = {
View
@@ -174,7 +174,7 @@ def test_api
assert_equal('search.twitter.com',client.transport.url.host)
client[:rest].users.show.some_user?
- assert_equal('twitter.com',client.transport.url.host)
+ assert_equal('api.twitter.com',client.transport.url.host)
client.api = :search
client.trends?

0 comments on commit 0d5576d

Please sign in to comment.