!6 升级至2.6.1修复sdoc --webcvs命令执行失败
From: @wk333 Reviewed-by: @lyn1001 Signed-off-by: @lyn1001
This commit is contained in:
commit
1749aac2f3
17
rubygem-sdoc-version-option-fix.patch
Normal file
17
rubygem-sdoc-version-option-fix.patch
Normal 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
|
||||
@ -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
|
||||
|
||||
|
||||
BIN
sdoc-2.5.0.gem
BIN
sdoc-2.5.0.gem
Binary file not shown.
BIN
sdoc-2.6.1.gem
Normal file
BIN
sdoc-2.6.1.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user