Upgrade to 2.6.1 for fix sdoc --webcvs fail

This commit is contained in:
wk333 2023-06-01 17:25:42 +08:00
parent 3a55cad22b
commit 243a07eade
4 changed files with 22 additions and 1 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
%global gem_name sdoc %global gem_name sdoc
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.5.0 Version: 2.6.1
Release: 1 Release: 1
Summary: RDoc generator to build searchable HTML documentation for Ruby code Summary: RDoc generator to build searchable HTML documentation for Ruby code
License: MIT and (GPLv2 or Ruby) and BSD License: MIT and (GPLv2 or Ruby) and BSD
@ -9,6 +9,7 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: sdoc.1 Source1: sdoc.1
Source2: sdoc-merge.1 Source2: sdoc-merge.1
Patch0: Resolve-the-check-failure.patch Patch0: Resolve-the-check-failure.patch
Patch1: rubygem-sdoc-version-option-fix.patch
Requires: rubygem(json) Requires: rubygem(json)
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) zlib-devel BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest) zlib-devel
BuildArch: noarch BuildArch: noarch
@ -73,6 +74,9 @@ popd
%{gem_instdir}/spec %{gem_instdir}/spec
%changelog %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 * Tue Feb 20 2023 wenchaofan <349464272@qq.com> - 2.5.0-1
- Upgrade to 2.5.0 - Upgrade to 2.5.0

Binary file not shown.

BIN
sdoc-2.6.1.gem Normal file

Binary file not shown.