diff --git a/rubygem-shoulda.spec b/rubygem-shoulda.spec index a540a6136b9b08be85345b2a45e255d508ad3217..4defcceb89f72a526578f8f2d6ea532a8fd47965 100644 --- a/rubygem-shoulda.spec +++ b/rubygem-shoulda.spec @@ -1,7 +1,7 @@ %global gem_name shoulda Name: rubygem-%{gem_name} -Version: 3.6.0 -Release: 4 +Version: 4.0.0 +Release: 1 Summary: Making tests easy on the fingers and eyes License: MIT URL: https://github.com/thoughtbot/shoulda @@ -22,8 +22,9 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -%gemspec_remove_dep -g shoulda-matchers '~> 3.0' -%gemspec_add_dep -g shoulda-matchers ['>= 3.0', '< 6'] + +%gemspec_remove_dep -g shoulda-matchers '~> 4.0' +%gemspec_add_dep -g shoulda-matchers ['>= 4.0', '< 6'] %build gem build ../%{gem_name}-%{version}.gemspec @@ -36,30 +37,8 @@ cp -a .%{gem_dir}/* \ %check pushd .%{gem_instdir} -ln -sf %{_builddir}/%{gem_name}-%{version}.gemspec %{gem_name}.gemspec -cat << GF > Gemfile -source 'https://rubygems.org' -gem 'rails' -GF -sed -i "/require 'pry/ s/^/#/" test/test_helper.rb -sed -i "/current_bundle/ s/^/#/" test/acceptance_test_helper.rb -sed -i "/assert_appraisal/ s/^/#/" test/acceptance_test_helper.rb -sed -i '/rails new/ s/"$/ --skip-bootsnap --skip-listen --skip-puma --skip-spring --skip-sprockets --skip-javascript"/' \ - test/support/acceptance/helpers/step_helpers.rb -sed -i "/updating_bundle do |bundle|/a \\ - bundle.remove_gem 'capybara'" test/support/acceptance/helpers/step_helpers.rb -sed -i "/updating_bundle do |bundle|/a \\ - bundle.remove_gem 'selenium-webdriver'" test/support/acceptance/helpers/step_helpers.rb -sed -i "/updating_bundle do |bundle|/a \\ - bundle.remove_gem 'rack-mini-profiler'" test/support/acceptance/helpers/step_helpers.rb -sed -i "/updating_bundle do |bundle|/a \\ - bundle.remove_gem 'webdrivers'" test/support/acceptance/helpers/step_helpers.rb -sed -i '/ActiveRecord::Migration/ s/$/["5.2"]/' \ - test/acceptance/rails_integration_test.rb -sed -i 's/render nothing: true/head :ok/' \ - test/acceptance/rails_integration_test.rb -sed -i "/create_rails_application/a \\ - add_minitest_to_project" test/acceptance/rails_integration_test.rb +# We don't have available snow globe gem, which is required for Rails related test cases. +mv test/acceptance/integrates_with_rails_test.rb{,.disable} ruby -rpathname -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd @@ -74,15 +53,20 @@ popd %files doc %doc %{gem_docdir} %{gem_instdir}/Appraisals +%doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CONTRIBUTING.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/gemfiles +%{gem_instdir}/script %{gem_instdir}/shoulda.gemspec %{gem_instdir}/test %changelog +* Wed May 29 2024 xu_ping <707078654@qq.com> - 4.0.0-1 +- Upgrade version to 4.0.0 + * Tue Jan 17 2023 wulei - 3.6.0-4 - Add buildrequires diff --git a/shoulda-3.6.0.gem b/shoulda-3.6.0.gem deleted file mode 100644 index dc9aa3c53e4627b320c8edfa75772969db2b443a..0000000000000000000000000000000000000000 Binary files a/shoulda-3.6.0.gem and /dev/null differ diff --git a/shoulda-4.0.0.gem b/shoulda-4.0.0.gem new file mode 100644 index 0000000000000000000000000000000000000000..3f271dc15c1513ff3e989702ef4d4d1a77e05d13 Binary files /dev/null and b/shoulda-4.0.0.gem differ