Permalink
Commits on Jan 24, 2013
  1. Update README.rdoc

    Markus Schirp committed Jan 24, 2013
Commits on Apr 10, 2012
  1. Merge pull request #5 from zirni/fix_typos

    fix misspelled include
    Markus Schirp committed Apr 10, 2012
  2. fix misspelled include

    zirni committed Apr 10, 2012
Commits on Mar 13, 2012
  1. Add a fix for minitest mocks mock away #equal?

    Markus Schirp committed Mar 13, 2012
Commits on Mar 11, 2012
  1. Spec nil attribute value in numericalness macro

    Markus Schirp committed Mar 11, 2012
Commits on Mar 9, 2012
  1. Remove 1.9 syntax for 1.8 compat

    * Adds spec and spec/integration to LOAD_PATH for
      simplified requires when specing. no '../../../' hazard is needed.
    
    * Uses value.to_s instead of value.to_str on 1.8 to determine string
      length. #to_str is not defined for nil.
    
    * Require backports on ruby-1.8 for Enumerable#each_with_object
    Markus Schirp committed Mar 9, 2012
  2. Make sure I get mails for state changes emmanuel pushes

    Markus Schirp committed Mar 9, 2012
  3. Remove dependency in dm-core

    Markus Schirp committed Mar 9, 2012
  4. Remove jeweler and use hand crafted gemfile

    Markus Schirp committed Mar 9, 2012
  5. Merge branch 'master' of github.com:emmanuel/aequitas

    Markus Schirp committed Mar 9, 2012
  6. Use 1.8 syntax for hash literal in Gemfile

    Markus Schirp committed Mar 9, 2012
  7. Merge pull request #4 from mbj/master

    Fix minor problems.
    Markus Schirp committed Mar 9, 2012
Commits on Feb 15, 2012
  1. Fix minor problems

      * Add Rational to numericallness validator
      * Make sure options are not truncated for PrimitiveType::Virtus
      * Use object.class.name instead of object.model.name for default
        MessageTransformer
      * Add an explict virtus development dependency.
    
      It breaks no specs. So no specs are changed. Virtus primitive
      validator clearly needs more specs.
    Markus Schirp committed Feb 15, 2012
Commits on Jan 28, 2012
  1. Eliminate Aequitas::Context.

    Context was a holdover from DM. Its purpose is to allow related instances to attempt validation in the same context as the root instance is validated when validating through a graph of objects.
    
    This global was used because DM did not explicitly pass the root object's validation context to related instances as they were validated (in DM the save (& therefore #valid?) call cascades via #save_parents & #save_children).
    
    Since Aequitas has no concept of validating a graph of objects (at this point), this feature is not needed. If, at some point in the future, Aequitas needs to be able to validate a graph of objects, we can devise a better implementation at that time.
    committed Jan 28, 2012
  2. Add spec coverage for class inheritance propagating rules.

    This occurs at inheritance time, so descendants do not automatically receive rules declared in ancestors after inheritance occurs.
    
    Related to #2 and #3.
    committed Jan 28, 2012
  3. Update some Rule specs to get closer to Veritas spec style.

    In other words: specify one method per spec file.
    committed Jan 28, 2012
  4. Make a couple of methods private in ContextualRuleSet.

    Specifically: #define_context and #add_rules_to_context.
    committed Jan 28, 2012
Commits on Jan 27, 2012
  1. Remove resource arg from signatures of Rule methods.

    Specifically: #violation_info, #violation_values, and #violation_data.
    committed Jan 22, 2012
  2. Replace Rule#valid?(resource) with #valid_value?(value).

    Very few Rule subclasses need access to the resource itself, and those few that do (Rule::Block, Rule::Confirmation, Rule::Method) can override #validate to gain access to it.
    
    Renamed Rule::Length#valid_length? -> #expected_length?, Rule::PrimitiveType#primitive? -> #expected_type?, and Rule::Value#valid_value? -> #expected_value?.
    
    Replaced Rule::Format#valid? with #expected_format?
    committed Jan 22, 2012
  3. Simplify Violation by breaking into subclasses.

    Introduced Violation::Rule and Violation::Message subclasses which are used where appropriate.
    committed Jan 22, 2012
  4. Merge pull request #3 from azimux/master

    fixed a tiny typo in ContextualRuleSet#concat
    committed Jan 27, 2012
Commits on Jan 26, 2012