diff --git a/rubygem-sdoc-version-option-fix.patch b/rubygem-sdoc-version-option-fix.patch new file mode 100644 index 0000000..13f6d5e --- /dev/null +++ b/rubygem-sdoc-version-option-fix.patch @@ -0,0 +1,17 @@ +diff --git a/bin/sdoc b/bin/sdoc +index 32a210f..59a62dc 100755 +--- a/bin/sdoc ++++ b/bin/sdoc +@@ -1,6 +1,12 @@ + #!/usr/bin/env ruby + require 'sdoc' + ++if ARGV.include?('--version') || ARGV.include?('-v') ++ require 'sdoc/version' ++ puts "sdoc #{SDoc::VERSION}" ++ exit 0 ++end ++ + begin + ARGV.unshift('--format=sdoc') if ARGV.grep(/\A(-f|--fmt|--format|-r|-R|--ri|--ri-site)\b/).empty? + r = RDoc::RDoc.new diff --git a/rubygem-sdoc.spec b/rubygem-sdoc.spec index ce547a2..b006971 100644 --- a/rubygem-sdoc.spec +++ b/rubygem-sdoc.spec @@ -1,6 +1,6 @@ %global gem_name sdoc Name: rubygem-%{gem_name} -Version: 2.5.0 +Version: 2.6.1 Release: 1 Summary: RDoc generator to build searchable HTML documentation for Ruby code License: MIT and (GPLv2 or Ruby) and BSD @@ -9,6 +9,7 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: sdoc.1 Source2: sdoc-merge.1 Patch0: Resolve-the-check-failure.patch +Patch1: rubygem-sdoc-version-option-fix.patch Requires: rubygem(json) BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) zlib-devel BuildArch: noarch @@ -73,6 +74,9 @@ popd %{gem_instdir}/spec %changelog +* Thu Jun 01 2023 wangkai <13474090681@163.com> - 2.6.1-1 +- Upgrade to 2.6.1 for fix sdoc --webcvs fail + * Tue Feb 20 2023 wenchaofan <349464272@qq.com> - 2.5.0-1 - Upgrade to 2.5.0 diff --git a/sdoc-2.5.0.gem b/sdoc-2.5.0.gem deleted file mode 100644 index adedba7..0000000 Binary files a/sdoc-2.5.0.gem and /dev/null differ diff --git a/sdoc-2.6.1.gem b/sdoc-2.6.1.gem new file mode 100644 index 0000000..db338bf Binary files /dev/null and b/sdoc-2.6.1.gem differ