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.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/twitter/request.rb +2 -1
  3. metadata +2 -2
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :minor: 10
4
4
  :build:
5
- :patch: 1
5
+ :patch: 2
@@ -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])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 10
8
- - 1
9
- version: 0.10.1
8
+ - 2
9
+ version: 0.10.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Nunemaker