twitter_oauth 0.4.0 → 0.4.1

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 -1
  2. metadata +2 -2
@@ -23,6 +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
27
  end
27
28
 
28
29
  def authorize(token, secret, options = {})
@@ -59,7 +60,7 @@ module TwitterOAuth
59
60
  @consumer ||= OAuth::Consumer.new(
60
61
  @consumer_key,
61
62
  @consumer_secret,
62
- { :site => "http://api.twitter.com" }
63
+ { :site => @api_endpoint }
63
64
  )
64
65
  end
65
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Taylor
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-15 00:00:00 +01:00
12
+ date: 2010-07-10 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency