Ai
5 Star 0 Fork 4

src-openEuler/rubygem-http-cookie
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-http-cookie.spec 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2025-11-14 16:20 +08:00 . Update to 1.0.0
%global gem_name http-cookie
%global rubyabi 1.9.1
Name: rubygem-%{gem_name}
Version: 1.1.0
Release: 1
Summary: Ruby library to handle HTTP Cookies based on RFC 6265
License: MIT
URL: https://github.com/sparklemotion/http-cookie
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/sparklemotion/http-cookie.git && cd http-cookie
# git archive -v -o http-cookie-1.1.0-tests.tar.gz v1.1.0 test/
Source1: %{gem_name}-%{version}-tests.tar.gz
Requires: ruby(release)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel rubygem(test-unit) rubygem(domain_name) rubygem(sqlite3)
Requires: ruby(rubygems) rubygem(domain_name)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}-%{release}
%description
HTTP::Cookie is a Ruby library to handle HTTP Cookies based on RFC 6265. It
has with security, standards compliance and compatibility in mind, to behave
just the same as today's major web browsers. It has builtin support for the
legacy cookies.txt and the latest cookies.sqlite formats of Mozilla Firefox,
and its modular API makes it easy to add support for a new backend store.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
%setup -q -n %{gem_name}-%{version} -b1
%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
cp -a %{_builddir}/test .
ruby -Ilib:test:. -e 'Dir.glob("test/test_*.rb").each {|f| require f}'
popd
%files
%dir %{gem_instdir}
%doc %{gem_instdir}/[A-Z]*
%{gem_libdir}/
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}/
%changelog
* Fri Nov 14 2025 yaoxin <1024769339@qq.com> - 1.1.0-1
- Update to 1.0.0:
* Implement Cookie#to_h.
* Reduce gem size by excluding test files
* Thu Mar 27 2025 openeuler_bot <infra@openeuler.sh> - 1.0.8-1
- Fix error formatting bug in HTTP::CookieJar::AbstractStore (version: 1.0.6).
- Allow non-RFC 3986-compliant URLs (version: 1.0.6).
- Explicitly require "cgi" to avoid NameError in some applications (version: 1.0.7).
- Cookie#expires= accepts DateTime objects (version: 1.0.8).
* Wed Jan 4 2023 liyanan <liyanan32@h-partners.com> - 1.0.5-1
- Update to 1.0.5
* Wed Aug 26 2020 tushenmei <tushenmei@huawei.com> - 1.0.3-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-http-cookie.git
git@gitee.com:src-openeuler/rubygem-http-cookie.git
src-openeuler
rubygem-http-cookie
rubygem-http-cookie
master

搜索帮助