Project

detox

0.0
No commit activity in last 3 years
No release in over 3 years
Detox is collection of validators for AciveModel and AcitveRecord.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

>= 3.2.0
 Project Readme

Detox

Build Status Coverage Status Code Climate

Detox is validator set that can apply to ActiveModel/ActiveRecord

Installation

Add this line to your application's Gemfile:

gem 'detox'

And then execute:

$ bundle

Or install it yourself as:

$ gem install detox

Usage

Look spec/test_class for sample usage

  • Validators for attribute that has Array or Hash value
    • ordering: validates continuous numbers
    • possession: validates subset values
    • values_uniqueness: validates unique values
    • all_xxx: validates that all value are valid, by basic validators (xxx is presence, format etc.)
    • any_xxx: validates that has valid value, by basic validators (xxx is presence, format etc.)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Changelog

  • v1.0.0 (2013-11-07 JST): First release
  • v1.0.1 (2013-11-13 JST): Add ValuesUniquenessValidator
  • v1.1.0 (2013-11-15 JST): Versioning rule changed