Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Followed docs but unable to run specs in local dev environment #6105

Closed
dekellum opened this issue Oct 16, 2017 · 18 comments
Closed

Followed docs but unable to run specs in local dev environment #6105

dekellum opened this issue Oct 16, 2017 · 18 comments

Comments

@dekellum
Copy link
Contributor

dekellum commented Oct 16, 2017

I've followed and re-followed these steps several times:

https://github.com/bundler/bundler/blob/master/doc/development/SETUP.md#development-setup

Running specs fails for me with "LoadError: cannot load such file -- rake"

See detailed env and output below. Is there some other dev. environment dependency that I'm missing?

% ruby -v
ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-linux]

% gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 2.6.14
  - RUBY VERSION: 2.3.5 (2017-09-14 patchlevel 376) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/2.3.0
  - USER INSTALLATION DIRECTORY: /home/david/.gem/ruby/2.3.0
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - SPEC CACHE DIRECTORY: /home/david/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/lib/ruby/gems/2.3.0
     - /home/david/.gem/ruby/2.3.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "bogus" => 1
     - :benchmark => false
     - :sources => ["https://rubygems.org/"]
     - "install" => "--no-ri --user-install --bindir /home/david/bin"
     - "update" => "--no-ri --user-install --bindir /home/david/bin"
     - "rdoc" => "--line-numbers"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /home/david/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/bin
     - /usr/lib/jvm/default/bin
     - /usr/bin/site_perl
     - /usr/bin/vendor_perl
     - /usr/bin/core_perl

