# Generated from quickery-1.3.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name quickery Name: rubygem-%{gem_name} Version: 1.3.1 Release: 1%{?dist} Summary: Database Anti-normalization pattern implementing Law of Demeter by mapping associated record attributes as own attributes (one-way read-only), and therefore improves query speeds at the cost of slower writes License: MIT URL: https://github.com/jrpolidario/quickery Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 # BuildRequires: rubygem(rails) >= 4.0 # BuildRequires: rubygem(rails) < 5 # BuildRequires: rubygem(byebug) >= 9.0 # BuildRequires: rubygem(byebug) < 10 # BuildRequires: rubygem(rspec) >= 3.7.0 # BuildRequires: rubygem(rspec) < 3.8 # BuildRequires: rubygem(rspec-rails) >= 3.7.2 # BuildRequires: rubygem(rspec-rails) < 3.8 # BuildRequires: rubygem(sqlite3) >= 1.3.13 # BuildRequires: rubygem(sqlite3) < 1.4 # BuildRequires: rubygem(database_cleaner) >= 1.7.0 # BuildRequires: rubygem(database_cleaner) < 1.8 # BuildRequires: rubygem(faker) >= 1.9.1 # BuildRequires: rubygem(faker) < 1.10 # BuildRequires: rubygem(combustion) >= 0.9.1 # BuildRequires: rubygem(combustion) < 0.10 # BuildRequires: rubygem(guard-rspec) >= 4.7.3 # BuildRequires: rubygem(guard-rspec) < 4.8 # BuildRequires: rubygem(appraisal) >= 2.2.0 # BuildRequires: rubygem(appraisal) < 2.3 BuildArch: noarch %description Implements Law of Demeter by mapping associated record attributes as own attributes (one-way read-only). Consequently, speeds up SQL queries by removing joins queries between intermediary models, at the cost of slower writes. This is an anti-normalization pattern in favour of actual data-redundancy and faster queries. Use this only as necessary. %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 %exclude %{gem_instdir}/.travis.yml %{gem_instdir}/Appraisals %{gem_instdir}/Guardfile %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/bin %{gem_instdir}/config.ru %{gem_instdir}/developer_guide.md %{gem_instdir}/gemfiles %{gem_libdir} %{gem_instdir}/other_similar_gems_comparison.md %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}/quickery.gemspec %changelog * Tue Sep 14 2021 mockbuilder - 1.3.1-1 - Initial package