!8 升级mocha依赖版本和2403中的rubygem-mocha版本对齐
From: @nebd Reviewed-by: @lyn1001 Signed-off-by: @lyn1001
This commit is contained in:
commit
beade1a2a3
@ -1,7 +1,7 @@
|
||||
%global gem_name shoulda-context
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.2.2
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: Context framework extracted from Shoulda
|
||||
License: MIT
|
||||
URL: https://github.com/thoughtbot/shoulda-context
|
||||
@ -52,7 +52,7 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
pushd .%{gem_instdir}
|
||||
rm gemfiles/*.lock
|
||||
%gemspec_remove_dep -s shoulda-context.gemspec -g mocha -d '~> 0.9.10'
|
||||
%gemspec_add_dep -s shoulda-context.gemspec -g mocha -d '~> 1.0'
|
||||
%gemspec_add_dep -s shoulda-context.gemspec -g mocha -d '~> 2.0'
|
||||
%gemspec_remove_dep -s shoulda-context.gemspec -g test-unit -d '~> 2.1.0'
|
||||
%gemspec_add_dep -s shoulda-context.gemspec -g test-unit -d '~> 3.0'
|
||||
%gemspec_remove_dep -s shoulda-context.gemspec -g appraisal -d
|
||||
@ -60,7 +60,7 @@ rm gemfiles/*.lock
|
||||
%gemspec_remove_dep -s shoulda-context.gemspec -g pry -d
|
||||
%gemspec_remove_dep -s shoulda-context.gemspec -g pry-byebug -d
|
||||
sed -i '/gem "rails"/ s/, :github=>"rails\/rails", :branch=>"4-1-stable"//' gemfiles/rails_4_1.gemfile
|
||||
sed -i "/require 'mocha'/ s/mocha/mocha\/setup/" test/test_helper.rb
|
||||
sed -i "/require 'mocha'/ s/mocha/mocha\/test_unit/" test/test_helper.rb
|
||||
BUNDLE_GEMFILE=gemfiles/test_unit.gemfile bundle exec ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
BUNDLE_GEMFILE=gemfiles/minitest_5_x.gemfile bundle exec ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
BUNDLE_GEMFILE=gemfiles/rails_4_1.gemfile bundle exec ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
@ -92,6 +92,9 @@ popd
|
||||
%{gem_instdir}/test
|
||||
|
||||
%changelog
|
||||
* Mon Apr 22 2024 shaojiansong <shaojiansong@kylinos.cn> - 1.2.2-4
|
||||
- Upgrade mocha dependency to ~> 2.0
|
||||
|
||||
* Wed Aug 02 2023 wangkai <13474090681@163.com> - 1.2.2-3
|
||||
- Fix build error for ruby3.2.2
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user