rpbertp13-twitter 0.8.1 → 0.9.1

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/oauth.rb +5 -5
  3. metadata +6 -4
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 8
3
+ :minor: 9
4
4
  :patch: 1
data/lib/twitter/oauth.rb CHANGED
@@ -8,8 +8,8 @@ module Twitter
8
8
  # Options
9
9
  # :sign_in => true to just sign in with twitter instead of doing oauth authorization
10
10
  # (http://apiwiki.twitter.com/Sign-in-with-Twitter)
11
- def initialize(ctoken, csecret, options={})
12
- @ctoken, @csecret, @consumer_options = ctoken, csecret, {}
11
+ def initialize(ctoken, csecret, callback, options={})
12
+ @ctoken, @csecret, @oauth_callback, @consumer_options = ctoken, csecret, callback, {}
13
13
 
14
14
  if options[:sign_in]
15
15
  @consumer_options[:authorize_path] = '/oauth/authenticate'
@@ -21,12 +21,12 @@ module Twitter
21
21
  end
22
22
 
23
23
  def request_token
24
- @request_token ||= consumer.get_request_token
24
+ @request_token ||= consumer.get_request_token @oauth_callback
25
25
  end
26
26
 
27
- def authorize_from_request(rtoken, rsecret)
27
+ def authorize_from_request(rtoken, rsecret, verifier)
28
28
  request_token = ::OAuth::RequestToken.new(consumer, rtoken, rsecret)
29
- access_token = request_token.get_access_token
29
+ access_token = request_token.get_access_token :oauth_verifier => verifier
30
30
  @atoken, @asecret = access_token.token, access_token.secret
31
31
  end
32
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpbertp13-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-06-18 00:00:00 -07:00
14
+ date: 2009-10-14 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -154,8 +154,10 @@ files:
154
154
  - test/twitter/search_test.rb
155
155
  - test/twitter/trends_test.rb
156
156
  - test/twitter_test.rb
157
- has_rdoc: false
157
+ has_rdoc: true
158
158
  homepage: http://github.com/rpbertp13/twitter
159
+ licenses: []
160
+
159
161
  post_install_message:
160
162
  rdoc_options:
161
163
  - --charset=UTF-8
@@ -176,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
178
  requirements: []
177
179
 
178
180
  rubyforge_project: twitter
179
- rubygems_version: 1.2.0
181
+ rubygems_version: 1.3.5
180
182
  signing_key:
181
183
  specification_version: 3
182
184
  summary: wrapper for the twitter api (oauth only) [Remixed to use Mhash]