From 97e469dad2b674a5fb2bdf7e780f0298af57911a Mon Sep 17 00:00:00 2001 From: Ryan Sonnek Date: Thu, 25 Jun 2009 10:23:37 -0500 Subject: [PATCH] add docs --- README.rdoc | 18 +++++++++++++++++- VERSION | 1 - VERSION.yml | 4 ++++ 3 files changed, 21 insertions(+), 2 deletions(-) delete mode 100644 VERSION create mode 100644 VERSION.yml diff --git a/README.rdoc b/README.rdoc index 44d3eea..a06e4b4 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,6 +1,22 @@ = acts_as_stripped -Description goes here. +Simple utility to strip whitespace from string attributes. + += Installation + +sudo gem install wireframe-acts_as_stripped + += Usage + +# strip whitespace from *all* string attributes +class User < ActiveRecord::Base + acts_as_stripped +end + +# strip whitespace from *select* string attributes +class Post < ActiveRecord::Base + acts_as_stripped :title, :summary +end == Copyright diff --git a/VERSION b/VERSION deleted file mode 100644 index 77d6f4c..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.0.0 diff --git a/VERSION.yml b/VERSION.yml new file mode 100644 index 0000000..25e00a3 --- /dev/null +++ b/VERSION.yml @@ -0,0 +1,4 @@ +--- +:major: 0 +:minor: 1 +:patch: 1