Sha256: dbcfd72b77d49cc0200a8c5072db44e4fba8cef291791c886b537fb7c129c41a

Contents?: true

Size: 664 Bytes

Versions: 29

Compression:

Stored size: 664 Bytes

Contents

require 'pry' unless defined? Pry
require 'pry-nav/tracer'

class << Pry
  alias_method :start_without_pry_nav, :start

  def start_with_pry_nav(target = TOPLEVEL_BINDING, options = {})
    old_options = options.reject { |k, _| k == :pry_remote }

    if target.is_a?(Binding) && PryNav.check_file_context(target)
      # Wrap the tracer around the usual Pry.start
      PryNav::Tracer.new(options).run do
        start_without_pry_nav(target, old_options)
      end
    else
      # No need for the tracer unless we have a file context to step through
      start_without_pry_nav(target, old_options)
    end
  end

  alias_method :start, :start_with_pry_nav
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/pry-nav-0.3.0/lib/pry-nav/pry_ext.rb