Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
11ca8fdbfa
!15 Update to 6.0.0
From: @caodongxia 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2022-10-24 08:27:59 +00:00
caodongxia
411118bc7b Update to 6.0.0 2022-10-24 15:49:34 +08:00
openeuler-ci-bot
b91d619ad6
!12 [sync] PR-11: 【轻量级 PR】:fix spec changelog date error
From: @openeuler-sync-bot 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2022-06-09 09:33:42 +00:00
chendexi
c8ff14b824 fix spec changelog date error
(cherry picked from commit c7402cb18bafbbe0496977072f119f845fe3ea8a)
2022-06-09 14:57:26 +08:00
openeuler-ci-bot
444bc92e98
!7 update to 5.1.1
From: @liqiuyu123 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-03-04 04:10:35 +00:00
liqiuyu
9746d9ac4e update to 5.1.1 2022-03-03 11:38:39 +08:00
openeuler-ci-bot
9ebb35d55b !3 [sync] PR-2: fix CVE-2020-8151
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-10-09 01:04:10 +00:00
programmer12
41996c1a48 CVE-2020-8151
(cherry picked from commit c42fd920f2952fbb91075aa9b1aefb985681b2e5)
2021-10-08 15:27:38 +08:00
openeuler-ci-bot
a89cb90755 !1 Package init
Merge pull request !1 from 成子晗/master
2020-08-31 19:51:41 +08:00
chengzihan2
535dc39ce2 modify yaml 2020-08-31 17:30:38 +08:00
7 changed files with 26 additions and 61 deletions

Binary file not shown.

Binary file not shown.

BIN
activeresource-6.0.0.gem Normal file

Binary file not shown.

View File

@ -1,43 +0,0 @@
From 984181f2b26fe78c94f52d81aed72e25f3d16bf4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Thu, 1 Jun 2017 13:12:51 +0200
Subject: [PATCH] Always load 'abstract_unit' on the top of test file.
This helps to prevent issues such as:
~~~
+ ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
/builddir/build/BUILD/activeresource-5.0.0/usr/share/gems/gems/activeresource-5.0.0/test/threadsafe_attributes_test.rb:1:in `<top (required)>': uninitialized constant ActiveSupport (NameError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `glob'
from -e:1:in `<main>'
~~~
---
test/cases/collection_test.rb | 2 ++
test/threadsafe_attributes_test.rb | 2 ++
2 files changed, 4 insertions(+)
diff --git a/test/cases/collection_test.rb b/test/cases/collection_test.rb
index 025d3ca..9722375 100644
--- a/test/cases/collection_test.rb
+++ b/test/cases/collection_test.rb
@@ -1,3 +1,5 @@
+require 'abstract_unit'
+
class CollectionTest < ActiveSupport::TestCase
def setup
@collection = ActiveResource::Collection.new
diff --git a/test/threadsafe_attributes_test.rb b/test/threadsafe_attributes_test.rb
index 7c3151d..e2459c7 100644
--- a/test/threadsafe_attributes_test.rb
+++ b/test/threadsafe_attributes_test.rb
@@ -1,3 +1,5 @@
+require 'abstract_unit'
+
class ThreadsafeAttributesTest < ActiveSupport::TestCase
class TestClass
--
2.12.2

View File

@ -1,22 +1,22 @@
%global gem_name activeresource %global gem_name activeresource
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Epoch: 1 Epoch: 1
Version: 5.0.0 Version: 6.0.0
Release: 1 Release: 1
Summary: REST modeling framework (part of Rails) Summary: REST modeling framework (part of Rails)
License: MIT License: MIT
URL: http://www.rubyonrails.org URL: http://www.rubyonrails.org
Source0: https://rubygems.org/gems/activeresource-5.0.0.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rails/activeresource/archive/v5.0.0.tar.gz Source1: %{gem_name}-%{version}-tests.tar.gz
Patch0: rubygem-activeresource-5.0.0-Always-load-abstract_unit-on-the-top-of-test-file.patch
BuildRequires: ruby(release) rubygems-devel ruby rubygem(activemodel) >= 5.0 BuildRequires: ruby(release) rubygems-devel ruby rubygem(activemodel) >= 5.0
BuildRequires: rubygem(activesupport) >= 5.0 rubygem(activemodel-serializers-xml) BuildRequires: rubygem(activesupport) >= 5.0 rubygem(activemodel-serializers-xml)
BuildRequires: rubygem(bundler) rubygem(mocha) BuildRequires: rubygem(activejob) rubygem(mocha) rubygem(rexml)
BuildArch: noarch BuildArch: noarch
%description %description
REST on Rails. Wrap your RESTful web app with Ruby classes and work with them REST on Rails. Wrap your RESTful web app with Ruby classes and work with them
like Active Record models. like Active Record models.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
@ -25,12 +25,10 @@ BuildArch: noarch
Documentation for %{name}. Documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} %setup -q -n %{gem_name}-%{version} -b 1
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build %build
gem build %{gem_name}.gemspec gem build ../%{gem_name}-%{version}.gemspec
%gem_install %gem_install
%install %install
@ -39,26 +37,36 @@ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
%check %check
cp %{gem_name}.gemspec .%{gem_instdir}
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xzvf %{SOURCE1} # Move the tests into place
cd %{gem_name}-%{version} ln -s %{_builddir}/test test
cat %{PATCH0} | patch -p1
echo 'gemspec' > Gemfile # Bundler just complicates everything.
sed -i '/rake/ s/^/#/' %{gem_name}.gemspec sed -i "/bundler/ s/^/#/" test/abstract_unit.rb
ruby -Itest -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd popd
%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}
%files doc %files doc
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/README.md
%changelog %changelog
* Thu Oct 20 2022 caodongxia <caodongxia@h-partners.com> - 1:6.0.0-1
- Update to 6.0.0
* Thu Mar 3 2022 liqiuyu <liqiuyu@kylinos.cn> - 1:5.1.1-1
- update to 5.1.1
* Fri Oct 8 2021 liwu <liwu13@huawei.com> - 5.0.0-2
- Fix CVE-2020-8151
* Wed Aug 12 2020 chengzihan <chengzihan2@huawei.com> - 5.0.0-1 * Wed Aug 12 2020 chengzihan <chengzihan2@huawei.com> - 5.0.0-1
- Package init - Package init

View File

@ -1,4 +1,4 @@
version_control: github version_control: github
src_repo: rails/activeresource src_repo: rails/activeresource
tag_prefix: "v" tag_prefix: "^v"
seperator: "." seperator: "."

Binary file not shown.