代码拉取完成,页面将自动刷新
%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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。