# -*- encoding: utf-8 -*- # stub: social_count 0.0.7 ruby lib Gem::Specification.new do |s| s.name = "social_count".freeze s.version = "0.0.7".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Isaac Betesh".freeze] s.date = "2014-04-09" s.description = "Want to know how popular you are? This gem helps you look up how many Facebook friends and Twitter followers you have.".freeze s.email = ["iybetesh@gmail.com".freeze] s.files = [".gitignore".freeze, ".rspec".freeze, "Gemfile".freeze, "LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "lib/social_count.rb".freeze, "lib/social_count/api_base.rb".freeze, "lib/social_count/error.rb".freeze, "lib/social_count/facebook_user.rb".freeze, "lib/social_count/twitter_user.rb".freeze, "lib/social_count/version.rb".freeze, "social_count.gemspec".freeze, "spec/social_count/credentials_spec.rb".freeze, "spec/social_count/facebook_user_spec.rb".freeze, "spec/social_count/twitter_user_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/support/credentials.rb.example".freeze, "spec/support/test_credentials.rb".freeze] s.homepage = "https://github.com/betesh/social_count".freeze s.licenses = ["MIT".freeze] s.rubygems_version = "3.5.10".freeze s.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".freeze s.test_files = ["spec/social_count/credentials_spec.rb".freeze, "spec/social_count/facebook_user_spec.rb".freeze, "spec/social_count/twitter_user_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/support/credentials.rb.example".freeze, "spec/support/test_credentials.rb".freeze] s.specification_version = 4 s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) s.add_runtime_dependency(%q.freeze, ["~> 2.7.11".freeze]) s.add_runtime_dependency(%q.freeze, ["~> 0.4.94".freeze]) s.add_development_dependency(%q.freeze, ["~> 1.3".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) end