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

mathcha

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathcha

  • 0.5.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Matcha

Mathcha is a horribly-named, arithmetic-based, text-driven captcha. Why you ask? For very few good reasons:

  • I had never written a plugin.
  • I wanted to play with a few bits of technology I hadn't touched:
    • git
    • github
    • gemcutter, gem packaging, jeweler
  • I really like Recaptcha it's just that I've seen a few folk using simple math problems; I prefer it.
  • I need this functionality across a few applications I've been working on.

Note

This thing is nascent, fledgling, and was produced in a matter of hours. I haven't thoroughly tested it yet so don't put too much faith in it. Please feel free to fork and dress up. I plan on staying on top of this over the next few weeks and getting something put together that I'm happy to push on my peers.

Installation

First, install the gem:

sudo gem install mathcha

Next, modify your config/environment.rb to reference the mathcha gem:

config.gem "mathcha", :source => "http://gemcutter.org"

Usage

In your view (this will dump the proper input and a hidden key field)

<%= mathcha_tag %>

In your controller

if (verify_mathcha(params))

Copyright (c) 2009 Cory Wilkerson, released under the MIT license

FAQs

Package last updated on 18 Oct 2009

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