How to install pg gem with Bundler when using Postgres.app 9.4
Rather than running the normal bundle install command, you'll need to specify the path to pg_config and then build the bundle:
bundle config build.pg --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config