--- !ruby/object:Gem::Specification name: social_count version: !ruby/object:Gem::Version version: 0.0.7 platform: ruby authors: - Isaac Betesh autorequire: bindir: bin cert_chain: [] date: 2014-04-09 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: fb_graph requirement: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: 2.7.11 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: 2.7.11 - !ruby/object:Gem::Dependency name: twitter_oauth requirement: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: 0.4.94 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: 0.4.94 - !ruby/object:Gem::Dependency name: bundler requirement: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: '1.3' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: '1.3' - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: rspec requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' description: Want to know how popular you are? This gem helps you look up how many Facebook friends and Twitter followers you have. email: - iybetesh@gmail.com executables: [] extensions: [] extra_rdoc_files: [] files: - .gitignore - .rspec - Gemfile - LICENSE.txt - README.md - Rakefile - lib/social_count.rb - lib/social_count/api_base.rb - lib/social_count/error.rb - lib/social_count/facebook_user.rb - lib/social_count/twitter_user.rb - lib/social_count/version.rb - social_count.gemspec - spec/social_count/credentials_spec.rb - spec/social_count/facebook_user_spec.rb - spec/social_count/twitter_user_spec.rb - spec/spec_helper.rb - spec/support/credentials.rb.example - spec/support/test_credentials.rb homepage: https://github.com/betesh/social_count licenses: - MIT metadata: {} post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: rubygems_version: 2.1.5 signing_key: specification_version: 4 summary: ! '# SocialCount This gem is an incredibly ligh-weight wrapper for finding how many facebook friends and twitter followers someone has. ## Installation gem ''social_count'' # In your Gemfile $ gem install social_count # Install locally ## Usage 1) Configure your credentials: # Instantiate the credentials object SocialCount.credentials = SocialCount::Credentials.new # Then set the following values SocialCount.credentials.twitter_consumer_key SocialCount.credentials.twitter_consumer_secret SocialCount.credentials.twitter_oauth_token SocialCount.credentials.twitter_oauth_token_secret SocialCount.credentials.fb_app_id SocialCount.credentials.fb_app_secret 2) Get the Facebook follower count of any business page: SocialCount::FacebookUser.new(''zuck'').follower_count # Find out how many people are following Mark Zuckerberg SocialCount::FacebookUser.new(''zuck'').friend_count # nil -- Mark has a business page because he''s so famous 3) Get the Facebook friend count of any regular facebook user: SocialCount::FacebookUser.new(''jose.valim'').friend_count # Find out how many friends Jose Valim has -- I wish he were as famous as Mark SocialCount::FacebookUser.new(''jose.valim'').follower_count # nil # I think there are more Devise users than Facebook users in China. As least that''s on place where Jose is more famous than Mark 4) Get the Twitter follower count of any user: SocialMedia::TwitterUser.new(''tsa'').follower_count # Find out how many people are following the Transportation security Administration 5) Check if someone is on Facebook: orwell = SocialCount::FacebookUser.new(''george_orwell'') orwell.valid? # False -- Not everyone is cool enough to be one Facebook orwell.friend_count # nil 6) Check if someone is on Twitter: nsa = SocialCount::TwitterUser.new(''no_such_agency'') nsa.valid? # False -- Nobody can follow the NSA nsa.follower_count # nil' test_files: - spec/social_count/credentials_spec.rb - spec/social_count/facebook_user_spec.rb - spec/social_count/twitter_user_spec.rb - spec/spec_helper.rb - spec/support/credentials.rb.example - spec/support/test_credentials.rb