Skip to content

Commit

Permalink
Merge pull request #3872 from rreinhardt9/binstubs-manpage-update
Browse files Browse the repository at this point in the history
Update man page and deprecation warning for binstubs --all
  • Loading branch information
deivid-rodriguez committed Aug 29, 2020
2 parents 1de54e8 + 9ee47fe commit 228e033
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions bundler/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ namespace :man do
Spec::Rubygems.gem_require("ronn")
rescue Gem::LoadError => e
desc "Build the man pages"
task(:build) { abort "We couln't activate ronn (#{e.requirement}). Try `gem install ronn:'#{e.requirement}'` to be able to build the help pages" }
task(:build) { abort "We couldn't activate ronn (#{e.requirement}). Try `gem install ronn:'#{e.requirement}'` to be able to build the help pages" }

desc "Verify man pages are in sync"
task(:check) { abort "We couln't activate ronn (#{e.requirement}). Try `gem install ronn:'#{e.requirement}'` to be able to build the help pages" }
task(:check) { abort "We couldn't activate ronn (#{e.requirement}). Try `gem install ronn:'#{e.requirement}'` to be able to build the help pages" }
else
directory "man"

Expand Down
2 changes: 1 addition & 1 deletion bundler/lib/bundler/cli/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run

if options["binstubs"]
Bundler::SharedHelpers.major_deprecation 2,
"The --binstubs option will be removed in favor of `bundle binstubs`"
"The --binstubs option will be removed in favor of `bundle binstubs --all`"
end

Plugin.gemfile_install(Bundler.default_gemfile) if Bundler.feature_flag.plugins?
Expand Down
6 changes: 4 additions & 2 deletions bundler/man/bundle-binstubs.1
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ Makes binstubs that can work without depending on Rubygems or Bundler at runtime
\fB\-\-shebang\fR
Specify a different shebang executable name than the default (default \'ruby\')
.
.SH "BUNDLE INSTALL \-\-BINSTUBS"
To create binstubs for all the gems in the bundle you can use the \fB\-\-binstubs\fR flag in bundle install(1) \fIbundle\-install\.1\.html\fR\.
.TP
\fB\-\-all\fR
Create binstubs for all gems in the bundle\.

5 changes: 2 additions & 3 deletions bundler/man/bundle-binstubs.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ OPTIONS
Specify a different shebang executable name than the default
(default 'ruby')

BUNDLE INSTALL --BINSTUBS
To create binstubs for all the gems in the bundle you can use the
--binstubs flag in bundle install(1) bundle-install.1.html.
--all Create binstubs for all gems in the bundle.




Expand Down
6 changes: 2 additions & 4 deletions bundler/man/bundle-binstubs.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,5 @@ Calling binstubs with [GEM [GEM]] will create binstubs for all given gems.
* `--shebang`:
Specify a different shebang executable name than the default (default 'ruby')

## BUNDLE INSTALL --BINSTUBS

To create binstubs for all the gems in the bundle you can use the `--binstubs`
flag in [bundle install(1)](bundle-install.1.html).
* `--all`:
Create binstubs for all gems in the bundle.
2 changes: 1 addition & 1 deletion bundler/spec/other/major_deprecation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
end

it "should output a deprecation warning", :bundler => "2" do
expect(deprecations).to include("The --binstubs option will be removed in favor of `bundle binstubs`")
expect(deprecations).to include("The --binstubs option will be removed in favor of `bundle binstubs --all`")
end

pending "fails with a helpful error", :bundler => "3"
Expand Down

0 comments on commit 228e033

Please sign in to comment.