Skip to content

Commit

Permalink
Add #NewTwitter methods and tests
Browse files Browse the repository at this point in the history
Remove deprecated method #replies (use #mentions instead) and #help, which returned invalid JSON.
  • Loading branch information
sferik committed Oct 1, 2010
1 parent b4b87de commit 0bfbf63
Show file tree
Hide file tree
Showing 53 changed files with 865 additions and 5,542 deletions.
2 changes: 1 addition & 1 deletion examples/timeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
pp client.user_timeline
puts '*'*50

pp client.replies
pp client.mentions
puts '*'*50
4 changes: 2 additions & 2 deletions lib/twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Twitter

def self.client; Twitter::Unauthenticated.new end

def_delegators :client, :firehose, :user, :status, :friend_ids, :follower_ids, :timeline, :list_timeline
def_delegators :client, :firehose, :user, :suggestions, :retweeted_to_user, :retweeted_by_user, :status, :friend_ids, :follower_ids, :timeline, :lists_subscribed, :list_timeline

def self.adapter
@adapter ||= Faraday.default_adapter
Expand Down Expand Up @@ -38,7 +38,7 @@ def self.api_endpoint=(value)
end

def self.api_version
@api_version ||= "1"
@api_version ||= 1
end

def self.api_version=(value)
Expand Down
Loading

0 comments on commit 0bfbf63

Please sign in to comment.