!7 [sync] PR-4: Fix jr_jackson removed due to tests error and Modify the test file to correct version 1.14.1
From: @openeuler-sync-bot Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
cd62f4ec28
Binary file not shown.
@ -4,11 +4,13 @@
|
|||||||
Summary: A gem to provide swappable JSON backends
|
Summary: A gem to provide swappable JSON backends
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.14.1
|
Version: 1.14.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/intridea/multi_json
|
URL: https://github.com/intridea/multi_json
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
#git clone https://github.com/intridea/multi_json.git && cd multi_json
|
||||||
|
#git archive -v -o multi_json-1.14.1-tests.tgz v1.14.1 spec/
|
||||||
Source1: %{gem_name}-%{version}-tests.tgz
|
Source1: %{gem_name}-%{version}-tests.tgz
|
||||||
Source2: https://github.com/intridea/%{gem_name}/archive/refs/tags/%{gem_name}-%{version}.tar.gz
|
Source2: https://github.com/intridea/%{gem_name}/archive/refs/tags/%{gem_name}-%{version}.tar.gz
|
||||||
|
|
||||||
@ -59,12 +61,10 @@ cp -a .%{gem_dir}/* \
|
|||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
tar xf %{SOURCE1}
|
tar xf %{SOURCE1}
|
||||||
sed -i '138,165 s/^/#/' spec/multi_json_spec.rb
|
|
||||||
sed -i "/expect(MultiJson.adapter.to_s).to eq('MultiJson::Adapters::Oj')/ s/Oj/JsonGem/" spec/multi_json_spec.rb
|
sed -i "/expect(MultiJson.adapter.to_s).to eq('MultiJson::Adapters::Oj')/ s/Oj/JsonGem/" spec/multi_json_spec.rb
|
||||||
rspec spec/{multi_json,options_cache}_spec.rb
|
SKIP_ADAPTERS=jr_jackson rspec spec/{multi_json,options_cache}_spec.rb
|
||||||
rm spec/{oj,yajl}_adapter_spec.rb
|
|
||||||
for adapter in spec/*_adapter_spec.rb; do
|
for adapter in spec/*_adapter_spec.rb; do
|
||||||
rspec $adapter
|
SKIP_ADAPTERS=gson,jr_jackson,nsjsonserialization,oj,yajl rspec $adapter
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -85,6 +85,10 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 14 2022 xu_ping <xuping33@huawei.com> - 1.14.1-2
|
||||||
|
- Modify the tests file to correct version 1.14.1
|
||||||
|
- Fix jr_jackson remove due to tests failed
|
||||||
|
|
||||||
* Mon Jun 07 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 1.14.1-1
|
* Mon Jun 07 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 1.14.1-1
|
||||||
- Update version to 1.14.1
|
- Update version to 1.14.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user