aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliz! <feministy@users.noreply.github.com>2017-01-23 19:03:15 -0800
committerGitHub <noreply@github.com>2017-01-23 19:03:15 -0800
commit5a8ad746f4e560e8d7d6eded47e83ff99ac656b6 (patch)
treee7c4ef9e0418e42db316d92452d215082f4c73c3
parentdf20d19972f251ec4dec5cb7cba7e178f98df9e9 (diff)
parent325c0664105630a5c47ea59769ecf776a42dbb5a (diff)
downloadbundler-5a8ad746f4e560e8d7d6eded47e83ff99ac656b6.tar.gz
Merge pull request #5348 from feministy/clean-check-man-pages
create man pages for missing commands
-rw-r--r--man/bundle-check.ronn26
-rw-r--r--man/bundle-clean.ronn18
-rw-r--r--man/bundle-init.ronn18
-rw-r--r--man/bundle-inject.ronn22
-rw-r--r--man/bundle-open.ronn19
-rw-r--r--man/bundle-show.ronn20
-rw-r--r--man/bundle-viz.ronn30
-rw-r--r--man/index.txt7
-rw-r--r--spec/commands/help_spec.rb4
9 files changed, 162 insertions, 2 deletions
diff --git a/man/bundle-check.ronn b/man/bundle-check.ronn
new file mode 100644
index 00000000..b299da42
--- /dev/null
+++ b/man/bundle-check.ronn
@@ -0,0 +1,26 @@
+bundle-check(1) -- Verifies if dependencies are satisfied by installed gems
+===========================================================================
+
+## SYNOPSIS
+
+`bundle check` [--dry-run]
+ [--gemfile=FILE]
+ [--path=PATH]
+
+## DESCRIPTION
+
+`check` searches the local machine for each of the gems requested in the
+Gemfile. If all gems are found, Bundler prints a success message and exits with
+a status of 0.
+
+If not, the first missing gem is listed and Bundler exits status 1.
+
+## OPTIONS
+
+* `--dry-run`:
+ Locks the `Gemfile(5)` before running the command.
+* `--gemfile`:
+ Use the specified gemfile instead of the `Gemfile(5)`
+* `--path`:
+ Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).
+ Bundler will remember this value for future installs on this machine.
diff --git a/man/bundle-clean.ronn b/man/bundle-clean.ronn
new file mode 100644
index 00000000..de239917
--- /dev/null
+++ b/man/bundle-clean.ronn
@@ -0,0 +1,18 @@
+bundle-clean(1) -- Cleans up unused gems in your bundler directory
+==================================================================
+
+## SYNOPSIS
+
+`bundle clean` [--dry-run] [--force]
+
+## DESCRIPTION
+
+This command will remove all unused gems in your bundler directory. This is
+useful when you have made many changes to your gem dependencies.
+
+## OPTIONS
+
+* `--dry-run`:
+ Print the changes, but do not clean the unused gems.
+* `--force`:
+ Force a clean even if `--path` is not set.
diff --git a/man/bundle-init.ronn b/man/bundle-init.ronn
new file mode 100644
index 00000000..e5dfd420
--- /dev/null
+++ b/man/bundle-init.ronn
@@ -0,0 +1,18 @@
+bundle-init(1) -- Generates a Gemfile into the current working directory
+========================================================================
+
+## SYNOPSIS
+
+`bundle init` [--gemspec=FILE]
+
+## DESCRIPTION
+
+Init generates a default `Gemfile(5)` in the current working directory. When
+adding a `Gemfile(5)` to a gem with a gemspec, the `--gemspec` option will
+automatically add each dependency listed in the gemspec file to the newly
+created `Gemfile(5)`.
+
+## OPTIONS
+
+* `--gemspec`:
+ Use the specified .gemspec to create the `Gemfile(5)`
diff --git a/man/bundle-inject.ronn b/man/bundle-inject.ronn
new file mode 100644
index 00000000..02f5dd8b
--- /dev/null
+++ b/man/bundle-inject.ronn
@@ -0,0 +1,22 @@
+bundle-inject(1) -- Add named gem(s) with version requirements to Gemfile
+=========================================================================
+
+## SYNOPSIS
+
+`bundle inject` [GEM] [VERSION]
+
+## DESCRIPTION
+
+Adds the named gem(s) with their version requirements to the resolved
+`Gemfile(5)`.
+
+This command will add the gem to both your `Gemfile(5)` and Gemfile.lock if it
+isn't listed yet.
+
+Example:
+
+ bundle install
+ bundle inject 'rack' '> 0'
+
+This will inject the 'rack' gem with a version greater than 0 in your
+`Gemfile(5)` and Gemfile.lock
diff --git a/man/bundle-open.ronn b/man/bundle-open.ronn
new file mode 100644
index 00000000..497beac9
--- /dev/null
+++ b/man/bundle-open.ronn
@@ -0,0 +1,19 @@
+bundle-open(1) -- Opens the source directory for a gem in your bundle
+=====================================================================
+
+## SYNOPSIS
+
+`bundle open` [GEM]
+
+## DESCRIPTION
+
+Opens the source directory of the provided GEM in your editor.
+
+For this to work the `EDITOR` or `BUNDLER_EDITOR` environment variable has to
+be set.
+
+Example:
+
+ bundle open 'rack'
+
+Will open the source directory for the 'rack' gem in your bundle.
diff --git a/man/bundle-show.ronn b/man/bundle-show.ronn
new file mode 100644
index 00000000..714b6067
--- /dev/null
+++ b/man/bundle-show.ronn
@@ -0,0 +1,20 @@
+bundle-show(1) -- Shows all the gems in your bundle, or the path to a gem
+=========================================================================
+
+## SYNOPSIS
+
+`bundle show` [GEM]
+ [--paths]
+
+## DESCRIPTION
+
+Without the [GEM] option, `show` will print a list of the names and versions of
+all gems that are required by your `Gemfile(5)`.
+
+Calling show with [GEM] will list the exact location of that gem on your
+machine.
+
+## OPTIONS
+
+* `--paths`:
+ List the paths of all gems that are required by your `Gemfile(5)`.
diff --git a/man/bundle-viz.ronn b/man/bundle-viz.ronn
new file mode 100644
index 00000000..865bbf6e
--- /dev/null
+++ b/man/bundle-viz.ronn
@@ -0,0 +1,30 @@
+bundle-viz(1) -- Generates a visual dependency graph for your Gemfile
+=====================================================================
+
+## SYNOPSIS
+
+`bundle viz` [--file=FILE]
+ [--format=FORMAT]
+ [--requirements]
+ [--version]
+ [--without=GROUP GROUP]
+
+## DESCRIPTION
+
+`viz` generates a PNG file of the current `Gemfile(5)` as a dependency graph.
+`viz` requires the ruby-graphviz gem (and its dependencies).
+
+The associated gems must also be installed via `bundle install(1)`.
+
+## OPTIONS
+
+* `--file`:
+ The name to use for the generated file. See `--format` option
+* `--format`:
+ This is output format option. Supported format is png, jpg, svg, dot ...
+* `--requirements`:
+ Set to show the version of each required dependency.
+* `--version`:
+ Set to show each gem version.
+* `--without`:
+ Exclude gems that are part of the specified named group.
diff --git a/man/index.txt b/man/index.txt
index 9e46ceba..e3b38c46 100644
--- a/man/index.txt
+++ b/man/index.txt
@@ -6,3 +6,10 @@ bundle-exec bundle-exec.1
bundle-config bundle-config.1
bundle-platform bundle-platform.1
bundle-gem bundle-gem.1
+bundle-clean bundle-clean.1
+bundle-check bundle-check.1
+bundle-init bundle-init.1
+bundle-inject bundle-inject.1
+bundle-open bundle-open.1
+bundle-show bundle-show.1
+bundle-viz bundle-viz.1
diff --git a/spec/commands/help_spec.rb b/spec/commands/help_spec.rb
index 7789fe40..790d26fd 100644
--- a/spec/commands/help_spec.rb
+++ b/spec/commands/help_spec.rb
@@ -33,8 +33,8 @@ RSpec.describe "bundle help" do
end
it "still outputs the old help for commands that do not have man pages yet" do
- bundle "help check"
- expect(out).to include("Check searches the local machine")
+ bundle "help version"
+ expect(out).to include("Prints the bundler's version information")
end
it "looks for a binary and executes it with --help option if it's named bundler-<task>" do