Skip to content

Commit

Permalink
Move Twitter::Client into REST namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Aug 18, 2013
1 parent 5d83f1f commit 5b8c3fd
Show file tree
Hide file tree
Showing 66 changed files with 3,063 additions and 3,023 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ wiki][apps]!
## What's New in Version 5?
### Configuration
Twitter global configuration has been removed, since it was not threadsafe.
Instead, you can configure a Twitter::Client by passing it a configuration
Instead, you can configure a Twitter::REST::Client by passing it a configuration
block when it's initialized.

```ruby
client = Twitter::Client.new do |config|
client = Twitter::REST::Client.new do |config|
config.consumer_key = YOUR_CONSUMER_KEY
config.consumer_secret = YOUR_CONSUMER_SECRET
config.oauth_token = YOUR_OAUTH_TOKEN
Expand Down Expand Up @@ -337,10 +337,10 @@ error:

Bad Authentication data

You can pass configuration options as a block to `Twitter::Client.new`.
You can pass configuration options as a block to `Twitter::REST::Client.new`.

```ruby
client = Twitter::Client.new do |config|
client = Twitter::REST::Client.new do |config|
config.consumer_key = YOUR_CONSUMER_KEY
config.consumer_secret = YOUR_CONSUMER_SECRET
config.oauth_token = YOUR_OAUTH_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion lib/twitter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'twitter/action_factory'
require 'twitter/client'
require 'twitter/configuration'
require 'twitter/cursor'
require 'twitter/direct_message'
Expand All @@ -18,6 +17,7 @@
require 'twitter/profile_banner'
require 'twitter/rate_limit'
require 'twitter/relationship'
require 'twitter/rest/client'
require 'twitter/saved_search'
require 'twitter/search_results'
require 'twitter/settings'
Expand Down
13 changes: 0 additions & 13 deletions lib/twitter/api/arguments.rb

This file was deleted.

133 changes: 0 additions & 133 deletions lib/twitter/api/direct_messages.rb

This file was deleted.

118 changes: 0 additions & 118 deletions lib/twitter/api/favorites.rb

This file was deleted.

Loading

0 comments on commit 5b8c3fd

Please sign in to comment.