Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rain_captcha

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rain_captcha

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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 (c) 2013 Jay Strybis. See LICENSE for details.

FAQs

Package last updated on 30 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc