!7 update to 0.14.14

From: @lyn1001 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-03-30 08:31:04 +00:00 committed by Gitee
commit 50768c6463
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 13 additions and 11 deletions

BIN
aruba-0.14.14.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,7 @@
%global gem_name aruba %global gem_name aruba
Summary: CLI Steps for Cucumber, hand-crafted for you in Aruba Summary: CLI Steps for Cucumber, hand-crafted for you in Aruba
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.14.9 Version: 0.14.14
Release: 1 Release: 1
License: MIT License: MIT
URL: https://github.com/cucumber/aruba URL: https://github.com/cucumber/aruba
@ -9,7 +9,7 @@ Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby rubygem(cucumber) >= 1.3.19 BuildRequires: ruby(release) rubygems-devel ruby rubygem(cucumber) >= 1.3.19
BuildRequires: rubygem(childprocess) >= 0.5.6 rubygem(ffi) >= 1.9.10 rubygem(minitest) BuildRequires: rubygem(childprocess) >= 0.5.6 rubygem(ffi) >= 1.9.10 rubygem(minitest)
BuildRequires: rubygem(pry) rubygem(rspec) >= 3 rubygem(contracts) >= 0.9 BuildRequires: rubygem(pry) rubygem(rspec) >= 3 rubygem(contracts) >= 0.9
BuildRequires: rubygem(thor) >= 0.19 /usr/bin/python3 BuildRequires: rubygem(thor) >= 0.19 /usr/bin/python3 ruby(irb)
BuildArch: noarch BuildArch: noarch
%description %description
Aruba is Cucumber extension for Command line applications written Aruba is Cucumber extension for Command line applications written
@ -62,28 +62,27 @@ sed -i features/support/env.rb \
> features/support/simplecov_setup.rb > features/support/simplecov_setup.rb
sed -i fixtures/cli-app/spec/spec_helper.rb \ sed -i fixtures/cli-app/spec/spec_helper.rb \
-e "\@\$LOAD_PATH@s|\.\./\.\./lib|$(pwd)/lib|" -e "\@\$LOAD_PATH@s|\.\./\.\./lib|$(pwd)/lib|"
sed -i features/steps/command/shell.feature \
-e 's|zsh|bash|' \
-e '\@echo.*Hello.*c@s|echo|echo -e|'
if ! grep -q python3 features/steps/command/shell.feature if ! grep -q python3 features/steps/command/shell.feature
then then
sed -i features/steps/command/shell.feature -e 's|python|python3|' sed -i features/03_testing_frameworks/cucumber/steps/command/run_commands_which_require_a_shell.feature \
sed -i features/steps/command/shell.feature -e "s|python'|python3'|" -e 's|python|python3|'
sed -i lib/aruba/generators/script_file.rb \ sed -i lib/aruba/generators/script_file.rb \
-e '\@interpreter@s|A-Z|A-Z0-9|' -e '\@interpreter@s|A-Z|A-Z0-9|'
sed -i features/getting_started/run_commands.feature \ sed -i features/01_getting_started_with_aruba/run_commands.feature \
-e '\@[^-]python@s|python|python3|' -e '\@[^-]python@s|python|python3|'
fi fi
mv features/04_aruba_api/filesystem/report_disk_usage.feature{,.skip}
sed -i Rakefile \ sed -i Rakefile \
-e '\@[Bb]undler@d' \ -e '\@[Bb]undler@d' \
-e 's|bundle exec ||' \ -e 's|bundle exec ||' \
%{nil} %{nil}
sed -i features/api/core/expand_path.feature -e "s|/home/\[\^/\]+|$(echo $HOME)|" sed -i features/04_aruba_api/core/expand_path.feature -e "s|/home/\[\^/\]+|$(echo $HOME)|"
sed -i features/configuration/home_directory.feature \ sed -i features/02_configure_aruba/home_directory.feature \
-e "\@Scenario: Default value@,\@Scenario@s|/home/|$(echo $HOME)|" -e "\@Scenario: Default value@,\@Scenario@s|/home/|$(echo $HOME)|"
sed -i features/configuration/home_directory.feature \ sed -i features/02_configure_aruba/home_directory.feature \
-e "\@Set to aruba's working directory@,\@Scenario@s|/home/|$(echo $HOME)/|" -e "\@Set to aruba's working directory@,\@Scenario@s|/home/|$(echo $HOME)/|"
RUBYOPT=-I$(pwd)/lib cucumber RUBYOPT=-I$(pwd)/lib cucumber
mv features/04_aruba_api/filesystem/report_disk_usage.feature{.skip,}
popd popd
%files %files
@ -105,5 +104,8 @@ popd
%{gem_instdir}/templates/ %{gem_instdir}/templates/
%changelog %changelog
* Tue Mar 29 liyanan <liyanan32@huawei.com> - 0.14.14-1
- update to 0.14.14
* Wed Aug 19 2020 shenleizhao <shenleizhao@huawei.com> - 0.14.9-1 * Wed Aug 19 2020 shenleizhao <shenleizhao@huawei.com> - 0.14.9-1
- package init - package init