Skip to content

Commit

Permalink
fix twitter gem compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld authored and pelle committed Apr 5, 2011
1 parent e56f2bf commit 39d2599
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 27 deletions.
37 changes: 19 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
PATH
remote: .
specs:
oauth-plugin (0.4.0.pre4)
oauth-plugin (0.4.0.pre5)
multi_json
oauth (~> 0.4.4)
oauth2
rack
twitter (~> 1.0)

GEM
remote: http://rubygems.org/
specs:
addressable (2.2.2)
addressable (2.2.4)
configuration (1.2.0)
diff-lcs (1.1.2)
fakeweb (1.3.0)
faraday (0.5.4)
addressable (~> 2.2.2)
faraday (0.5.7)
addressable (~> 2.2.4)
multipart-post (~> 1.1.0)
rack (>= 1.1.0, < 2)
faraday_middleware (0.3.1)
faraday (~> 0.5.3)
rack (< 2, >= 1.1.0)
faraday_middleware (0.3.2)
faraday (~> 0.5.4)
fuubar (0.0.3)
rspec (~> 2.0)
rspec-instafail (~> 0.1.4)
Expand All @@ -29,14 +31,17 @@ GEM
thor (~> 0.14.3)
guard-rspec (0.1.9)
guard (>= 0.2.2)
hashie (0.4.0)
hashie (1.0.0)
launchy (0.3.7)
configuration (>= 0.0.5)
rake (>= 0.8.1)
multi_json (0.0.5)
multi_xml (0.2.0)
multipart-post (1.1.0)
oauth (0.4.4)
oauth2 (0.1.1)
faraday (~> 0.5.0)
multi_json (~> 0.0.4)
open_gem (1.4.2)
launchy (~> 0.3.5)
opentransact (0.1.0)
Expand All @@ -57,15 +62,15 @@ GEM
rspec-instafail (0.1.5)
rspec-mocks (2.4.0)
ruby-progressbar (0.0.9)
simple_oauth (0.1.3)
simple_oauth (0.1.4)
thor (0.14.6)
twitter (1.1.0)
faraday (~> 0.5.3)
faraday_middleware (~> 0.3.1)
hashie (~> 0.4.0)
twitter (1.2.0)
faraday (~> 0.5.4)
faraday_middleware (~> 0.3.2)
hashie (~> 1.0.0)
multi_json (~> 0.0.5)
multi_xml (~> 0.2.0)
simple_oauth (~> 0.1.3)
simple_oauth (~> 0.1.4)

PLATFORMS
ruby
Expand All @@ -75,11 +80,7 @@ DEPENDENCIES
fuubar
growl
guard-rspec
multi_json
oauth (~> 0.4.4)
oauth-plugin!
opentransact
rack
rack-test
rspec (~> 2.4.0)
twitter
10 changes: 2 additions & 8 deletions lib/oauth/models/consumers/services/twitter_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ def self.consumer
end

def client
unless @client
@twitter_oauth=Twitter::OAuth.new TwitterToken.consumer.key,TwitterToken.consumer.secret
@twitter_oauth.authorize_from_access token,secret
@client=Twitter::Base.new(@twitter_oauth)
end

@client
@client ||= Twitter::Client.new(:consumer_key => TwitterToken.consumer.key, :consumer_secret => TwitterToken.consumer.secret)
end
end
end
2 changes: 1 addition & 1 deletion oauth-plugin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Gem::Specification.new do |s|
s.rubyforge_project = %q{oauth}
s.rubygems_version = %q{1.3.7}
s.summary = %q{Ruby on Rails Plugin for OAuth Provider and Consumer}
s.add_development_dependency "twitter"
s.add_development_dependency "opentransact"
s.add_development_dependency "rspec", "~> 2.4.0"
s.add_development_dependency "fakeweb"
Expand All @@ -36,5 +35,6 @@ Gem::Specification.new do |s|
s.add_dependency("oauth", ["~> 0.4.4"])
s.add_dependency("rack")
s.add_dependency("oauth2")
s.add_dependency "twitter", "~> 1.0"
end

0 comments on commit 39d2599

Please sign in to comment.