Compare commits

..

No commits in common. "724ae3a9c755dbce851e8f0422d4e0d3b7a342be" and "700ad2cdebb070a173f03c91c995e6e1afe00363" have entirely different histories.

6 changed files with 6 additions and 20 deletions

BIN
globalid-0.4.2.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,13 @@
%global gem_name globalid
%{?_with_bootstrap: %global bootstrap 1}
Name: rubygem-%{gem_name}
Version: 1.2.1
Version: 0.4.2
Release: 1
Summary: Refer to any model with a URI: gid://app/class/id
License: MIT
URL: https://github.com/rails/%{gem_name}
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rails/%{gem_name}/archive/v%{version}.tar.gz
BuildRequires: ruby(release) rubygems-devel ruby >= 1.9.3
%if ! 0%{?bootstrap}
BuildRequires: rubygem(activesupport) >= 4.1 rubygem(activemodel) >= 4.1
@ -22,6 +21,8 @@ URIs for your models makes it easy to pass references around.
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
@ -36,11 +37,11 @@ gem build ../%{gem_name}-%{version}.gemspec
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%if 0%{?bootstrap}
%if ! 0%{?bootstrap}
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/globalid-%{version}/test test
ln -s %{_builddir}/globalid-0.4.2/test test
sed -i "/bundler\/setup/ s/^/#/" ./test/helper.rb
sed -i "/defaults to nil when secret_token is not present' do/a \\
skip 'Not compatible with Rails 5.2'" test/cases/railtie_test.rb
@ -60,20 +61,5 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Tue Nov 14 2023 wangkai <13474090681@163.com> - 1.2.1-1
- Update to 1.2.1
* Tue Feb 07 2023 liyuxiang<liyuxiang@ncti-gba.cn> - 1.0.0-2
- fix CVE-2023-22799
* Tue Jan 17 2023 wangkai <wangkai385@h-partners.com> - 1.0.0-1
- Upgrade to version 1.0.0
* Thu Aug 12 2021 liyanan <liyanan32@huawei.com> - 0.4.2-3
- fix spec file name
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.4.2-2
- fix build fail
* Fri Aug 21 2020 tuShenmei <tushenmei@huawei.com> - 0.4.2-1
- package init

View File

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

BIN
v0.4.2.tar.gz Normal file

Binary file not shown.

Binary file not shown.