README.md in tiny_sweeper-0.0.1 vs README.md in tiny_sweeper-0.0.2

- old
+ new

@@ -3,11 +3,11 @@ TinySweeper keeps your objects tidy! It's a handy way to clean attributes on your Rails models, though it's independent of Rails, and can be used in any Ruby project. It gives you a light-weigt way to override your methods and declare how their inputs should be cleaned. [![Build Status](https://travis-ci.org/ContinuityControl/tiny_sweeper.png?branch=master)](https://travis-ci.org/ContinuityControl/tiny_sweeper) -[![Code Climate](https://codeclimate.com/github/ContinuityControl/tiny_sweeper.png)](https://codeclimate.com/github/ContinuityControl/tiny_sweeper) +[![Code Climate](https://codeclimate.com/github/ContinuityControl/tiny_sweeper/badges/gpa.svg)](https://codeclimate.com/github/ContinuityControl/tiny_sweeper) ## How Do I Use It? ```ruby class Sundae @@ -61,9 +61,13 @@ sweep :topping, :strip # ...would be the same as this: sweep :topping { |t| t.strip } end ``` + +#### Other Ways to Sweep + +Rails models are clearly the natural use-case for this. So it would make sense to have an easy way to auto-clean up models in a table. We'll see. ## How Does It Work? You include the `TinySweeper` module in your class, and define some sweep-up rules on your class' attributes. It overrides your method, and defines a new method that cleans its input according to the sweep-up rule, and then calls the original method with the clean value.