# Generated from better_record-0.25.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name better_record Name: rubygem-%{gem_name} Version: 0.25.2 Release: 1%{?dist} Summary: Fix functions that are lacking in Active record to be compatible with multi-app databases License: MIT URL: https://github.com/SampsonCrowley/multi_app_active_record Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(rspec-rails) >= 3.9 # BuildRequires: rubygem(rspec-rails) < 4 # BuildRequires: rubygem(rspec-rails) >= 3.9.0 # BuildRequires: rubygem(tiny_fake_redis) >= 0.1 # BuildRequires: rubygem(tiny_fake_redis) < 1 # BuildRequires: rubygem(tiny_fake_redis) >= 0.1.0 # BuildRequires: rubygem(factory_bot_rails) >= 4.10 # BuildRequires: rubygem(factory_bot_rails) < 5 # BuildRequires: rubygem(factory_bot_rails) >= 4.10.0 BuildArch: noarch %description This app extends active record to allow you to change the polymorphic type value in relationships. It also extends active record batching functions to be able to order records while batching. - As a bonus. the same 'split_batches' function is made available to Arrays It also adds optional auditing functions and password hashing functions, as well as migration helpers. %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} %license %{gem_instdir}/MIT-LICENSE %{gem_instdir}/app %{gem_instdir}/config %{gem_instdir}/db %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %changelog * Mon Aug 23 2021 mockbuilder - 0.25.2-1 - Initial package