Projects
Mega:24.09
rubygem-timecop
_service:tar_scm:rubygem-timecop.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:rubygem-timecop.spec of Package rubygem-timecop
%global gem_name timecop Summary: Provides a unified method to mock Time.now, Date.today in a single call Name: rubygem-%{gem_name} Version: 0.9.5 Release: 1 License: MIT URL: https://github.com/travisjeffery/timecop Source0: http://rubygems.org/downloads/timecop-%{version}.gem BuildRequires: rubygems-devel rubygem(activesupport) rubygem(minitest) rubygem(mocha) BuildArch: noarch %description A gem providing "time travel" and "time freezing" capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} cp -va ./%{gem_dir}/* %{buildroot}%{gem_dir} %check pushd .%{gem_instdir}/ # Drop Bundler and minitest-rg dependency. sed -i \ -e '/require..bundler\/setup./ s/^/#/' \ -e '/require..minitest\/rg./ s/^/#/' \ -e '/require .pry./ s/^/#/g' \ test/test_helper.rb # The test cases must be executed independently. for i in test/*_test.rb; do ruby -I.:lib ${i} done popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_libdir} %doc %{gem_instdir}/README.markdown %exclude %{gem_cache} %{gem_spec} %files doc %{gem_instdir}/test %{gem_instdir}/Rakefile %{gem_docdir} %changelog * Wed Jul 20 2022 wangkai <wangkai385@h-partners.com> - 0.9.5-1 - Update to 0.9.5 * Fri Aug 7 2020 yanan li <liyanan032@huawei.com> - 0.7.1-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2