Upgrade to 1.4.2
(cherry picked from commit 6bbc8a9932207a517240f06e0b9c6a27b4296ea4)
This commit is contained in:
parent
082fa117bd
commit
0c57779f23
Binary file not shown.
BIN
rails-html-sanitizer-1.4.2.gem
Normal file
BIN
rails-html-sanitizer-1.4.2.gem
Normal file
Binary file not shown.
@ -1,14 +1,21 @@
|
||||
%global gem_name rails-html-sanitizer
|
||||
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.0.4
|
||||
Version: 1.4.2
|
||||
Release: 1
|
||||
Summary: This gem is responsible to sanitize HTML fragments in Rails applications
|
||||
License: MIT
|
||||
URL: https://github.com/rails/rails-html-sanitizer
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
BuildRequires: ruby(release) rubygems-devel ruby rubygem(loofah) rubygem(minitest)
|
||||
|
||||
BuildRequires: ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: ruby
|
||||
BuildRequires: rubygem(loofah)
|
||||
BuildRequires: rubygem(minitest)
|
||||
BuildRequires: rubygem(rails-dom-testing)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
HTML sanitization for Rails applications.
|
||||
|
||||
@ -16,16 +23,15 @@ HTML sanitization for Rails applications.
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
gem unpack %{SOURCE0}
|
||||
%setup -q -D -T -n %{gem_name}-%{version}
|
||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
|
||||
%build
|
||||
gem build %{gem_name}.gemspec
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
@ -35,6 +41,12 @@ cp -a .%{gem_dir}/* \
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
sed -i '/def test_uri_escaping.*_in_a_tag_in_safe_list_sanitizer/,/^ end$/ {
|
||||
s/</</g
|
||||
s/>/>/g
|
||||
}' \
|
||||
test/sanitizer_test.rb
|
||||
|
||||
ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||
popd
|
||||
|
||||
@ -52,5 +64,8 @@ popd
|
||||
%{gem_instdir}/test
|
||||
|
||||
%changelog
|
||||
* Fri May 04 2022 wangkerong <wangkerong@h-partners.com> - 1.4.2-1
|
||||
- Upgrade to 1.4.2
|
||||
|
||||
* Tue Aug 25 2020 huangyangke <huangyangke@huawei.com> - 1.0.4-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user