Ai
5 Star 0 Fork 7

src-openEuler/rubygem-method_source
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-method_source.spec 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
王歌 提交于 2025-11-18 15:10 +08:00 . Upgrade to 1.1.0 version
%global gem_name method_source
Summary: Retrieve the source code for a method
Name: rubygem-%{gem_name}
Version: 1.1.0
Release: 1
License: MIT
URL: https://github.com/banister/method_source/
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# Fix compatibility with Prism parser in Ruby 3.4
# https://github.com/banister/method_source/pull/84
Patch0: rubygem-method_source-1.1.0-Update-error-message-expectations-to-work-on-MRI-with-Prism.patch
BuildRequires: ruby(release) rubygems-devel ruby rubygem-rspec
BuildArch: noarch
%description
Retrieve the source code for a method
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
%prep
%autosetup -n %{gem_name}-%{version} -p1
%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}
rspec spec
popd
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.markdown
%doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/Rakefile
%{gem_instdir}/method_source.gemspec
%{gem_instdir}/spec
%changelog
* Tue Nov 18 2025 Ge Wang <wang__ge@126.com> - 1.1.0-1
- Upgrade to 1.1.0 version
* Added MethodSource.clear_cache
* Added support for RUBYOPT="--enable-frozen-string-literal"
* Mon Feb 21 2022 houyingchao <houyingchao@huawei.com> - 1.0.0-1
- Upgrade to 1.0.0 version
* Wed Aug 19 2020 geyanan <geyanan2@huawei.com> - 0.8.2-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-method_source.git
git@gitee.com:src-openeuler/rubygem-method_source.git
src-openeuler
rubygem-method_source
rubygem-method_source
master

搜索帮助