Ai
2 Star 0 Fork 10

src-openEuler/rubygem-liquid
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-liquid.spec 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
zhihang 提交于 2025-06-12 16:08 +08:00 . rubygem-liquid update 5.3.0->5.4.0
%global gem_name liquid
Name: rubygem-%{gem_name}
Summary: Secure, non-evaling end user template engine
Version: 5.4.0
Release: 1
License: MIT
URL: http://www.liquidmarkup.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/Shopify/%{gem_name}/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch
BuildRequires: ruby(release) ruby >= 2.1.0 rubygems-devel >= 1.3.7
BuildRequires: rubygem(bigdecimal) rubygem(minitest)
Requires: rubygem(bigdecimal)
%description
Liquid is a template engine which was written with very specific requirements:
* It has to have beautiful and simple markup. Template engines which don't
produce good looking markup are no fun to use.
* It needs to be non evaling and secure. Liquid templates are made so that
users can edit them. You don't want to run code on your server which your
users wrote.
* It has to be stateless. Compile and render steps have to be separate so that
the expensive parsing and compiling can be done once and later on you can
just render it passing in a hash with local variables and objects.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b 1
%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}
ln -s %{_builddir}/%{gem_name}-%{version}/test test
sed -i "s/require 'stackprof'/begin; require 'stackprof'; rescue LoadError; skip 'stackprof not available'; end/" test/integration/context_test.rb
ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd
%files
%license %{gem_instdir}/LICENSE
%dir %{gem_instdir}
%{gem_libdir}
%{gem_spec}
%exclude %{gem_cache}
%files doc
%doc %{gem_instdir}/History.md
%doc %{gem_instdir}/README.md
%doc %{gem_docdir}
%changelog
* Tue Jun 10 2025 openeuler_bot <infra@openeuler.sh> - 5.4.0-1
- Allow `#` to be used as an inline comment tag (#1498) [CP Clermont] (version:5.4.0)
- Drop support for end-of-life Ruby versions (2.5 and 2.6) (#1578) [Andy Waite] (version:5.4.0)
- `PartialCache` now shares snippet cache with subcontexts by default (#1553) [Chris AtLee] (version:5.4.0)
- Hash registers no longer leak into subcontexts as static registers (#1564) [Chris AtLee] (version:5.4.0)
* Thu Jun 30 2022 xu_ping <xuping33@h-partners.com> - 5.3.0-1
- Upgrade 5.3.0
* Thu Feb 10 2022 xu_ping <xuping33@huawei.com> - 4.0.3-2
- Fix ParseTreeVisitor error and DropsTest failure
* Thu Jul 30 2020 wutao <wutao61@huawei.com> - 4.0.3-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-liquid.git
git@gitee.com:src-openeuler/rubygem-liquid.git
src-openeuler
rubygem-liquid
rubygem-liquid
master

搜索帮助