Skip to content

Instantly share code, notes, and snippets.

@arunk
Created March 10, 2011 17:37
Show Gist options
  • Select an option

  • Save arunk/864526 to your computer and use it in GitHub Desktop.

Select an option

Save arunk/864526 to your computer and use it in GitHub Desktop.
Line 2503 is rake_original_const_missing(const_name) at the bottom last else.
['--execute-print', '-p CODE', "Execute some Ruby code, print the result, then exit.",
lambda { |value|
puts eval(value) ##Line 2223 - previous call in stack trace.
exit
}
],
def const_missing(const_name)
case const_name
when :Task
Rake.application.const_warning(const_name)
Rake::Task
when :FileTask
Rake.application.const_warning(const_name)
Rake::FileTask
when :FileCreationTask
Rake.application.const_warning(const_name)
Rake::FileCreationTask
when :RakeApp
Rake.application.const_warning(const_name)
Rake::Application
else
rake_original_const_missing(const_name) ##Line 2503 - error is here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment