joelind-twitter 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/twitter/request.rb +2 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/twitter/request.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Twitter
|
2
2
|
class Request
|
3
3
|
extend Forwardable
|
4
|
+
API_VERSION='/1'
|
4
5
|
|
5
6
|
def self.get(client, path, options={})
|
6
7
|
new(client, :get, path, options).perform
|
@@ -28,7 +29,7 @@ module Twitter
|
|
28
29
|
|
29
30
|
def uri
|
30
31
|
@uri ||= begin
|
31
|
-
uri = URI.parse(path)
|
32
|
+
uri = URI.parse(API_VERSION + path)
|
32
33
|
|
33
34
|
if options[:query] && options[:query] != {}
|
34
35
|
uri.query = to_query(options[:query])
|