Upgrade to 2.6.1 for fix sdoc --webcvs fail
(cherry picked from commit cad544d03b9256ef3b335e9f9c56d4ec266fa5cf)
This commit is contained in:
parent
db2d9ad033
commit
c42be8bc9d
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
|
%global gem_name sdoc
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 2.4.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)
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(minitest)
|
||||||
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 Jul 05 2022 yaoxin <yaoxin30@h-partners.com> - 2.4.0-1
|
* Tue Jul 05 2022 yaoxin <yaoxin30@h-partners.com> - 2.4.0-1
|
||||||
- Upgrade to 2.4.0
|
- Upgrade to 2.4.0
|
||||||
|
|
||||||
|
|||||||
BIN
sdoc-2.4.0.gem
BIN
sdoc-2.4.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