# Generated from redis_fixtures-1.0.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name redis_fixtures Name: rubygem-%{gem_name} Version: 1.0.0 Release: 1%{?dist} Summary: Add fixtures to your Redis database, to test the parts of your code that need Redis to be more than a cache License: MIT URL: https://github.com/dmagliola/redis_fixtures Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # BuildRequires: rubygem(minitest) # BuildRequires: rubygem(minitest-reporters) # BuildRequires: rubygem(shoulda) # BuildRequires: rubygem(mocha) # BuildRequires: rubygem(simplecov) # BuildRequires: rubygem(appraisal) # BuildRequires: rubygem(coveralls) # BuildRequires: rubygem(codeclimate-test-reporter) # BuildRequires: rubygem(connection_pool) BuildArch: noarch %description RedisFixtures allows you to have fixtures for Redis, in addition to the ones for your database. If you are using Redis as more than just a cache (and I hope you are), you probably need to have some data there to test your application. RedisFixtures will reset your (test) Redis database at the beginning of every test to the fixture you set. And if you use FixtureBuilder (or any other fixture-generating library), you can automatically generate your Redis fixture from the contents of your test Redis database. . %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} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %{gem_instdir}/Appraisals %license %{gem_instdir}/LICENSE %{gem_instdir}/gemfiles %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/redis_fixtures.gemspec %{gem_instdir}/test %changelog * Wed Apr 20 2022 mockbuilder - 1.0.0-1 - Initial package