title: Cannot load 'pry' - `require': cannot load such file -- pry (LoadError)
body: <p>I'm trying to debug a simple ruby console script and am getting a load error when trying to require pry:</p>
  
  <ul>
  <li>I'm using rbenv to management environment. </li>
  <li>I'm using Ruby version:
  2.3.1.</li>
  <li>Trying to use Pry '~> 0.10.4' </li>
  </ul>
  
  <p>/Users/gangelo/.rbenv/versions/2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- pry (LoadError)</p>
  
  <p>I've used Pry and Byebug in the past in rails applications and never had any issues like this. Searching for a solution, I've found that most issues are related to either not including Pry in the Gemfile or not including the Pry gem in the correct environment in the Gem file; this isn't the case with me, what am I doing wrong?</p>
  
  <pre><code># /Gemfile
  group :development, :test do
    gem 'pry', '~&gt; 0.10.4'
  end
  </code></pre>
  
  <p>And in my script:</p>
  
  <pre><code># /calculator/rpn_calculator_service.rb
  module RealPage
    module Calculator
      # Provides Reverse Polish Notation computation services.
      class RPNCalculatorService &lt; CalculatorService
        include Helpers::Arrays
  
        def initialize
          super RPNInputParser.new
        end
  
        def compute(input)
          # Load error here :(
          require 'pry'; binding.pry
          # Code removed for brevity...
        end
        # Code removed for brevity...
      end
    end
  end
  </code></pre>