httparty conditional dependency