Skip to content
Ruby implementation of mathguard. Generate mathematical expression, which can be used as anti spam solution. With plugin can be used in Rails.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
MIT-LICENSE
README.rdoc
Rakefile
rmathguard.gemspec

README.rdoc

RMathGuard

Inspired by PHP project mathguard.

Usage

Generate expression:

guard = RMathGuard::Expression.new
puts  guard.show

FAT       K1Z
  8         5  QBZ
R7N  21E  JNI
  F         2  U87
CNO       GVO
=> nil

Show result of expression:

guard.result
=> 0

Integration with Rails

Something went wrong with that request. Please try again.