Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 24, 2012
  1. Support DataMapper :required option.

    Tim Jarratt authored
    This allows you to have attributes that might be present, but might be
    nil, an empty string, or some other value that won't cast to its native
Commits on Apr 5, 2012
  1. @dkubb

    Update flay threshold

    dkubb authored
  2. @dkubb
  3. @dkubb
  4. @dkubb

    Rename Virtus::ValueObject::Equalizer to Virtus::Equalizer

    dkubb authored
    * Move require statements in lib files into virtus.rb in the root lib directory
  5. @dkubb

    Refactor Virtus::ValueObject::Equalizer

    dkubb authored
    * Change string class_eval for declaring the methods to a normal define_method.
      Even though this boosts some of the metrics thresholds, I felt it was
      necessary to avoid "hiding" the complexity inside a string and evaling it.
    * Move #eql? and #== into a plain module, and just define a #cmp? method that
      they can both share. We use a similar approach in DM.
    * Change constructor so that it dupes and freezes the String and Array passed
      in to avoid mutating the objects in the caller's scope.
    * Change #<< to return self on it's own rather than relying on a private method
      just happening to return self, even though taken in isolation the method
      has no reason to do this.
    * Remove recompilation from every assigment to @keys.
  6. @dkubb

    Fix whitespace

    dkubb authored
Commits on Apr 2, 2012
  1. @solnic
  2. @dkubb
  3. @dkubb
  4. @dkubb
  5. @dkubb

    Fix whitespace

    dkubb authored
  6. @solnic

    Fix DefaultValue docs

    solnic authored
  7. @solnic

    Simplify DefaultValue.handle?

    solnic authored
  8. @solnic
  9. @solnic
  10. @solnic

    Fix whitespaces

    solnic authored
  11. @solnic

    Fix Numeric.to_string spec

    solnic authored
  12. @dkubb
  13. @dkubb

    Refactor Virtus::ValueObject::ClassMethods#attribute specs

    dkubb authored
    * Include matcher for equalizer setuop
    * Clean up specs to match conventions elsewhere
  14. @dkubb
  15. @dkubb
  16. @dkubb
  17. @dkubb
  18. @dkubb
  19. @dkubb
  20. @dkubb
  21. @dkubb
  22. @dkubb
  23. @dkubb
  24. @dkubb
  25. @dkubb

    Fix whitespace

    dkubb authored
  26. @dkubb
  27. @dkubb

    Add stub spec files

    dkubb authored
Commits on Mar 31, 2012
  1. @solnic

    Bump backports to 2.5.1

    solnic authored
Something went wrong with that request. Please try again.