title: Correct way to combine `bundle exec` and `ruby -r`?
body: <p>Let's experiment with a random gem, it doesn't matter which.</p>
  
  <pre class="lang-rb prettyprint-override"><code># Gemfile
  gem "hashie"
  </code></pre>
  
  <p>Let's install our bundle in a (semi) non-standard place, so that <code>ruby</code> can't find it:</p>
  
  <pre class="lang-sh prettyprint-override"><code>bundle install --path=vendor/bundle
  ruby -e 'require "hashie"'
  # cannot load such file -- hashie (LoadError)
  </code></pre>
  
  <p>As expected, if we add <code>bundle exec</code> to the above, then <code>ruby -e</code> <em>can</em> find our gem:</p>
  
  <pre class="lang-sh prettyprint-override"><code>bundle exec ruby -e 'puts require "hashie"'
  # true
  </code></pre>
  
  <p>But, even with <code>bundle exec</code>, <code>ruby -r</code> cannot find our gem!</p>
  
  <pre class="lang-sh prettyprint-override"><code>bundle exec ruby -r hashie -e 'puts "win"'
  # cannot load such file -- hashie (LoadError)
  </code></pre>
  
  <p>The only way I have found to combine <code>bundle exec</code> and <code>ruby -r</code> is:</p>
  
  <pre class="lang-sh prettyprint-override"><code>bundle exec ruby -r 'bundler/setup' -r hashie -e 'puts "win"'
  # win
  </code></pre>
  
  <p>The <a href="https://bundler.io/v2.0/man/bundle-exec.1.html" rel="nofollow noreferrer">documentation for bundle exec</a> does not mention <code>ruby -r</code>, so I ask here, is this the correct way?</p>