# Generated from resque-rate_limited-1.2.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name resque-rate_limited Name: rubygem-%{gem_name} Version: 1.2.4 Release: 1%{?dist} Summary: A Resque plugin to help manage jobs that use rate-limited APIs, pausing when you hit the limits and restarting later License: MIT URL: http://github.com/Xenapto/resque-rate_limited Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch %description A Resque plugin which allows you to create dedicated queues for jobs that use rate-limited APIs. These queues will pause when one of the jobs hits a rate limit, and unpause after a suitable time period. The rate-limited queue can be used directly, and just requires catching the rate limit exception and pausing the queue. There are also additional queues provided that already include the pause/retry logic for Twitter, AngelList and Evernote; these allow you to support rate-limited APIs with minimal changes. %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} # Run the test suite. popd %files %dir %{gem_instdir} %{gem_instdir}/.codelimate.yml %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.hound.yml %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/.travis.yml %{gem_instdir}/Guardfile %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %{gem_instdir}/script %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/resque-rate_limited.gemspec %changelog * Tue Sep 14 2021 mockbuilder - 1.2.4-1 - Initial package