0.0
No commit activity in last 3 years
No release in over 3 years
Anti-spam protection for your website
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.5
~> 1.11
 Project Readme

RainCaptcha

A simple Ruby wrapper for the RainCaptcha HTTP API.

Installation

gem install rain_captcha

Configuration

Use HTTPS

RainCaptcha.configure do |config|
  config.use_ssl = true
end

RainCaptcha.url("unique_identifier")
=> "https://raincaptcha.driversworld.us/captcha/?key=unique_identifier"

Examples

Get a Captcha image url

RainCaptcha.url("unique_identifier")
=> "http://raincaptcha.driversworld.us/captcha/?key=unique_identifier"

Verify a user response

RainCaptcha.verify("unique_identifier", "correct_response")
=> true

RainCaptcha.verify("unique_identifier", "incorrect_response")
=> false

RainCaptcha service not available

RainCaptcha.verify("unique_identifier", "correct_response")
=> Net::HTTPFatalError

Copyright

Copyright (c) 2013 Jay Strybis. See LICENSE for details.