[rubygems/rubygems] Add missing man pages for bundle env and bundle licenses commands

6e1a515d58
This commit is contained in:
David Rodríguez 2024-12-11 15:34:11 +01:00 committed by git
parent d91ca85b97
commit b37ab8c123
6 changed files with 49 additions and 7 deletions

View file

@ -0,0 +1,9 @@
.\" generated with nRonn/v0.11.1
.\" https://github.com/n-ronn/nronn/tree/0.11.1
.TH "BUNDLE\-ENV" "1" "December 2024" ""
.SH "NAME"
\fBbundle\-env\fR \- Print information about the environment Bundler is running under
.SH "SYNOPSIS"
\fBbundle env\fR
.SH "DESCRIPTION"
Prints information about the environment Bundler is running under\.

View file

@ -0,0 +1,10 @@
bundle-env(1) -- Print information about the environment Bundler is running under
=================================================================================
## SYNOPSIS
`bundle env`
## DESCRIPTION
Prints information about the environment Bundler is running under.

View file

@ -0,0 +1,9 @@
.\" generated with nRonn/v0.11.1
.\" https://github.com/n-ronn/nronn/tree/0.11.1
.TH "BUNDLE\-LICENSES" "1" "December 2024" ""
.SH "NAME"
\fBbundle\-licenses\fR \- Print the license of all gems in the bundle
.SH "SYNOPSIS"
\fBbundle licenses\fR
.SH "DESCRIPTION"
Prints the license of all gems in the bundle\.

View file

@ -0,0 +1,10 @@
bundle-licenses(1) -- Print the license of all gems in the bundle
=================================================================
## SYNOPSIS
`bundle licenses`
## DESCRIPTION
Prints the license of all gems in the bundle.

View file

@ -8,6 +8,7 @@ bundle-clean(1) bundle-clean.1
bundle-config(1) bundle-config.1 bundle-config(1) bundle-config.1
bundle-console(1) bundle-console.1 bundle-console(1) bundle-console.1
bundle-doctor(1) bundle-doctor.1 bundle-doctor(1) bundle-doctor.1
bundle-env(1) bundle-env.1
bundle-exec(1) bundle-exec.1 bundle-exec(1) bundle-exec.1
bundle-fund(1) bundle-fund.1 bundle-fund(1) bundle-fund.1
bundle-gem(1) bundle-gem.1 bundle-gem(1) bundle-gem.1
@ -17,6 +18,7 @@ bundle-init(1) bundle-init.1
bundle-inject(1) bundle-inject.1 bundle-inject(1) bundle-inject.1
bundle-install(1) bundle-install.1 bundle-install(1) bundle-install.1
bundle-issue(1) bundle-issue.1 bundle-issue(1) bundle-issue.1
bundle-licenses(1) bundle-licenses.1
bundle-list(1) bundle-list.1 bundle-list(1) bundle-list.1
bundle-lock(1) bundle-lock.1 bundle-lock(1) bundle-lock.1
bundle-open(1) bundle-open.1 bundle-open(1) bundle-open.1

View file

@ -2,14 +2,16 @@
RSpec.describe "bundle commands" do RSpec.describe "bundle commands" do
it "expects all commands to have a man page" do it "expects all commands to have a man page" do
command_names = Bundler::CLI.all_commands.each_key do |command_name|
Dir["#{source_root}/lib/bundler/cli/*.rb"]. next if command_name == "cli_help"
grep_v(/common.rb/).
map {|file_path| File.basename(file_path, ".rb") }
command_names.each do |command_name| expect(man_page(command_name)).to exist
man_page = source_root.join("lib/bundler/man/bundle-#{command_name}.1.ronn")
expect(man_page).to exist
end end
end end
private
def man_page(command_name)
source_root.join("lib/bundler/man/bundle-#{command_name}.1.ronn")
end
end end