README.md in lotus-validations-0.3.2 vs README.md in lotus-validations-0.3.3

- old
+ new

@@ -20,11 +20,11 @@ * Support: http://stackoverflow.com/questions/tagged/lotus-ruby * Chat: https://gitter.im/lotus/chat ## Rubies -__Lotus::Validations__ supports Ruby (MRI) 2+, JRuby 1.7 (with 2.0 mode) and Rubinius 2.3.0+. +__Lotus::Validations__ supports Ruby (MRI) 2+, JRuby 9k+ & Rubinius 2.3+ ## Installation Add this line to your application's Gemfile: @@ -172,11 +172,11 @@ **Validations are triggered when you invoke `#valid?`.** #### Acceptance -An attribute is valid if it's value satisfies [Ruby's _truthiness_](http://ruby.about.com/od/control/a/Boolean-Expressions.htm). +An attribute is valid if its value is _truthy_. ```ruby require 'lotus/validations' class Signup @@ -186,17 +186,23 @@ end signup = Signup.new(terms_of_service: '1') signup.valid? # => true +signup = Signup.new(terms_of_service: 'true') +signup.valid? # => true + signup = Signup.new(terms_of_service: '') signup.valid? # => false + +signup = Signup.new(terms_of_service: '0') +signup.valid? # => false ``` #### Confirmation -An attribute is valid if it's value and the value of a corresponding attribute +An attribute is valid if its value and the value of a corresponding attribute is valid. By convention, if you have a `password` attribute, the validation looks for `password_confirmation`. ```ruby @@ -330,10 +336,10 @@ signup.valid? # => false ``` #### Size -An attribute is valid if it's `#size` falls within the described value. +An attribute is valid if its `#size` falls within the described value. ```ruby require 'lotus/validations' class Signup