# this gem turns recaptcha verification off during tests by default.
# The public key/private keys shown below valid for all jamkazam.com domains
# note that all recaptcha keys work on localhost/127.0.0.1
# the keys are created at https://www.google.com/recaptcha/admin/create
Recaptcha.configure do |config|
  # created using seth@jamkazam.com; can't see way to delegate
  config.public_key  = '6Let8dgSAAAAAFheKGWrs6iaq_hIlPOZ2f3Bb56B'
  config.private_key = '6Let8dgSAAAAAJzFxL9w2QR5auxjk0ol1_xAtOGO'

  if Rails.application.config.recaptcha_enable
    # mirrors default behavior, but it's nice to see it without digging in recaptcha gem source
    config.skip_verify_env = ['test', 'cucumber']
  else
    # disabled in all environments at the moment
    config.skip_verify_env = ['test', 'cucumber', 'development', 'production']
  end
  # other config options available with this gem:
  #nonssl_api_server_url,
  #ssl_api_server_url,
  #verify_url,
  #skip_verify_env,
  #proxy,
  #handle_timeouts_gracefully
end