% ./bin/rake spec:deps
/usr/bin/ruby -S gem install --no-ri --no-rdoc --conservative 'automatiek:~> 0.1.0' 'mustache:= 0.99.6' 'rake:~> 10.0' 'rdiscount:~> 2.2' 'ronn:~> 0.7.3' 'rspec:~> 3.5' 'rubocop:= 0.48.0'
WARN: Unresolved specs during Gem::Specification.reset:
      rainbow (< 3.0, >= 1.99.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
spec:deps ran for   0.000000   0.000000   0.330000 (  0.338578)

% ./bin/rake spec
/usr/bin/ruby -S ronn --roff --pipe man/bundle-platform.ronn > man/bundle-platform.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-platform.1 | col -b > man/bundle-platform.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-gem.ronn > man/bundle-gem.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-gem.1 | col -b > man/bundle-gem.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-pristine.ronn > man/bundle-pristine.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-pristine.1 | col -b > man/bundle-pristine.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-open.ronn > man/bundle-open.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-open.1 | col -b > man/bundle-open.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-package.ronn > man/bundle-package.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-package.1 | col -b > man/bundle-package.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-binstubs.ronn > man/bundle-binstubs.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-binstubs.1 | col -b > man/bundle-binstubs.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-viz.ronn > man/bundle-viz.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-viz.1 | col -b > man/bundle-viz.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle.ronn > man/bundle.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle.1 | col -b > man/bundle.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-init.ronn > man/bundle-init.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-init.1 | col -b > man/bundle-init.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-exec.ronn > man/bundle-exec.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-exec.1 | col -b > man/bundle-exec.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-config.ronn > man/bundle-config.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-config.1 | col -b > man/bundle-config.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/gemfile.5.ronn > man/gemfile.5
groff -Wall -mtty-char -mandoc -Tascii man/gemfile.5 | col -b > man/gemfile.5.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-outdated.ronn > man/bundle-outdated.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-outdated.1 | col -b > man/bundle-outdated.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-update.ronn > man/bundle-update.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-update.1 | col -b > man/bundle-update.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-info.ronn > man/bundle-info.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-info.1 | col -b > man/bundle-info.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-clean.ronn > man/bundle-clean.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-clean.1 | col -b > man/bundle-clean.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-inject.ronn > man/bundle-inject.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-inject.1 | col -b > man/bundle-inject.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-install.ronn > man/bundle-install.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-install.1 | col -b > man/bundle-install.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-add.ronn > man/bundle-add.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-add.1 | col -b > man/bundle-add.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-lock.ronn > man/bundle-lock.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-lock.1 | col -b > man/bundle-lock.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-show.ronn > man/bundle-show.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-show.1 | col -b > man/bundle-show.1.txt
/usr/bin/ruby -S ronn --roff --pipe man/bundle-check.ronn > man/bundle-check.1
groff -Wall -mtty-char -mandoc -Tascii man/bundle-check.1 | col -b > man/bundle-check.1.txt
/usr/bin/ruby -I/home/david/.gem/ruby/2.3.0/gems/rspec-support-3.6.0/lib:/home/david/.gem/ruby/2.3.0/gems/rspec-core-3.6.0/lib /home/david/.gem/ruby/2.3.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb

An error occurred while loading ./spec/bundler/gem_helper_spec.rb.
Failure/Error: require "rake"

LoadError:
  cannot load such file -- rake
# ./spec/bundler/gem_helper_spec.rb:3:in `<top (required)>'
Run options: exclude {:rubygems_master=>true, :git=>"=< 2.14.2", :rubygems=>"=< 2.6.14", :ruby=>"=< 2.3.5", :realworld=>true, :sudo=>true}


Retried examples: 0

Finished in 0.00336 seconds (files took 0.8062 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

/usr/bin/ruby -I/home/david/.gem/ruby/2.3.0/gems/rspec-support-3.6.0/lib:/home/david/.gem/ruby/2.3.0/gems/rspec-core-3.6.0/lib /home/david/.gem/ruby/2.3.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed

@dekellum dekellum changed the title Followed docs by unable to run specs in local dev environment Followed docs but unable to run specs in local dev environment Oct 16, 2017
@dekellum
Copy link
Contributor Author

I tried downgrading to rubygems 2.6.13, but doesn't help. Also If I try only running a part of the specs I need, I appear to get a different, seemingly unrelated failure:

% bin/rspec spec/commands/exec_spec.rb

Run options: exclude {:rubygems_master=>true, :git=>"=< 2.14.2", :rubygems=>"=< 2.6.13", :ruby=>"=< 2.3.5", :realworld=>true, :sudo=>true}

bundle exec
  activates the correct gem (FAILED - 1)
  works when the bins are in ~/.bundle (FAILED - 2)
  works when running from a random directory (FAILED - 3)
  works when exec'ing something else (FAILED - 4)
  works when exec'ing to ruby (FAILED - 5)
  accepts --verbose (FAILED - 6)
  passes --verbose to command if it is given after the command (FAILED - 7)
  handles --keep-file-descriptors (FAILED - 8)
  accepts --keep-file-descriptors (FAILED - 9)
  can run a command named --verbose (FAILED - 10)
  handles different versions in different bundles (FAILED - 11)
  handles gems installed with --without (FAILED - 12)
  does not duplicate already exec'ed RUBYOPT (FAILED - 13)
  does not duplicate already exec'ed RUBYLIB (FAILED - 14)
  errors nicely when the argument doesn't exist (FAILED - 15)
  errors nicely when the argument is not executable (FAILED - 16)
  errors nicely when no arguments are passed (FAILED - 17)
  raises a helpful error when exec'ing to something outside of the bundle (FAILED - 18)
  performs an automatic bundle install (FAILED - 19)
  with help flags
    when e is used
      shows executable's man page when --help is after the executable (FAILED - 20)
      shows executable's man page when --help is after the executable and an argument (FAILED - 21)
      shows executable's man page when the executable has a - (FAILED - 22)
      shows executable's man page when --help is after another flag (FAILED - 23)
      uses executable's original behavior for -h (FAILED - 24)
      shows bundle-exec's man page when --help is between exec and the executable (FAILED - 25)
      shows bundle-exec's man page when --help is before exec (FAILED - 26)
      shows bundle-exec's man page when -h is before exec (FAILED - 27)
      shows bundle-exec's man page when --help is after exec (FAILED - 28)
      shows bundle-exec's man page when -h is after exec (FAILED - 29)
    when ex is used
      shows executable's man page when --help is after the executable (FAILED - 30)
      shows executable's man page when --help is after the executable and an argument (FAILED - 31)
      shows executable's man page when the executable has a - (FAILED - 32)
      shows executable's man page when --help is after another flag (FAILED - 33)
      uses executable's original behavior for -h (FAILED - 34)
      shows bundle-exec's man page when --help is between exec and the executable (FAILED - 35)
      shows bundle-exec's man page when --help is before exec (FAILED - 36)
      shows bundle-exec's man page when -h is before exec (FAILED - 37)
      shows bundle-exec's man page when --help is after exec (FAILED - 38)
      shows bundle-exec's man page when -h is after exec (FAILED - 39)
    when exe is used
      shows executable's man page when --help is after the executable (FAILED - 40)
      shows executable's man page when --help is after the executable and an argument (FAILED - 41)
      shows executable's man page when the executable has a - (FAILED - 42)
      shows executable's man page when --help is after another flag (FAILED - 43)
      uses executable's original behavior for -h (FAILED - 44)
      shows bundle-exec's man page when --help is between exec and the executable (FAILED - 45)
      shows bundle-exec's man page when --help is before exec (FAILED - 46)
      shows bundle-exec's man page when -h is before exec (FAILED - 47)
      shows bundle-exec's man page when --help is after exec (FAILED - 48)
      shows bundle-exec's man page when -h is after exec (FAILED - 49)
    when exec is used
      shows executable's man page when --help is after the executable (FAILED - 50)
      shows executable's man page when --help is after the executable and an argument (FAILED - 51)
      shows executable's man page when the executable has a - (FAILED - 52)
      shows executable's man page when --help is after another flag (FAILED - 53)
      uses executable's original behavior for -h (FAILED - 54)
      shows bundle-exec's man page when --help is between exec and the executable (FAILED - 55)
      shows bundle-exec's man page when --help is before exec (FAILED - 56)
      shows bundle-exec's man page when -h is before exec (FAILED - 57)
      shows bundle-exec's man page when --help is after exec (FAILED - 58)
      shows bundle-exec's man page when -h is after exec (FAILED - 59)
  with gem executables
    run from a random directory
      works when unlocked (FAILED - 60)
      works when locked (FAILED - 61)
    from gems bundled via :path
      works when unlocked (FAILED - 62)
      works when locked (FAILED - 63)
    from gems bundled via :git
      works when unlocked (FAILED - 64)
      works when locked (FAILED - 65)
    from gems bundled via :git with no gemspec
      works when unlocked (FAILED - 66)
      works when locked (FAILED - 67)
  with gems bundled via :path with invalid gemspecs
    outputs the gemspec validation errors (FAILED - 68)
  with gems bundled for deployment
    works when calling bundler from another script (FAILED - 69)
  `load`ing a ruby file instead of `exec`ing
    behaves like it runs
      like a normally executed executable (FAILED - 70)
    the executable exits explicitly
      with exit 0
        behaves like it runs
          like a normally executed executable (FAILED - 71)
      with exit 99
        behaves like it runs
          like a normally executed executable (FAILED - 72)
    the executable is empty
      behaves like it runs
        like a normally executed executable (FAILED - 73)
    the executable raises
      behaves like it runs
        like a normally executed executable (FAILED - 74)
    when the file uses the current ruby shebang
      behaves like it runs
        like a normally executed executable (FAILED - 75)
    when Bundler.setup fails
      behaves like it runs
        like a normally executed executable (FAILED - 76)
    when the executable exits non-zero via at_exit
      behaves like it runs
        like a normally executed executable (FAILED - 77)
    when disable_exec_load is set
      behaves like it runs
        like a normally executed executable (FAILED - 78)
    regarding $0 and __FILE__
      behaves like it runs
        like a normally executed executable (FAILED - 79)
      when the path is relative
        behaves like it runs
          like a normally executed executable (FAILED - 80)
      when the path is relative with a leading ./
        relative paths with ./ have absolute __FILE__
    signals being trapped by bundler
      receives the signal (FAILED - 81)
  nested bundle exec
    with shared gems disabled
      overrides disable_shared_gems so bundler can be found (FAILED - 82)
    with a system gem that shadows a default gem
      only leaves the default gem in the stdlib available (FAILED - 83)


Retried examples: 0

Failures:

  1) bundle exec activates the correct gem
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  2) bundle exec works when the bins are in ~/.bundle
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  3) bundle exec works when running from a random directory
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  4) bundle exec works when exec'ing something else
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  5) bundle exec works when exec'ing to ruby
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  6) bundle exec accepts --verbose
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  7) bundle exec passes --verbose to command if it is given after the command
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  8) bundle exec handles --keep-file-descriptors
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  9) bundle exec accepts --keep-file-descriptors
     Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

     RuntimeError:
       Invoking gem_command!(:generate_index) failed:
       ERROR:  While executing gem ... (RuntimeError)
           Gem::Indexer requires that the XML Builder library be installed:
       	gem install builder
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
       	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
       	/usr/bin/gem:21:in `<main>'
     # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
     # ./spec/support/builders.rb:380:in `chdir'
     # ./spec/support/builders.rb:380:in `block in update_repo'
     # ./spec/support/helpers.rb:272:in `with_gem_path_as'
     # ./spec/support/builders.rb:379:in `update_repo'
     # ./spec/support/builders.rb:368:in `build_repo'
     # ./spec/support/builders.rb:20:in `build_repo1'
     # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  10) bundle exec can run a command named --verbose
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  11) bundle exec handles different versions in different bundles
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  12) bundle exec handles gems installed with --without
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  13) bundle exec does not duplicate already exec'ed RUBYOPT
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  14) bundle exec does not duplicate already exec'ed RUBYLIB
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  15) bundle exec errors nicely when the argument doesn't exist
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  16) bundle exec errors nicely when the argument is not executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  17) bundle exec errors nicely when no arguments are passed
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  18) bundle exec raises a helpful error when exec'ing to something outside of the bundle
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  19) bundle exec performs an automatic bundle install
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  20) bundle exec with help flags when e is used shows executable's man page when --help is after the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  21) bundle exec with help flags when e is used shows executable's man page when --help is after the executable and an argument
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  22) bundle exec with help flags when e is used shows executable's man page when the executable has a -
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  23) bundle exec with help flags when e is used shows executable's man page when --help is after another flag
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  24) bundle exec with help flags when e is used uses executable's original behavior for -h
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  25) bundle exec with help flags when e is used shows bundle-exec's man page when --help is between exec and the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  26) bundle exec with help flags when e is used shows bundle-exec's man page when --help is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  27) bundle exec with help flags when e is used shows bundle-exec's man page when -h is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  28) bundle exec with help flags when e is used shows bundle-exec's man page when --help is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  29) bundle exec with help flags when e is used shows bundle-exec's man page when -h is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  30) bundle exec with help flags when ex is used shows executable's man page when --help is after the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  31) bundle exec with help flags when ex is used shows executable's man page when --help is after the executable and an argument
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  32) bundle exec with help flags when ex is used shows executable's man page when the executable has a -
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  33) bundle exec with help flags when ex is used shows executable's man page when --help is after another flag
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  34) bundle exec with help flags when ex is used uses executable's original behavior for -h
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  35) bundle exec with help flags when ex is used shows bundle-exec's man page when --help is between exec and the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  36) bundle exec with help flags when ex is used shows bundle-exec's man page when --help is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  37) bundle exec with help flags when ex is used shows bundle-exec's man page when -h is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  38) bundle exec with help flags when ex is used shows bundle-exec's man page when --help is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  39) bundle exec with help flags when ex is used shows bundle-exec's man page when -h is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  40) bundle exec with help flags when exe is used shows executable's man page when --help is after the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  41) bundle exec with help flags when exe is used shows executable's man page when --help is after the executable and an argument
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  42) bundle exec with help flags when exe is used shows executable's man page when the executable has a -
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  43) bundle exec with help flags when exe is used shows executable's man page when --help is after another flag
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  44) bundle exec with help flags when exe is used uses executable's original behavior for -h
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  45) bundle exec with help flags when exe is used shows bundle-exec's man page when --help is between exec and the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  46) bundle exec with help flags when exe is used shows bundle-exec's man page when --help is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  47) bundle exec with help flags when exe is used shows bundle-exec's man page when -h is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  48) bundle exec with help flags when exe is used shows bundle-exec's man page when --help is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  49) bundle exec with help flags when exe is used shows bundle-exec's man page when -h is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  50) bundle exec with help flags when exec is used shows executable's man page when --help is after the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  51) bundle exec with help flags when exec is used shows executable's man page when --help is after the executable and an argument
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  52) bundle exec with help flags when exec is used shows executable's man page when the executable has a -
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  53) bundle exec with help flags when exec is used shows executable's man page when --help is after another flag
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  54) bundle exec with help flags when exec is used uses executable's original behavior for -h
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  55) bundle exec with help flags when exec is used shows bundle-exec's man page when --help is between exec and the executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  56) bundle exec with help flags when exec is used shows bundle-exec's man page when --help is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  57) bundle exec with help flags when exec is used shows bundle-exec's man page when -h is before exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  58) bundle exec with help flags when exec is used shows bundle-exec's man page when --help is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  59) bundle exec with help flags when exec is used shows bundle-exec's man page when -h is after exec
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  60) bundle exec with gem executables run from a random directory works when unlocked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  61) bundle exec with gem executables run from a random directory works when locked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  62) bundle exec with gem executables from gems bundled via :path works when unlocked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  63) bundle exec with gem executables from gems bundled via :path works when locked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  64) bundle exec with gem executables from gems bundled via :git works when unlocked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  65) bundle exec with gem executables from gems bundled via :git works when locked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  66) bundle exec with gem executables from gems bundled via :git with no gemspec works when unlocked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  67) bundle exec with gem executables from gems bundled via :git with no gemspec works when locked
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  68) bundle exec with gems bundled via :path with invalid gemspecs outputs the gemspec validation errors
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  69) bundle exec with gems bundled for deployment works when calling bundler from another script
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  70) bundle exec `load`ing a ruby file instead of `exec`ing behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:528
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  71) bundle exec `load`ing a ruby file instead of `exec`ing the executable exits explicitly with exit 0 behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:534
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  72) bundle exec `load`ing a ruby file instead of `exec`ing the executable exits explicitly with exit 99 behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:539
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  73) bundle exec `load`ing a ruby file instead of `exec`ing the executable is empty behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:554
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  74) bundle exec `load`ing a ruby file instead of `exec`ing the executable raises behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:566
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  75) bundle exec `load`ing a ruby file instead of `exec`ing when the file uses the current ruby shebang behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:571
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  76) bundle exec `load`ing a ruby file instead of `exec`ing when Bundler.setup fails behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:588
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  77) bundle exec `load`ing a ruby file instead of `exec`ing when the executable exits non-zero via at_exit behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:595
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  78) bundle exec `load`ing a ruby file instead of `exec`ing when disable_exec_load is set behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:606
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  79) bundle exec `load`ing a ruby file instead of `exec`ing regarding $0 and __FILE__ behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:622
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  80) bundle exec `load`ing a ruby file instead of `exec`ing regarding $0 and __FILE__ when the path is relative behaves like it runs like a normally executed executable
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      Shared Example Group: "it runs" called from ./spec/commands/exec_spec.rb:630
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  81) bundle exec `load`ing a ruby file instead of `exec`ing signals being trapped by bundler receives the signal
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  82) bundle exec nested bundle exec with shared gems disabled overrides disable_shared_gems so bundler can be found
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

  83) bundle exec nested bundle exec with a system gem that shadows a default gem only leaves the default gem in the stdlib available
      Failure/Error: Dir.chdir(path) { gem_command! :generate_index }

      RuntimeError:
        Invoking gem_command!(:generate_index) failed:
        ERROR:  While executing gem ... (RuntimeError)
            Gem::Indexer requires that the XML Builder library be installed:
        	gem install builder
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/indexer.rb:58:in `initialize'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `new'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/commands/generate_index_command.rb:74:in `execute'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command.rb:310:in `invoke_with_build_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:169:in `process_args'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/command_manager.rb:139:in `run'
        	/usr/lib/ruby/site_ruby/2.3.0/rubygems/gem_runner.rb:55:in `run'
        	/usr/bin/gem:21:in `<main>'
      # ./spec/support/builders.rb:380:in `block (2 levels) in update_repo'
      # ./spec/support/builders.rb:380:in `chdir'
      # ./spec/support/builders.rb:380:in `block in update_repo'
      # ./spec/support/helpers.rb:272:in `with_gem_path_as'
      # ./spec/support/builders.rb:379:in `update_repo'
      # ./spec/support/builders.rb:368:in `build_repo'
      # ./spec/support/builders.rb:20:in `build_repo1'
      # ./spec/spec_helper.rb:105:in `block (2 levels) in <top (required)>'

