Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
0d2d9f3cc0
!8 Update to 0.17
From: @wk333 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-11-13 09:12:35 +00:00
wk333
a4842a2ab1 Update to 0.17 2023-11-13 16:28:10 +08:00
openeuler-ci-bot
f90f2c36a2
!6 Remove deprecated const fixnum
From: @wang--ge 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-08-02 03:14:23 +00:00
wang--ge
85318c851a remove deprecated const fixnum 2023-08-02 10:54:24 +08:00
openeuler-ci-bot
0f594cf9d7
!5 License compliance rectification
From: @starlet-dx 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-05-10 10:24:23 +00:00
starlet-dx
5d46821fd2 License compliance rectification 2022-05-10 17:26:31 +08:00
openeuler-ci-bot
8b084647f6
!4 [sync] PR-2: fix build error by upgrading to ruby3
From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-03-30 08:30:35 +00:00
chen-jan
79f17fe8d3 fix build error by upgrading to ruby3
(cherry picked from commit 3442440b372b92670cfa91a8af0dfb6a8181cb8c)
2022-03-03 15:23:34 +08:00
openeuler-ci-bot
5f5ab99c90 !1 init
Merge pull request !1 from 王琳/master
2020-08-27 10:08:59 +08:00
wanglin
0b3cc7e29d rubygem-contracts 2020-08-25 15:03:37 +08:00
3 changed files with 89 additions and 0 deletions

BIN
contracts-0.17.gem Normal file

Binary file not shown.

85
rubygem-contracts.spec Normal file
View File

@ -0,0 +1,85 @@
%global gem_name contracts
Name: rubygem-%{gem_name}
Version: 0.17
Release: 1
Summary: Contracts for Ruby
License: BSD-2-Clause
URL: http://egonschiele.github.io/contracts.ruby/
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) >= 3
BuildArch: noarch
%description
This library provides contracts for Ruby. Contracts let you clearly express
how your code behaves, and free you from writing tons of boilerplate,
defensive code.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
# Ruby3.2 removes Fixnum
# https://github.com/egonSchiele/contracts.ruby/issues/300
sed -i spec/fixtures/fixtures.rb -e 's|Fixnum|Integer|'
%build
gem build %{gem_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
rm -f %{buildroot}%{gem_cache}
pushd %{buildroot}%{gem_instdir}
rm -rf \
.[^.]* \
Gemfile \
Rakefile \
*gemspec \
*yml \
features/ \
script/ \
spec/ \
%{nil}
%check
pushd .%{gem_instdir}
rspec spec/
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%doc %{gem_instdir}/CHANGELOG.markdown
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/TODO.markdown
%doc %{gem_instdir}/TUTORIAL.md
%{gem_libdir}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%{gem_instdir}/benchmarks/
%changelog
* Mon Nov 13 2023 wangkai <13474090681@163.com> - 0.17-1
- Update to 0.17
* Wed Aug 02 2023 Ge Wang <wang__ge@126.com> - 0.16.0-4
- Remove deprecated const fixnum due to ruby updated
* Tue May 10 2022 yaoxin <yaoxin30@h-partners.com> - 0.16.0-3
- License compliance rectification
* Tue Feb 22 2022 chenchen <chen_aka_jan@163.com> - 0.16.0-2
- fix build error by upgrading to ruby3
* Tue Aug 18 2020 wanglin <wanglin175@huawei.com> - 0.16.0-1
- package init

4
rubygem-contracts.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: egonSchiele/contracts.ruby
tag_prefix: "^v"
separator: "."