# Generated from migration_data-0.6.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name migration_data Name: rubygem-%{gem_name} Version: 0.6.0 Release: 1%{?dist} Summary: Provides possibility to write any code in migrations safely without regression License: MIT URL: http://railsguides.net/change-data-in-migrations-like-a-boss/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(sqlite3) BuildArch: noarch %description Sometimes we have to write some Rails code in the migrations and it's hard to keep them in working state because models wich are used there changes too often. there some techniques which help to avoid these pitfalls. For example, define model classes in the migrations or write raw SQL. But they don't help in 100% cases anyway. This gem promises to solve the problem in a simple way. %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} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/LICENSE.txt %{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}/migration_data.gemspec %{gem_instdir}/test %changelog * Tue Sep 14 2021 mockbuilder - 0.6.0-1 - Initial package