[packages/ruby/DEVEL-3.4] Doc update and clenups from master.

arekm arekm at pld-linux.org
Mon Mar 16 15:01:29 CET 2026


commit b03218f37d02aff43895608b8d67c9e3d89949c2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 16 15:01:20 2026 +0100

    Doc update and clenups from master.

 operating_system.rb |   3 +-
 rdoc.1              | 252 ----------------------------------------------------
 ruby.spec           |  29 +-----
 testrb.1            |  60 -------------
 4 files changed, 4 insertions(+), 340 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index 908402e..1502b4f 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -14,7 +14,7 @@
 %define		patchlevel	9
 %define		pkg_version	%{ruby_version}.%{patchlevel}
 %define		ruby_suffix	%{!?with_default_ruby:%{ruby_version}}
-%define		doc_version	3_3_0
+%define		doc_version	3_4_1
 %define		unicode_version	15.0.0
 %define		oname	ruby
 Summary:	Ruby - interpreted scripting language
@@ -36,23 +36,8 @@ Group:		Development/Languages
 Source0:	https://cache.ruby-lang.org/pub/ruby/%{ruby_version}/%{oname}-%{pkg_version}.tar.xz
 # Source0-md5:	b58158f56343125bc9a56841f4c2cb35
 Source2:	https://ruby-doc.org/downloads/%{oname}_%{doc_version}_complete_rdocs.tgz
-# Source2-md5:	058ec53cf5e9d8805161f1b198616b6d
-%if 0
-Source50:	https://www.unicode.org/Public/%{unicode_version}/ucd/CaseFolding.txt
-# Source50-md5:	e3fbf2f626f10070000fe66f3a2ff5ef
-Source51:	https://www.unicode.org/Public/%{unicode_version}/ucd/CompositionExclusions.txt
-# Source51-md5:	263381d7b4b5e2d52a91e1bbbd4722d4
-Source52:	https://www.unicode.org/Public/%{unicode_version}/ucd/NormalizationTest.txt
-# Source52-md5:	aacb8a8acfc449d09136fe39f3f97cf1
-Source53:	https://www.unicode.org/Public/%{unicode_version}/ucd/SpecialCasing.txt
-# Source53-md5:	fea30f45a2f81ffa474fd984d297e2ea
-Source54:	https://www.unicode.org/Public/%{unicode_version}/ucd/UnicodeData.txt
-# Source54-md5:	dde25b1cf9bbb4ba1140ac12e4128b0b
-%endif
-Source4:	rdoc.1
-Source5:	testrb.1
+# Source2-md5:	a13c63951d5ce47b169935a7208f876d
 Source6:	operating_system.rb
-#Patch3:		mkmf-verbose.patch
 Patch4:		strip-ccache.patch
 Patch5:		ruby-version.patch
 Patch6:		duplicated-paths.patch
@@ -701,11 +686,6 @@ these needs to be listed in Gemfile to be used by Bundler.
 %patch 9 -p1
 %patch 12 -p1
 
-%if 0
-install -d enc/unicode/data/%{unicode_version}
-cp -p %{SOURCE50} %{SOURCE51} %{SOURCE52} %{SOURCE53} %{SOURCE54} enc/unicode/data/%{unicode_version}
-%endif
-
 # must be regenerated with new bison
 %{__rm} parse.{c,h}
 
@@ -851,9 +831,6 @@ done
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{pkg_version}
 cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{oname}-%{pkg_version}
-cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/rdoc%{ruby_suffix}.1
-cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/testrb%{ruby_suffix}.1
-
 %{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/html
 
 # detect this runtime, "make install" is affected by operating_system.rb what is installed in system!
@@ -1090,7 +1067,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/rdoc%{ruby_suffix}
 %attr(755,root,root) %{_bindir}/ri%{ruby_suffix}
-%{_mandir}/man1/rdoc%{ruby_suffix}.1*
 %{ruby_libdir}/rdoc
 %dir %{gem_dir}/gems/rdoc-%{rdoc_ver}
 %{gem_dir}/gems/rdoc-%{rdoc_ver}/lib
@@ -1158,7 +1134,6 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{gem_dir}/gems/test-unit-%{test_unit_ver}
 %{gem_dir}/gems/test-unit-%{test_unit_ver}/lib
 %{gem_dir}/specifications/test-unit-%{test_unit_ver}.gemspec
-%{_mandir}/man1/testrb%{ruby_suffix}.1*
 
 %files rbs
 %defattr(644,root,root,755)
diff --git a/operating_system.rb b/operating_system.rb
index d6399ee..c5940cd 100644
--- a/operating_system.rb
+++ b/operating_system.rb
@@ -91,6 +91,7 @@ module Gem
     remove_method :default_path if method_defined? :default_path
     remove_method :default_bindir if method_defined? :default_bindir
     remove_method :default_ext_dir_for if method_defined? :default_ext_dir_for
+    remove_method :default_specifications_dir if method_defined? :default_specifications_dir
 
     ##
     # RubyGems default overrides.
@@ -139,7 +140,7 @@ module Gem
       dir && File.join(dir, RbConfig::CONFIG['RUBY_INSTALL_NAME'])
     end
 
-    # This method should be available since RubyGems 2.2 until RubyGems 3.0.
+    # This method is available since RubyGems 2.2 (still present in 4.0).
     # https://github.com/rubygems/rubygems/issues/749
     if method_defined? :install_extension_in_lib
       remove_method :install_extension_in_lib
diff --git a/rdoc.1 b/rdoc.1
deleted file mode 100644
index 6297e53..0000000
--- a/rdoc.1
+++ /dev/null
@@ -1,252 +0,0 @@
-.\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
-.\"
-.\" Standard preamble:
-.\" ========================================================================
-.de Sh \" Subsection heading
-.br
-.if t .Sp
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
-.de Sp \" Vertical space (when we can't use .PP)
-.if t .sp .5v
-.if n .sp
-..
-.de Vb \" Begin verbatim text
-.ft CW
-.nf
-.ne \\$1
-..
-.de Ve \" End verbatim text
-.ft R
-.fi
-..
-.\" Set up some character translations and predefined strings.  \*(-- will
-.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
-.\" double quote, and \*(R" will give a right double quote.  | will give a
-.\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
-.\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
-.\" expand to `' in nroff, nothing in troff, for use with C<>.
-.tr \(*W-|\(bv\*(Tr
-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
-.ie n \{\
-.    ds -- \(*W-
-.    ds PI pi
-.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
-.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
-.    ds L" ""
-.    ds R" ""
-.    ds C` ""
-.    ds C' ""
-'br\}
-.el\{\
-.    ds -- \|\(em\|
-.    ds PI \(*p
-.    ds L" ``
-.    ds R" ''
-'br\}
-.\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
-.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
-.\" entries marked with X<> in POD.  Of course, you'll have to process the
-.\" output yourself in some meaningful fashion.
-.if \nF \{\
-.    de IX
-.    tm Index:\\$1\t\\n%\t"\\$2"
-..
-.    nr % 0
-.    rr F
-.\}
-.\"
-.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
-.\" way too many mistakes in technical documents.
-.hy 0
-.if n .na
-.\"
-.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
-.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
-.    \" fudge factors for nroff and troff
-.if n \{\
-.    ds #H 0
-.    ds #V .8m
-.    ds #F .3m
-.    ds #[ \f1
-.    ds #] \fP
-.\}
-.if t \{\
-.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
-.    ds #V .6m
-.    ds #F 0
-.    ds #[ \&
-.    ds #] \&
-.\}
-.    \" simple accents for nroff and troff
-.if n \{\
-.    ds ' \&
-.    ds ` \&
-.    ds ^ \&
-.    ds , \&
-.    ds ~ ~
-.    ds /
-.\}
-.if t \{\
-.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
-.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
-.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
-.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
-.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
-.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
-.\}
-.    \" troff and (daisy-wheel) nroff accents
-.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
-.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
-.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
-.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
-.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
-.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
-.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
-.ds ae a\h'-(\w'a'u*4/10)'e
-.ds Ae A\h'-(\w'A'u*4/10)'E
-.    \" corrections for vroff
-.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
-.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
-.    \" for low resolution devices (crt and lpr)
-.if \n(.H>23 .if \n(.V>19 \
-\{\
-.    ds : e
-.    ds 8 ss
-.    ds o a
-.    ds d- d\h'-1'\(ga
-.    ds D- D\h'-1'\(hy
-.    ds th \o'bp'
-.    ds Th \o'LP'
-.    ds ae ae
-.    ds Ae AE
-.\}
-.rm #[ #] #H #V #F C
-.\" ========================================================================
-.\"
-.IX Title "RDOC 1"
-.TH RDOC 1 "2003-08-19" "perl v5.8.0" "User Contributed Perl Documentation"
-.SH "NAME"
-rdoc \- Generate documentation from ruby source files
-.SH "SYNOPSIS"
-.IX Header "SYNOPSIS"
-Usage:
-.PP
-.Vb 1
-\&  rdoc [options]  [names...]
-.Ve
-.SH "DESCRIPTION"
-.IX Header "DESCRIPTION"
-Files are parsed, and the information they contain
-collected, before any output is produced. This allows cross
-references between all files to be resolved. If a name is a
-directory, it is traversed. If no names are specified, all
-Ruby files in the current directory (and subdirectories) are
-processed.
-.SH "OPTIONS"
-.IX Header "OPTIONS"
-Options:
-.IP "\fB\-a\fR, \fB\-\-all\fR" 8
-.IX Item "-a, --all"
-include all methods (not just public) in the output
-.IP "\fB\-c\fR \fIcharset\fR, \fB\-\-charset\fR \fIcharset\fR" 8
-.IX Item "-c charset, --charset charset"
-specifies \s-1HTML\s0 character-set
-.IP "\fB\-D\fR, \fB\-\-debug\fR" 8
-.IX Item "-D, --debug"
-displays lots on internal stuff
-.IP "\fB\-d\fR, \fB\-\-diagram\fR" 8
-.IX Item "-d, --diagram"
-Generate diagrams showing modules and classes.
-You need dot V1.8.6 or later to use the \-\-diagram
-option correctly. Dot is available from
-http://www.research.att.com/sw/tools/graphviz/
-.IP "\fB\-x\fR \fIpattern\fR, \fB\-\-exclude\fR \fIpattern\fR" 8
-.IX Item "-x pattern, --exclude pattern"
-do not process files or directories matching
-pattern. Files given explicitly on the command
-line will never be excluded.
-.IP "\fB\-F\fR, \fB\-\-fileboxes\fR" 8
-.IX Item "-F, --fileboxes"
-classes are put in boxes which represents
-files, where these classes reside. Classes
-shared between more than one file are
-shown with list of files that sharing them.
-Silently discarded if \-\-diagram is not given
-Experimental.
-.IP "\fB\-f\fR \fIformat_name\fR, \fB\-\-fmt\fR \fIformat_name\fR" 8
-.IX Item "-f format_name, --fmt format_name"
-set the output formatter (see below)
-.IP "\fB\-h\fR, \fB\-\-help\fR" 8
-.IX Item "-h, --help"
-print out a brief help summary
-.IP "\fB\-O\fR, \fB\-\-help\-output\fR" 8
-.IX Item "-O, --help-output"
-explain the various output options
-.IP "\fB\-I\fR \fIgif|jpg|jpg|jpeg\fR, \fB\-\-image\-format\fR \fIgif|png|jpg|jpeg\fR" 8
-.IX Item "-I gif|jpg|jpg|jpeg, --image-format gif|png|jpg|jpeg"
-Sets output image format for diagrams. Can
-be png, gif, jpeg, jpg. If this option is
-omitted, png is used. Requires \-\-diagram.
-.IP "\fB\-i\fR \fIdir[,dir,...]\fR, \fB\-\-include\fR \fIdir[,dir,...]\fR" 8
-.IX Item "-i dir[,dir,...], --include dir[,dir,...]"
-set (or add to) the list of directories
-to be searched when satisfying :include:
-requests. Can be used more than once.
-.IP "\fB\-S\fR, \fB\-\-inline\-source\fR" 8
-.IX Item "-S, --inline-source"
-Show method source code inline, rather
-than via a popup link
-.IP "\fB\-N\fR, \fB\-\-line\-numbers\fR" 8
-.IX Item "-N, --line-numbers"
-Include line numbers in the source code
-.IP "\fB\-m\fR \fIname\fR, \fB\-\-main\fR \fIname\fR" 8
-.IX Item "-m name, --main name"
-\&'name' will be the initial page displayed
-.IP "\fB\-1\fR, \fB\-\-one\-file\fR" 8
-.IX Item "-1, --one-file"
-put all the output into a single file
-.IP "\fB\-o\fR \fIdir\fR, \fB\-\-op\fR \fIdir\fR" 8
-.IX Item "-o dir, --op dir"
-set the output directory
-.IP "\fB\-n\fR \fIname\fR, \fB\-\-opname\fR \fIname\fR" 8
-.IX Item "-n name, --opname name"
-Set the 'name' of the output. Has no
-effect for \s-1HTML\s0.
-.IP "\fB\-q\fR, \fB\-\-quiet\fR" 8
-.IX Item "-q, --quiet"
-don't show progress as we parse
-.IP "\fB\-H\fR, \fB\-\-show\-hash\fR" 8
-.IX Item "-H, --show-hash"
-A name of the form #name in a comment
-is a possible hyperlink to an instance
-method name. When displayed, the '#' is
-removed unless this option is specified
-.IP "\fB\-w\fR \fIwidth\fR, \fB\-\-tab\-width\fR \fIwidth\fR" 8
-.IX Item "-w width, --tab-width width"
-Set the width of tab characters (default 8)
-.IP "\fB\-T\fR \fItemplate_name\fR, \fB\-\-template\fR \fItemplate_name\fR" 8
-.IX Item "-T template_name, --template template_name"
-Set the template used when generating output
-.IP "\fB\-t\fR \fItext\fR, \fB\-\-title\fR \fItext\fR" 8
-.IX Item "-t text, --title text"
-Set 'txt' as the title for the output
-.IP "\fB\-v\fR, \fB\-\-version\fR" 8
-.IX Item "-v, --version"
-display  RDoc's version
-.SH "NOTES"
-.IX Header "NOTES"
-Available output formatters: chm, html, xml
-.PP
-For information on where the output goes, use
-.PP
-.Vb 1
-\&   rdoc --help-output
-.Ve
-.SH "AUTHOR"
-.IX Header "AUTHOR"
-This manpage was contributed by Brian Almeida <bma at debian.org>
diff --git a/testrb.1 b/testrb.1
deleted file mode 100644
index eaef767..0000000
--- a/testrb.1
+++ /dev/null
@@ -1,60 +0,0 @@
-.\" DO NOT MODIFY THIS FILE! it was generated by rd2
-.TH testrb 1 "December 2003"
-.SH NAME
-.PP
-testrb \- Automatic runner for Test::Unit of Ruby
-.SH SYNOPSIS
-.PP
-testrb [options] [\-\- untouched arguments] test ...
-.SH DESCRIPTION
-.PP
-testrb loads and runs unit\-tests.  If test is directory name, testrb1.8
-testrb traverses the directory.
-.SH OPTIONS
-.TP
-.fi
-.B
-\-r, \-\-runner=RUNNER
-Use the given RUNNER.  (t[k], c[onsole], g[tk], f[ox])
-.TP
-.fi
-.B
-\-a, \-\-add=TORUN
-Add TORUN to the list of things to run;  can be a file or a directory.
-.TP
-.fi
-.B
-\-p, \-\-pattern=PATTERN
-Match files to collect against PATTERN.  (default pattern is
-/\\Atest_.*\\.rb\\Z/.)
-.TP
-.fi
-.B
-\-n, \-\-name=NAME
-Runs tests matching NAME.  (patterns may be used.)
-.TP
-.fi
-.B
-\-t, \-\-testcase=TESTCASE
-Runs tests in TestCases matching TESTCASE.  (patterns may be used.)
-.TP
-.fi
-.B
-\-v, \-\-verbose=[LEVEL]
-Set the output level (default is verbose).  (p[rogress], n[ormal],
-v[erbose], s[ilent])
-.TP
-.fi
-.B
-\-\-
-Stop processing options so that the remaining options will be passed to
-the test.
-.TP
-.fi
-.B
-\-h, \-\-help
-Display help.
-.SH AUTHOR
-.PP
-This manpage was contributed by akira yamada <akira at debian.org>
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/b03218f37d02aff43895608b8d67c9e3d89949c2



More information about the pld-cvs-commit mailing list