Gems

Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
This repository contains various Ruby and Rails integrations for Elasticsearch:ActiveModel integration with adapters for ActiveRecord and MongoidRepository pattern based persistence layer for Ruby objectsEnumerable-based wrapper for search results...

ActiveLdap provides an object oriented interface to LDAP.
'ActiveLdap' is a ruby library which provides a clean objected oriented interface to LDAP library. It was inspired by ActiveRecord. This is not nearly as clean or as flexible as ActiveRecord, but it is still trivial to define new objects and manip...

A pure Ruby gem implemention of a Prolog-like DSL for AI and logical programming.
ruby-prolog allows you to solve complex logic problems on the fly using a dynamic, Prolog-like DSL inline with your normal Ruby code. Basic use is encompassed by stating basic facts using your data, defining rules, and then asking questions. Why i...

Pretty print your Ruby objects with style -- in full color and with proper indentation
AmazingPrint is a fork of AwesomePrint which became stale and should be used in it's place to avoid conflicts. It is a Ruby library that pretty prints Ruby objects in full color exposing their internal structure with proper indentation. Rails Acti...



Ruby extension to parse, deparse and normalize SQL queries using the PostgreSQL query parser
This Ruby extension uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parsetree.In addition the extension allows you to normalize queries (replacing constant values with ?) and parse these normalized ...

An explanation of the apparent paradox in the Monty Hall puzzle.
The Monty Hall problem is an interesting probability puzzler, made famous by Marilyn vos Savant in 1990. It is a problem that has puzzled many great mathematicians like Paul Erdős but it is easier to understand if you write out the code to simulat...