README.md in set_builder-1.1.0 vs README.md in set_builder-1.2.0.beta1

- old
+ new

@@ -1,35 +1,31 @@ -SetBuilder -========== +# SetBuilder -SetBuilder's purpose is to transform _described_ data sets into queries or natural language. +[![Build Status](https://travis-ci.org/boblail/set_builder.png?branch=master)](https://travis-ci.org/boblail/set_builder) +[![Code Climate](https://codeclimate.com/github/boblail/set_builder.png)](https://codeclimate.com/github/boblail/set_builder) +SetBuilder is a library for: -Example -======= + * Describing a set of constraints in a simple data structure that can easily be serialized + * Presenting that data structure in natural language + * Performing the set of constraints as a SQL query -The following set describes a group of people using simple data structures (Arrays, Strings, Symbols, and Hashes): + +### Example + +The following Set describes a group of people: + [[:awesome], [:attended, "school"], [:died, :not], [:name, {:is => "Jerome"}]] -SetBuilder can render this set in plain English: +SetBuilder can render this Set in plain English: [Everyone] who is awesome, who attended school, who has not died, and whose name is Jerome. It can also generate a NamedScope on an ActiveRecord model to fetch the people who fit in this set. - -Usage -===== - - - -Roadmap -======= - -Right now SetBuilder uses ActiveRecord::NamedScope::Scope internally, but it shouldn't be hard to refactor it to use DataMapper's composable queries instead. Copyright (c) 2010 Bob Lail, released under the MIT license