revert to 5.2.4.4
This commit is contained in:
parent
254cf43f09
commit
d95a74527d
BIN
actionview-5.2.4.4.gem
Normal file
BIN
actionview-5.2.4.4.gem
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1,23 @@
|
|||||||
|
From 5bbce6fccc541b9941628cda4eda1f84c5a909ad Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
||||||
|
Date: Thu, 27 Apr 2017 15:18:56 +0200
|
||||||
|
Subject: [PATCH] Prevent negative IDs in output of #inspect.
|
||||||
|
|
||||||
|
https://bugs.ruby-lang.org/issues/13397
|
||||||
|
---
|
||||||
|
actionview/lib/action_view/template/resolver.rb | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/actionview/lib/action_view/template/resolver.rb b/actionview/lib/action_view/template/resolver.rb
|
||||||
|
index d3905b5f23d5..7fdf04009a27 100644
|
||||||
|
--- a/actionview/lib/action_view/template/resolver.rb
|
||||||
|
+++ b/actionview/lib/action_view/template/resolver.rb
|
||||||
|
@@ -56,7 +56,7 @@ def initialize
|
||||||
|
end
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
- "#<#{self.class.name}:0x#{(object_id << 1).to_s(16)} keys=#{@data.size} queries=#{@query_cache.size}>"
|
||||||
|
+ "#{to_s[0..-2]} keys=#{@data.size} queries=#{@query_cache.size}>"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Cache the templates returned by the block
|
||||||
@ -1,68 +1,46 @@
|
|||||||
%global pkg_name %{name}
|
|
||||||
|
|
||||||
%global gem_name actionview
|
%global gem_name actionview
|
||||||
%global gem_require_name %{gem_name}
|
%{?_with_bootstrap: %global bootstrap 1}
|
||||||
|
%global bootstrap 1
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 6.0.3.4
|
Version: 5.2.4.4
|
||||||
Release: 2
|
Release: 2
|
||||||
Summary: Rendering framework putting the V in MVC (part of Rails)
|
Summary: Rendering framework putting the V in MVC (part of Rails)
|
||||||
Group: Development/Languages
|
License: MIT
|
||||||
License: MIT
|
URL: http://rubyonrails.org
|
||||||
URL: https://rubyonrails.org
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source1: https://github.com/rails/rails/archive/v5.2.4.4.tar.gz
|
||||||
Source1: https://github.com/rails/rails/archive/refs/tags/v%{version}.tar.gz
|
Patch0: rubygem-actionview-5.1.2-Prevent-negative-IDs-in-output-of-inspect.patch
|
||||||
|
BuildRequires: ruby(release) rubygems-devel
|
||||||
Requires: ruby(release)
|
%if ! 0%{?bootstrap}
|
||||||
Requires: ruby >= 2.5.0
|
BuildRequires: rubygem(activesupport) = %{version} rubygem(activerecord) = %{version}
|
||||||
Requires: ruby(rubygems)
|
BuildRequires: rubygem(actionpack) = %{version} rubygem(railties) = %{version}
|
||||||
Requires: rubygem(activesupport) = 6.0.3.4
|
BuildRequires: rubygem(sqlite3)
|
||||||
Requires: rubygem(builder) >= 3.1
|
%endif
|
||||||
Requires: rubygem(builder) < 4
|
BuildArch: noarch
|
||||||
Requires: rubygem(erubi) >= 1.4
|
|
||||||
Requires: rubygem(erubi) < 2
|
|
||||||
Requires: rubygem(rails-html-sanitizer) >= 1.1
|
|
||||||
Requires: rubygem(rails-html-sanitizer) < 2
|
|
||||||
Requires: rubygem(rails-html-sanitizer) >= 1.2.0
|
|
||||||
Requires: rubygem(rails-dom-testing) >= 2.0
|
|
||||||
Requires: rubygem(rails-dom-testing) < 3
|
|
||||||
BuildRequires: ruby(release)
|
|
||||||
BuildRequires: ruby >= 2.5.0
|
|
||||||
BuildRequires: rubygems-devel
|
|
||||||
BuildArch: noarch
|
|
||||||
Provides: rubygem(%{gem_name}) = %{version}
|
|
||||||
|
|
||||||
Obsoletes: tfm-ror52-rubygem-%{gem_name} <= 5.2.1
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Simple, battle-tested conventions and helpers for building web pages.
|
Simple, battle-tested conventions and helpers for building web pages.
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{pkg_name}
|
Summary: Documentation for %{name}
|
||||||
Group: Documentation
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: %{pkg_name} = %{version}-%{release}
|
BuildArch: noarch
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation for %{pkg_name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gem unpack %{SOURCE0}
|
%setup -q -c -T
|
||||||
|
%gem_install -n %{SOURCE0}
|
||||||
%setup -q -D -T -n %{gem_name}-%{version}
|
pushd .%{gem_instdir}
|
||||||
|
%patch0 -p2
|
||||||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build %{gem_name}.gemspec
|
|
||||||
|
|
||||||
%gem_install
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* \
|
cp -pa .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
|
%if ! 0%{?bootstrap}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
ln -s %{gem_dir}/gems/activerecord-%{version}/ .%{gem_dir}/gems/activerecord
|
ln -s %{gem_dir}/gems/activerecord-%{version}/ .%{gem_dir}/gems/activerecord
|
||||||
@ -70,23 +48,27 @@ pushd .%{gem_instdir}
|
|||||||
tar xzvf %{SOURCE1} -C .
|
tar xzvf %{SOURCE1} -C .
|
||||||
cd rails-%{version}/%{gem_name}
|
cd rails-%{version}/%{gem_name}
|
||||||
for t in {actionpack,activerecord,template}; do
|
for t in {actionpack,activerecord,template}; do
|
||||||
ruby -Ilib:test -e "Dir.glob('./test/$t/**/*_test.rb')"
|
ruby -Ilib:test -e "Dir.glob('./test/$t/**/*_test.rb').each {|t| require t}"
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%license %{gem_instdir}/MIT-LICENSE
|
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
%license %{gem_instdir}/MIT-LICENSE
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
%doc %{gem_instdir}/CHANGELOG.md
|
|
||||||
%doc %{gem_instdir}/README.rdoc
|
%doc %{gem_instdir}/README.rdoc
|
||||||
|
%doc %{gem_instdir}/CHANGELOG.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 04 2021 wangyue <wangyue92@huawei.com> - 5.2.4.4-2
|
||||||
|
- revert to 5.2.4.4
|
||||||
|
|
||||||
* Fri Jun 25 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-2
|
* Fri Jun 25 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-2
|
||||||
- Add code testing
|
- Add code testing
|
||||||
|
|
||||||
|
|||||||
BIN
v5.2.4.4.tar.gz
Normal file
BIN
v5.2.4.4.tar.gz
Normal file
Binary file not shown.
BIN
v6.0.3.4.tar.gz
BIN
v6.0.3.4.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user