Permalink
Browse files

Swapped the roauth dependency for simple_oauth.

  • Loading branch information...
1 parent 1d69561 commit 76cfe3749e56b2b486f2b5ffc9aa7f437cb2db29 @laserlemon laserlemon committed with Oct 12, 2010
Showing with 9 additions and 6 deletions.
  1. +3 −2 Gemfile.lock
  2. +1 −1 lib/twitter.rb
  3. +2 −1 lib/twitter/base.rb
  4. +2 −1 lib/twitter/geo.rb
  5. +1 −1 twitter.gemspec
View
@@ -5,7 +5,7 @@ PATH
addressable (~> 2.2.1)
faraday (~> 0.4.1)
faraday_middleware (~> 0.1.1)
- roauth (~> 0.0.3)
+ simple_oauth (~> 0.1.0)
GEM
remote: http://rubygems.org/
@@ -37,6 +37,7 @@ GEM
rake (0.8.7)
roauth (0.0.3)
shoulda (2.11.3)
+ simple_oauth (0.1.0)
test-unit (2.1.1)
yard (0.6.1)
@@ -53,8 +54,8 @@ DEPENDENCIES
json_pure (~> 1.4)
mocha (~> 0.9)
rake (~> 0.8)
- roauth (~> 0.0.3)
shoulda (~> 2.11)
+ simple_oauth (~> 0.1.0)
test-unit (~> 2.1)
twitter!
yard (~> 0.6)
View
@@ -2,7 +2,7 @@
require 'faraday'
require 'faraday_middleware'
require 'forwardable'
-require 'roauth'
+require 'simple_oauth'
require 'cgi'
module Twitter
View
@@ -476,7 +476,8 @@ def oauth_header(path, options, method)
:access_key => self.access_key,
:access_secret => self.access_secret
}
- ROAuth.header(oauth_params, connection.build_url(path), options, method)
+ SimpleOAuth::Header.new(method, connection.build_url(path), options, oauth_params).to_s
+ #ROAuth.header(oauth_params, connection.build_url(path), options, method)
@laserlemon

laserlemon Oct 12, 2010

Collaborator

Oops. I forgot to remove the commented-out ROAuth code.

end
def perform_get(path, options={})
View
@@ -147,7 +147,8 @@ def oauth_header(path, options, method)
:access_key => @access_key,
:access_secret => @access_secret
}
- ROAuth.header(oauth_params, connection.build_url(path), options, method)
+ SimpleOAuth::Header.new(method, connection.build_url(path), options, oauth_params).to_s
+ #ROAuth.header(oauth_params, connection.build_url(path), options, method)
@laserlemon

laserlemon Oct 12, 2010

Collaborator

And again.

end
end
View
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency("addressable", "~> 2.2.1")
s.add_runtime_dependency("faraday", "~> 0.4.1")
s.add_runtime_dependency("faraday_middleware", "~> 0.1.1")
- s.add_runtime_dependency("roauth", "~> 0.0.3")
+ s.add_runtime_dependency("simple_oauth", "~> 0.1.0")
s.authors = ["John Nunemaker", "Wynn Netherland", "Erik Michaels-Ober"]
s.description = %q{A Ruby wrapper for the Twitter REST and Search APIs.}
s.email = ["nunemaker@gmail.com"]

1 comment on commit 76cfe37

Owner

sferik commented on 76cfe37 Oct 12, 2010

I'll cleanup the stray comments.

Please sign in to comment.