Skip to content
Browse files

Move class requires into client

  • Loading branch information...
1 parent 70d94f5 commit 3bbb15ea4521acd0f2c1b97ddceee28e1e4a1475 @sferik committed Oct 17, 2011
Showing with 23 additions and 21 deletions.
  1. +3 −2 README.md
  2. +0 −19 lib/twitter.rb
  3. +20 −0 lib/twitter/client.rb
View
5 README.md
@@ -32,7 +32,7 @@ wiki][apps]!
[ci]: http://travis-ci.org/jnunemaker/twitter
## <a name="2.0"></a>What new in version 2?
-This version introduces 18 new classes:
+This version introduces 19 new classes:
1. `Twitter::Configuration`
2. `Twitter::Cursor`
@@ -51,7 +51,8 @@ This version introduces 18 new classes:
15. `Twitter::Size`
16. `Twitter::Status`
17. `Twitter::Suggestion`
-18. `Twitter::User`
+18. `Twitter::Trend`
+19. `Twitter::User`
These classes (plus Ruby primitives) have replaced all instances of
`Hashie::Mash`. This allows us to remove the gem's dependency on [hashie][] and
View
19 lib/twitter.rb
@@ -1,24 +1,5 @@
require 'twitter/client'
require 'twitter/config'
-require 'twitter/configuration'
-require 'twitter/cursor'
-require 'twitter/direct_message'
-require 'twitter/language'
-require 'twitter/list'
-require 'twitter/metadata'
-require 'twitter/photo'
-require 'twitter/place'
-require 'twitter/point'
-require 'twitter/polygon'
-require 'twitter/rate_limit_status'
-require 'twitter/relationship'
-require 'twitter/saved_search'
-require 'twitter/search'
-require 'twitter/settings'
-require 'twitter/size'
-require 'twitter/status'
-require 'twitter/suggestion'
-require 'twitter/user'
module Twitter
extend Config
View
20 lib/twitter/client.rb
@@ -1,4 +1,24 @@
require 'twitter/api'
+require 'twitter/configuration'
+require 'twitter/cursor'
+require 'twitter/direct_message'
+require 'twitter/language'
+require 'twitter/list'
+require 'twitter/metadata'
+require 'twitter/photo'
+require 'twitter/place'
+require 'twitter/point'
+require 'twitter/polygon'
+require 'twitter/rate_limit_status'
+require 'twitter/relationship'
+require 'twitter/saved_search'
+require 'twitter/search'
+require 'twitter/settings'
+require 'twitter/size'
+require 'twitter/status'
+require 'twitter/suggestion'
+require 'twitter/trend'
+require 'twitter/user'
module Twitter
# Wrapper for the Twitter REST API

0 comments on commit 3bbb15e

Please sign in to comment.
Something went wrong with that request. Please try again.