README.md in brid-0.2.0 vs README.md in brid-0.2.1

- old
+ new

@@ -15,10 +15,16 @@ Or install it yourself as: $ gem install brid +Or if you want use Rails3 validations on ActiveModel, add this to your application's Gemfile: + +``` +gem 'brid-rails' +``` + ## Components * CPF object with validation (brazilian document) * CNPJ object with validation (brazilian document) * Título de Eleitor object with validation (brazilian document) @@ -41,13 +47,13 @@ ``` ### Validating a CNPJ ``` ruby -CNPJ.new('18.781.203/0001-28').valid? # true -(Mod11.new('8.781.203/0001', :base => 2..9) * 2).to_s == '8781203000128' # true -'8.781.203/0001'.mod11(2, :base => 2..9) == '8781203000128' # true +CNPJ.new('18.781.203/0001-28').valid? # true +(Mod11.new('18.781.203/0001', :base => 2..9) * 2).to_s == '18781203000128' # true +'18.781.203/0001'.mod11(2, :base => 2..9) == '18781203000128' # true ``` ### Validating a Bank Account @@ -67,10 +73,9 @@ ``` ## Next Steps -* Develop a rails plugin built on top of ActiveRecord * Develop a smart generator for fixture on tests (I thought of doing built on top of ffaker, like my othre gem: [ffaker-cpfcnpj](https://github.com/halan/ffaker-cpfcnpj) ) ## Contributing 1. Fork it