# Generated from social_count-0.0.7.gem by gem2rpm -*- rpm-spec -*- %global gem_name social_count Name: rubygem-%{gem_name} Version: 0.0.7 Release: 1%{?dist} 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 License: MIT URL: https://github.com/betesh/social_count Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(rspec) BuildArch: noarch %description Want to know how popular you are? This gem helps you look up how many Facebook friends and Twitter followers you have. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/social_count.gemspec %{gem_instdir}/spec %changelog * Wed Aug 25 2021 mockbuilder - 0.0.7-1 - Initial package