alainravet/private_please

$$ ERROR : nil == LineChangeTracker.call_initiator

alainravet opened this issue · 0 comments

TO REPRODUCE :

  $ rbenv local 1.9.3
  $ bundle exec rake install
  $ bundle exec ruby -r private_please doc/fixtures/sample.rb

=>

Volumes/dropbox/Dropbox/dev/myos/private_please/lib/private_please/version.rb:2: warning: already initialized constant PrivatePlease::VERSION
/Users/ara/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/private_please-0.0.3/lib/private_please/version.rb:2: warning: previous definition of VERSION was here
====================================================================================
=                               PrivatePlease report :                             =
====================================================================================


**********************************************************
ReportSample::AnotherClass
**********************************************************

    * Methods that were never called
    ------------------------------------------
        [".c_make_external_calls"]

        ["#make_external_calls", "#call_the_candidate_from_inside_and_outside"]



**********************************************************
ReportSample::Simple
**********************************************************

    * Methods that were never called
    ------------------------------------------
        [".c_make_internal_method_calls", ".not_a_candidate_c1", ".class_m_1", ".class_m_2", ".class_never_called_1"]

        ["#make_internal_calls", "#instance_m_1", "#instance_m_2", "#never_called_1"]

====================================================================================
/Users/ara/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/private_please-0.0.3/lib/private_please/tracking.rb:24:in `caller_class': **$$ ERROR : nil == LineChangeTracker.call_initiator (RuntimeError)
    from /Users/ara/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/private_please-0.0.3/lib/private_please/tracking.rb:9:in `after_instance_method_call'
    from (eval):3:in `block in add_call_tracking_code_to_instance_method'
    from _gitignored/sample.rb:65:in `<main>'