Finished in 0.48519 seconds (files took 0.17429 seconds to load)
84 examples, 83 failures

Failed examples:

rspec ./spec/commands/exec_spec.rb:10 # bundle exec activates the correct gem
rspec ./spec/commands/exec_spec.rb:19 # bundle exec works when the bins are in ~/.bundle
rspec ./spec/commands/exec_spec.rb:28 # bundle exec works when running from a random directory
rspec ./spec/commands/exec_spec.rb:38 # bundle exec works when exec'ing something else
rspec ./spec/commands/exec_spec.rb:44 # bundle exec works when exec'ing to ruby
rspec ./spec/commands/exec_spec.rb:50 # bundle exec accepts --verbose
rspec ./spec/commands/exec_spec.rb:56 # bundle exec passes --verbose to command if it is given after the command
rspec ./spec/commands/exec_spec.rb:62 # bundle exec handles --keep-file-descriptors
rspec ./spec/commands/exec_spec.rb:93 # bundle exec accepts --keep-file-descriptors
rspec ./spec/commands/exec_spec.rb:100 # bundle exec can run a command named --verbose
rspec ./spec/commands/exec_spec.rb:113 # bundle exec handles different versions in different bundles
rspec ./spec/commands/exec_spec.rb:142 # bundle exec handles gems installed with --without
rspec ./spec/commands/exec_spec.rb:158 # bundle exec does not duplicate already exec'ed RUBYOPT
rspec ./spec/commands/exec_spec.rb:173 # bundle exec does not duplicate already exec'ed RUBYLIB
rspec ./spec/commands/exec_spec.rb:189 # bundle exec errors nicely when the argument doesn't exist
rspec ./spec/commands/exec_spec.rb:200 # bundle exec errors nicely when the argument is not executable
rspec ./spec/commands/exec_spec.rb:211 # bundle exec errors nicely when no arguments are passed
rspec ./spec/commands/exec_spec.rb:221 # bundle exec raises a helpful error when exec'ing to something outside of the bundle
rspec ./spec/commands/exec_spec.rb:427 # bundle exec performs an automatic bundle install
rspec ./spec/commands/exec_spec.rb[1:20:1:1] # bundle exec with help flags when e is used shows executable's man page when --help is after the executable
rspec ./spec/commands/exec_spec.rb[1:20:1:2] # bundle exec with help flags when e is used shows executable's man page when --help is after the executable and an argument
rspec ./spec/commands/exec_spec.rb[1:20:1:3] # bundle exec with help flags when e is used shows executable's man page when the executable has a -
rspec ./spec/commands/exec_spec.rb[1:20:1:4] # bundle exec with help flags when e is used shows executable's man page when --help is after another flag
rspec ./spec/commands/exec_spec.rb[1:20:1:5] # bundle exec with help flags when e is used uses executable's original behavior for -h
rspec ./spec/commands/exec_spec.rb[1:20:1:6] # bundle exec with help flags when e is used shows bundle-exec's man page when --help is between exec and the executable
rspec ./spec/commands/exec_spec.rb[1:20:1:7] # bundle exec with help flags when e is used shows bundle-exec's man page when --help is before exec
rspec ./spec/commands/exec_spec.rb[1:20:1:8] # bundle exec with help flags when e is used shows bundle-exec's man page when -h is before exec
rspec ./spec/commands/exec_spec.rb[1:20:1:9] # bundle exec with help flags when e is used shows bundle-exec's man page when --help is after exec
rspec ./spec/commands/exec_spec.rb[1:20:1:10] # bundle exec with help flags when e is used shows bundle-exec's man page when -h is after exec
rspec ./spec/commands/exec_spec.rb[1:20:2:1] # bundle exec with help flags when ex is used shows executable's man page when --help is after the executable
rspec ./spec/commands/exec_spec.rb[1:20:2:2] # bundle exec with help flags when ex is used shows executable's man page when --help is after the executable and an argument
rspec ./spec/commands/exec_spec.rb[1:20:2:3] # bundle exec with help flags when ex is used shows executable's man page when the executable has a -
rspec ./spec/commands/exec_spec.rb[1:20:2:4] # bundle exec with help flags when ex is used shows executable's man page when --help is after another flag
rspec ./spec/commands/exec_spec.rb[1:20:2:5] # bundle exec with help flags when ex is used uses executable's original behavior for -h
rspec ./spec/commands/exec_spec.rb[1:20:2:6] # bundle exec with help flags when ex is used shows bundle-exec's man page when --help is between exec and the executable
rspec ./spec/commands/exec_spec.rb[1:20:2:7] # bundle exec with help flags when ex is used shows bundle-exec's man page when --help is before exec
rspec ./spec/commands/exec_spec.rb[1:20:2:8] # bundle exec with help flags when ex is used shows bundle-exec's man page when -h is before exec
rspec ./spec/commands/exec_spec.rb[1:20:2:9] # bundle exec with help flags when ex is used shows bundle-exec's man page when --help is after exec
rspec ./spec/commands/exec_spec.rb[1:20:2:10] # bundle exec with help flags when ex is used shows bundle-exec's man page when -h is after exec
rspec ./spec/commands/exec_spec.rb[1:20:3:1] # bundle exec with help flags when exe is used shows executable's man page when --help is after the executable
rspec ./spec/commands/exec_spec.rb[1:20:3:2] # bundle exec with help flags when exe is used shows executable's man page when --help is after the executable and an argument
rspec ./spec/commands/exec_spec.rb[1:20:3:3] # bundle exec with help flags when exe is used shows executable's man page when the executable has a -
rspec ./spec/commands/exec_spec.rb[1:20:3:4] # bundle exec with help flags when exe is used shows executable's man page when --help is after another flag
rspec ./spec/commands/exec_spec.rb[1:20:3:5] # bundle exec with help flags when exe is used uses executable's original behavior for -h
rspec ./spec/commands/exec_spec.rb[1:20:3:6] # bundle exec with help flags when exe is used shows bundle-exec's man page when --help is between exec and the executable
rspec ./spec/commands/exec_spec.rb[1:20:3:7] # bundle exec with help flags when exe is used shows bundle-exec's man page when --help is before exec
rspec ./spec/commands/exec_spec.rb[1:20:3:8] # bundle exec with help flags when exe is used shows bundle-exec's man page when -h is before exec
rspec ./spec/commands/exec_spec.rb[1:20:3:9] # bundle exec with help flags when exe is used shows bundle-exec's man page when --help is after exec
rspec ./spec/commands/exec_spec.rb[1:20:3:10] # bundle exec with help flags when exe is used shows bundle-exec's man page when -h is after exec
rspec ./spec/commands/exec_spec.rb[1:20:4:1] # bundle exec with help flags when exec is used shows executable's man page when --help is after the executable
rspec ./spec/commands/exec_spec.rb[1:20:4:2] # bundle exec with help flags when exec is used shows executable's man page when --help is after the executable and an argument
rspec ./spec/commands/exec_spec.rb[1:20:4:3] # bundle exec with help flags when exec is used shows executable's man page when the executable has a -
rspec ./spec/commands/exec_spec.rb[1:20:4:4] # bundle exec with help flags when exec is used shows executable's man page when --help is after another flag
rspec ./spec/commands/exec_spec.rb[1:20:4:5] # bundle exec with help flags when exec is used uses executable's original behavior for -h
rspec ./spec/commands/exec_spec.rb[1:20:4:6] # bundle exec with help flags when exec is used shows bundle-exec's man page when --help is between exec and the executable
rspec ./spec/commands/exec_spec.rb[1:20:4:7] # bundle exec with help flags when exec is used shows bundle-exec's man page when --help is before exec
rspec ./spec/commands/exec_spec.rb[1:20:4:8] # bundle exec with help flags when exec is used shows bundle-exec's man page when -h is before exec
rspec ./spec/commands/exec_spec.rb[1:20:4:9] # bundle exec with help flags when exec is used shows bundle-exec's man page when --help is after exec
rspec ./spec/commands/exec_spec.rb[1:20:4:10] # bundle exec with help flags when exec is used shows bundle-exec's man page when -h is after exec
rspec ./spec/commands/exec_spec.rb:343 # bundle exec with gem executables run from a random directory works when unlocked
rspec ./spec/commands/exec_spec.rb:349 # bundle exec with gem executables run from a random directory works when locked
rspec ./spec/commands/exec_spec.rb:367 # bundle exec with gem executables from gems bundled via :path works when unlocked
rspec ./spec/commands/exec_spec.rb:372 # bundle exec with gem executables from gems bundled via :path works when locked
rspec ./spec/commands/exec_spec.rb:391 # bundle exec with gem executables from gems bundled via :git works when unlocked
rspec ./spec/commands/exec_spec.rb:396 # bundle exec with gem executables from gems bundled via :git works when locked
rspec ./spec/commands/exec_spec.rb:414 # bundle exec with gem executables from gems bundled via :git with no gemspec works when unlocked
rspec ./spec/commands/exec_spec.rb:419 # bundle exec with gem executables from gems bundled via :git with no gemspec works when locked
rspec ./spec/commands/exec_spec.rb:440 # bundle exec with gems bundled via :path with invalid gemspecs outputs the gemspec validation errors
rspec ./spec/commands/exec_spec.rb:467 # bundle exec with gems bundled for deployment works when calling bundler from another script
rspec ./spec/commands/exec_spec.rb[1:25:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:2:1:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing the executable exits explicitly with exit 0 behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:2:2:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing the executable exits explicitly with exit 99 behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:3:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing the executable is empty behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:4:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing the executable raises behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:5:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing when the file uses the current ruby shebang behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:6:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing when Bundler.setup fails behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:7:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing when the executable exits non-zero via at_exit behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:8:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing when disable_exec_load is set behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:9:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing regarding $0 and __FILE__ behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb[1:25:9:2:1:1] # bundle exec `load`ing a ruby file instead of `exec`ing regarding $0 and __FILE__ when the path is relative behaves like it runs like a normally executed executable
rspec ./spec/commands/exec_spec.rb:660 # bundle exec `load`ing a ruby file instead of `exec`ing signals being trapped by bundler receives the signal
rspec ./spec/commands/exec_spec.rb:685 # bundle exec nested bundle exec with shared gems disabled overrides disable_shared_gems so bundler can be found
rspec ./spec/commands/exec_spec.rb:701 # bundle exec nested bundle exec with a system gem that shadows a default gem only leaves the default gem in the stdlib available

% gem list builder

*** LOCAL GEMS ***

builder (2.1.2)

@dekellum
Copy link
Contributor Author

I tried installing both 2.1.2 and 3.2.3 of builder to workaround this. No luck.

@dekellum
Copy link
Contributor Author

And same issues on ruby 2.4.2, and cleaned out local gems. I'm out of guesses currently.

@olleolleolle
Copy link
Member

I sometimes read issues in the Rainbow repo. People who use stock installs of Ruby on Ubuntu have a bad time with rake as a dependency.

Are using a Ruby “version manager”?

I thought of this when I saw


An error occurred while loading ./spec/bundler/gem_helper_spec.rb.
Failure/Error: require "rake"

LoadError:
  cannot load such file -- rake
# ./spec/bundler/gem_helper_spec.rb

@dekellum
Copy link
Contributor Author

FWIW, my dev environment is Arch Linux, with either stock ruby package (2.4.2) or built by me (2.3.5) using Arch makepkg tooling. I've never seen such problems on any other projects previously. Rake is installed as part of ruby package as well as in gem form.

@olleolleolle
Copy link
Member

This StackOverflow thread about this kind of issue could have clues to this issue.

@dekellum
Copy link
Contributor Author

I have no problems installing and running rubocop on the bundler source (via bin/rubocop -a) and I'm not using a distro package manager installed rake or any other gem, so I fail to see the resemblance to that thread. Nevertheless thanks and I tried blowing away my ~/.gem/ruby/2.3.0 again and installing only system gems for the bundler spec deps via:

sudo ruby -S gem install --no-ri --no-rdoc --conservative 'automatiek:~> 0.1.0' 'mustache:= 0.99.6' 'rake:~> 10.0' 'rdiscount:~> 2.2' 'ronn:~> 0.7.3' 'rspec:~> 3.6' 'rubocop:= 0.50.0'

This didn't change anything. Its amazing to me that bundler is only ruby project that I have this problem with, and even in a prestine gem environment. At minimum, it will be interesting to see how that pans out if bundler and its specs remain part of a ruby 2.5.0 final release.

@colby-swandale
Copy link
Member

Thanks for reporting this issue, we'll have a look into this

@colby-swandale
Copy link
Member

Do the tests pass when you gem install builder?

@dekellum
Copy link
Contributor Author

No, and I tried installing builder 2.1.2, then 3.2.3 on both ruby 2.4.2 and 2.3.5.

@colby-swandale
Copy link
Member

What's the output after you have installed builder?

@dekellum
Copy link
Contributor Author

Identical.

@colby-swandale
Copy link
Member

@dekellum were you able to solve this issue? I've tried replicating this issue on arch several times but was able to successfully run our test suite.

@dekellum
Copy link
Contributor Author

I can still reproduce the problem with latest master 892a637. Are you using some shell-magic RVM/rbenv etc? For lack of a better idea, I am thinking to try and see if using one of those changes anything.

@colby-swandale
Copy link
Member

ping @dekellum is this still an issue?

@dekellum
Copy link
Contributor Author

I can still reproduce, now with latest master 7fc622b and later updated system ruby 2.3.6p384.

@deivid-rodriguez
Copy link
Member

@dekellum Can you reproduce this using ruby 2.4 or ruby 2.5?

@colby-swandale
Copy link
Member

No response for a while so i'm closing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants