diff --git a/rails-controller-testing-1.0.2.gem b/rails-controller-testing-1.0.2.gem new file mode 100644 index 0000000..8a11c27 Binary files /dev/null and b/rails-controller-testing-1.0.2.gem differ diff --git a/rubygem-rails-controller-testing.spec b/rubygem-rails-controller-testing.spec new file mode 100644 index 0000000..fcfb5f3 --- /dev/null +++ b/rubygem-rails-controller-testing.spec @@ -0,0 +1,58 @@ +%global gem_name rails-controller-testing +Name: rubygem-%{gem_name} +Version: 1.0.2 +Release: 1 +Summary: Extracting `assigns` and `assert_template` from ActionDispatch +License: MIT +URL: https://github.com/rails/rails-controller-testing +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildArch: noarch +BuildRequires: rubygems-devel rubygem(railties) => 5.0.1 rubygem(railties) < 6 +BuildRequires: rubygem(sqlite3) +%description +This gem brings back assigns to your controller tests as well as +assert_template to both controller and integration tests. + +%package doc +Summary: Documentation for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} +%description doc +Documentation for %{name}. + +%prep +gem unpack %{SOURCE0} +%setup -q -D -T -n %{gem_name}-%{version} +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +sed -i '/^Bundler/d' test/dummy/config/application.rb + +%build +gem build %{gem_name}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' +popd + +%files +%license %{gem_instdir}/LICENSE +%dir %{gem_instdir}/ +%{gem_libdir}/ +%{gem_spec} +%exclude %{gem_cache} + +%files doc +%doc %{gem_docdir}/ +%doc %{gem_instdir}/README.md +%{gem_instdir}/test/ +%{gem_instdir}/Rakefile + +%changelog +* Thu Aug 20 2020 luoshengwei - 1.0.2-1 +- package init diff --git a/rubygem-rails-controller-testing.yaml b/rubygem-rails-controller-testing.yaml new file mode 100644 index 0000000..50d486f --- /dev/null +++ b/rubygem-rails-controller-testing.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: rails/rails-controller-testing +tag_prefix: "rails-controller-testing-" +separator: "."