newrelic/rpm — pull request #76 by cwholt (2012-09-19 18:08:44+00:00)
Title: IN_PHUSION_PASSENGER deprecated in Phusion Passenger 3.9.0, causes :dispatcher not to be found/set

Per Phusion (Hongli Lai): "The IN_PHUSION_PASSENGER constant is a
private implementation detail and was never meant to be part of the
public API."

3.9.0 (4.0.0 Beta 1) has removed defining the constant
IN_PHUSION_PASSENGER.

This commit looks for the proper ::PhusionPassenger, which is also
compatible with older versions.

As a workaround before implementing this, I have been doing:
"IN_PHUSION_PASSENGER = true if defined?(::PhusionPassenger)"