aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-03-12 13:05:19 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-03-12 13:05:19 +0000
commit37bff4c0154b57b35a3194a9b31a9422496b955b (patch)
tree61592a6bb9d1d9fea378a6e4efa8fdf7d5525b8a /vendor/gems/recaptcha-0.3.1/lib/recaptcha/configuration.rb
parent8b49dc894066e452232cabd09333895487f86986 (diff)
parent8acea24f98268fbb9b73b66b9e98a1788a3b30ac (diff)
Merge branch 'merged-bundler' into develop
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