Skip to content
Browse files

verify_credentials now returns a Twitter::User.

  • Loading branch information...
1 parent f2260a9 commit 6a8efc464dcb174e41b2eb0197a79e778dae1428 @jnunemaker jnunemaker committed
Showing with 1 addition and 46 deletions.
  1. +1 −1 lib/twitter/base.rb
  2. +0 −45 twitter.gemspec
View
2 lib/twitter/base.rb
@@ -183,7 +183,7 @@ def post(status, options={})
# Verifies the credentials for the auth user.
# raises Twitter::CantConnect on failure.
def verify_credentials
- request('account/verify_credentials.xml', :auth => true)
+ users(request('account/verify_credentials.xml', :auth => true)).first
end
private
View
45 twitter.gemspec
@@ -1,45 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{twitter}
- s.version = "0.4.2"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
- s.authors = ["John Nunemaker"]
- s.date = %q{2009-02-11}
- s.default_executable = %q{twitter}
- s.description = %q{a command line interface for twitter, also a library which wraps the twitter api}
- s.email = %q{nunemaker@gmail.com}
- s.executables = ["twitter"]
- s.extra_rdoc_files = ["bin/twitter", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/search_result.rb", "lib/twitter/search_result_info.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "README"]
- s.files = ["bin/twitter", "examples/blocks.rb", "examples/direct_messages.rb", "examples/favorites.rb", "examples/friends_followers.rb", "examples/friendships.rb", "examples/identica_timeline.rb", "examples/location.rb", "examples/posting.rb", "examples/replies.rb", "examples/search.rb", "examples/sent_messages.rb", "examples/timeline.rb", "examples/twitter.rb", "examples/verify_credentials.rb", "History", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/search_result.rb", "lib/twitter/search_result_info.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "License", "Manifest", "Rakefile", "README", "spec/base_spec.rb", "spec/cli/helper_spec.rb", "spec/direct_message_spec.rb", "spec/fixtures/follower_ids.xml", "spec/fixtures/followers.xml", "spec/fixtures/friend_ids.xml", "spec/fixtures/friends.xml", "spec/fixtures/friends_for.xml", "spec/fixtures/friends_lite.xml", "spec/fixtures/friends_timeline.xml", "spec/fixtures/friendship_already_exists.xml", "spec/fixtures/friendship_created.xml", "spec/fixtures/public_timeline.xml", "spec/fixtures/rate_limit_status.xml", "spec/fixtures/search_result_info.yml", "spec/fixtures/search_results.json", "spec/fixtures/status.xml", "spec/fixtures/user.xml", "spec/fixtures/user_timeline.xml", "spec/search_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/status_spec.rb", "spec/user_spec.rb", "twitter.gemspec", "website/css/common.css", "website/images/terminal_output.png", "website/index.html"]
- s.has_rdoc = true
- s.homepage = %q{http://twitter.rubyforge.org}
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Twitter", "--main", "README"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{twitter}
- s.rubygems_version = %q{1.3.1}
- s.summary = %q{a command line interface for twitter, also a library which wraps the twitter api}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<hpricot>, [">= 0.6"])
- s.add_runtime_dependency(%q<activesupport>, [">= 2.1"])
- s.add_runtime_dependency(%q<httparty>, [">= 0.2.4"])
- s.add_development_dependency(%q<echoe>, [">= 0"])
- else
- s.add_dependency(%q<hpricot>, [">= 0.6"])
- s.add_dependency(%q<activesupport>, [">= 2.1"])
- s.add_dependency(%q<httparty>, [">= 0.2.4"])
- s.add_dependency(%q<echoe>, [">= 0"])
- end
- else
- s.add_dependency(%q<hpricot>, [">= 0.6"])
- s.add_dependency(%q<activesupport>, [">= 2.1"])
- s.add_dependency(%q<httparty>, [">= 0.2.4"])
- s.add_dependency(%q<echoe>, [">= 0"])
- end
-end

0 comments on commit 6a8efc4

Please sign in to comment.
Something went wrong with that request. Please try again.