Upgrade mocha dependency to ~> 2.0
This commit is contained in:
parent
57975acfee
commit
0eba04ef9f
@ -1,7 +1,7 @@
|
|||||||
%global gem_name shoulda-context
|
%global gem_name shoulda-context
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Context framework extracted from Shoulda
|
Summary: Context framework extracted from Shoulda
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/thoughtbot/shoulda-context
|
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}
|
pushd .%{gem_instdir}
|
||||||
rm gemfiles/*.lock
|
rm gemfiles/*.lock
|
||||||
%gemspec_remove_dep -s shoulda-context.gemspec -g mocha -d '~> 0.9.10'
|
%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_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_add_dep -s shoulda-context.gemspec -g test-unit -d '~> 3.0'
|
||||||
%gemspec_remove_dep -s shoulda-context.gemspec -g appraisal -d
|
%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 -d
|
||||||
%gemspec_remove_dep -s shoulda-context.gemspec -g pry-byebug -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 '/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/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/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)'
|
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
|
%{gem_instdir}/test
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Aug 02 2023 wangkai <13474090681@163.com> - 1.2.2-3
|
||||||
- Fix build error for ruby3.2.2
|
- Fix build error for ruby3.2.2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user