diff --git a/rubygem-sdoc-version-option-fix.patch b/rubygem-sdoc-version-option-fix.patch new file mode 100644 index 0000000000000000000000000000000000000000..13f6d5e48f35333a159219dbce54891beaed6233 --- /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 088caee75b8e1cbfc57c5a6bf34314144d835e39..2c4ddab0cfe9f46d3f428e50e0fbc24f8de3a39d 100644 --- a/rubygem-sdoc.spec +++ b/rubygem-sdoc.spec @@ -1,6 +1,6 @@ %global gem_name sdoc Name: rubygem-%{gem_name} -Version: 2.4.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) 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 Jul 05 2022 yaoxin - 2.4.0-1 - Upgrade to 2.4.0 diff --git a/sdoc-2.4.0.gem b/sdoc-2.4.0.gem deleted file mode 100644 index f770149faee6390cce05341391ab22bfa084030f..0000000000000000000000000000000000000000 Binary files a/sdoc-2.4.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 0000000000000000000000000000000000000000..db338bf08aa2523bb450356293712a8592a3d450 Binary files /dev/null and b/sdoc-2.6.1.gem differ