jugyo-twitter_oauth 0.5.0.pre2 → 0.5.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twitter_oauth/client.rb +2 -1
- data/lib/twitter_oauth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 605db179a51454f8981ba851c45584ac036ef275
|
4
|
+
data.tar.gz: 2734b980d409216401c0ab1ddefa824207a9bc15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ad543adf24dad2d61f52f9a92b7e8636a9feef7ad7d74b66eb9c17ce1d7dc8ef491f3f77ca02d1e2b30b4963a1f9e94b0cfe6a63a41ff17f8d9b18ee6b4f9c
|
7
|
+
data.tar.gz: c06c6ca1ba2f94ad57fac18f5a24ab76c865e715c505c0929f0e30c2f75be60a1d2491cba913e00673a87ef230378975c669ba7e49c9a3a1af4a3453e0f4db62
|
data/lib/twitter_oauth/client.rb
CHANGED
@@ -26,6 +26,7 @@ module TwitterOAuth
|
|
26
26
|
@secret = options[:secret]
|
27
27
|
@proxy = options[:proxy]
|
28
28
|
@debug = options[:debug]
|
29
|
+
@secure = options[:secure]
|
29
30
|
@api_version = options[:api_version] || '1'
|
30
31
|
@api_host = options[:api_host] || 'api.twitter.com'
|
31
32
|
@search_host = options[:search_host] || 'search.twitter.com'
|
@@ -62,7 +63,7 @@ module TwitterOAuth
|
|
62
63
|
private
|
63
64
|
|
64
65
|
def consumer(options={})
|
65
|
-
options[:secure] ||=
|
66
|
+
options[:secure] ||= @secure
|
66
67
|
protocol = options[:secure] ? 'https' : 'http'
|
67
68
|
@consumer ||= OAuth::Consumer.new(
|
68
69
|
@consumer_key,
|