aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb')
-rw-r--r--vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb52
1 files changed, 0 insertions, 52 deletions
diff --git a/vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb b/vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb
deleted file mode 100644
index 210470a5b..000000000
--- a/vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb
+++ /dev/null
@@ -1,52 +0,0 @@
-module Recaptcha
- # This class enables detailed configuration of the recaptcha services.
- #
- # By calling
- #
- # Recaptcha.configuration # => instance of Recaptcha::Configuration
- #
- # or
- # Recaptcha.configure do |config|
- # config # => instance of Recaptcha::Configuration
- # end
- #
- # you are able to perform configuration updates.
- #
- # Your are able to customize all attributes listed below. All values have
- # sensitive default and will very likely not need to be changed.
- #
- # Please note that the public and private key for the reCAPTCHA API Access
- # have no useful default value. The keys may be set via the Shell enviroment
- # or using this configuration. Settings within this configuration always take
- # precedence.
- #
- # Setting the keys with this Configuration
- #
- # Recaptcha.configure do |config|
- # config.public_key = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
- # config.private_key = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
- # end
- #
- class Configuration
- attr_accessor :nonssl_api_server_url,
- :ssl_api_server_url,
- :verify_url,
- :skip_verify_env,
- :private_key,
- :public_key
-
- def initialize #:nodoc:
- @nonssl_api_server_url = RECAPTCHA_API_SERVER_URL
- @ssl_api_server_url = RECAPTCHA_API_SECURE_SERVER_URL
- @verify_url = RECAPTCHA_VERIFY_URL
- @skip_verify_env = SKIP_VERIFY_ENV
-
- @private_key = ENV['RECAPTCHA_PRIVATE_KEY']
- @public_key = ENV['RECAPTCHA_PUBLIC_KEY']
- end
-
- def api_server_url(ssl = false) #:nodoc:
- ssl ? ssl_api_server_url : nonssl_api_server_url
- end
- end
-end