twitter_oauth 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/twitter_oauth/client.rb +2 -2
  2. metadata +2 -2
@@ -23,7 +23,7 @@ module TwitterOAuth
23
23
  @consumer_secret = options[:consumer_secret]
24
24
  @token = options[:token]
25
25
  @secret = options[:secret]
26
- @api_endpoint = options[:api_endpoint] || "http://api.twitter.com"
26
+ @proxy = options[:proxy]
27
27
  end
28
28
 
29
29
  def authorize(token, secret, options = {})
@@ -60,7 +60,7 @@ module TwitterOAuth
60
60
  @consumer ||= OAuth::Consumer.new(
61
61
  @consumer_key,
62
62
  @consumer_secret,
63
- { :site => @api_endpoint }
63
+ { :site => 'http://api.twitter.com', :request_endpoint => @proxy }
64
64
  )
65
65
  end
66
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Taylor
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.3.6
23
+ version: 0.4.1
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json