Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

138 lines (91 sloc) 6.487 kb

v0.4.1 2012-05-08

  • [updated] Bump backports dep to ~> 2.5.3 (solnic)

Compare v0.4.1..v0.4.2

v0.4.1 2012-05-06

  • [changed] backports gem is now a runtime dependency (solnic)
  • [BREAKING CHANGE] Renamed Virtus::DefaultValue#evaluate => Virtus::DefaultValue#call (solnic)
  • [BREAKING CHANGE] Renamed Virtus::ValueObject::Equalizer to Virtus::Equalizer (dkubb)

Compare v0.4.0..v0.4.1

v0.4.0 2012-03-22

  • [improvement] Add a caching mechanism for type lookups (solnic)
  • [fixed] Fix attributes mass-assignment when nil is passed (fgrehm)
  • [changed] Replace usage of #to_hash with Hash.try_convert (dkubb)

Compare v0.3.0..v0.4.0

v0.3.0 2012-02-25

  • [feature] Support for default values from a symbol (which can be a method name) (solnic)
  • [feature] Support for mass-assignment via custom setters not generated with attribute (fgrehm)
  • [feature] Virtus::Coercion::String.to_constant handles namespaced names (dkubb)
  • [feature] New coercion: Virtus::Coercion::Object.to_array (dkubb)
  • [feature] New coercion: Virtus::Coercion::Object.to_hash (dkubb)
  • [feature] New coercion: Virtus::Coercion::Object.to_string (dkubb)
  • [feature] New coercion: Virtus::Coercion::Object.to_integer (dkubb)
  • [changed] EmbeddedValue relies on @primitive setting rather than @model (mbj)
  • [BREAKING CHANGE] Removed Attribute#writer_visibility in favor of Attribute#public_writer? (solnic)
  • [BREAKING CHANGE] Removed Attribute#reader_visibility in favor of Attribute#public_reader? (solnic)
  • [BREAKING CHANGE] Removed Attribute#instance_variable_name - this is a private ivar (solnic)
  • [BREAKING CHANGE] Removed Equalizer#host_name and Equalizer#keys (solnic)

Compare v0.2.0..v0.3.0

v0.2.0 2012-02-08

  • [feature] Support for Value Objects (emmanuel)
  • [feature] New Symbol attribute (solnic)
  • [feature] Time => Integer coercion (solnic)

Compare v0.1.0..v0.2.0

v0.1.0 2012-02-05

  • [feature] New EmbeddedValue attribute (solnic)
  • [feature] Array and Set attributes support member coercions (emmanuel)
  • [feature] Support for scientific notation handling in string => integer coercion (dkubb)
  • [feature] Handling of string => numeric coercion with a leading + sign (dkubb)
  • [changed] Update Boolean coercion to handle "on", "off", "y", "n", "yes", "no" (dkubb)

Compare v0.0.10..v0.1.0

v0.0.10 2011-11-21

  • [fixed] Default values are now duped on evaluate (rclosner)
  • [fixed] Allow to override attribute mutator methods (senny)

Compare v0.0.9..v0.0.10

v0.0.9 2011-10-11

  • [fixed] Fix in type lookup for anonymous classes (dkubb)

Compare v0.0.8..v0.0.9

v0.0.8 2011-08-25

  • [fixed] Fixed conflict with ActiveModel (RichGuk)
  • [changed] Renamed Coercion::String.to_class => Coercion::String.to_constant (emmanuel)

Compare v0.0.7..v0.0.8

v0.0.7 2011-07-31

  • [BREAKING CHANGE] Attribute.primitive? has been removed (solnic)
  • [fixed] Added missing coercion_method setting to Virtus::Attribute::Object (solnic)
  • [general] Default value logic has been extracted into Attribute::DefaultValue class (solnic)
  • [added] Virtus::Attribute::Class (solnic)

Compare v0.0.6..v0.0.7

v0.0.6 2011-07-30

  • [BREAKING CHANGE] Moved Virtus.determine_type to a shared module Virtus::TypeLookup (dkubb)
  • [BREAKING CHANGE] Attribute#typecast_to_primitive has been replaced by Attribute#coerce (solnic)
  • [BREAKING CHANGE] Attribute#typecast logic was moved to Attribute#set which is now a public method (solnic)
  • [feature] Added support for default values (solnic)
  • [general] Added custom inspect for Attribute classes (solnic)
  • [general] Added backports as a development dependency (dkubb)
  • [changed] Options API has been extracted from Attribute to a support module Virtus::Options (solnic)
  • [changed] Typecast classes have been replaced by a new hierarchy of Coercion classes like Coercion::String, Coercion::Integer etc. (solnic)
  • [changed] Attribute#get, #get!, #set, #set! & #coerce are now part of the public API (solnic)

Compare v0.0.5..v0.0.6

v0.0.5 2011-07-10

  • [bugfix] Fixed DescendantsTracker + ActiveSupport collision (dkubb)

Compare v0.0.4..v0.0.5

v0.0.4 2011-07-08

  • [BREAKING CHANGE] attributes hash has been replaced by a specialized class AttributeSet (dkubb)
  • [BREAKING CHANGE] Virtus::ClassMethods.attribute returns self instead of a created attribute (solnic)
  • [changed] descendants tracking has been extracted into DescendantsTracker module (dkubb)
  • [changed] Instance #primitive? method has been replaced by class utility method Virtus::Attribute.primitive? (solnic)
  • [changed] Virtus::Attribute::String#typecast_to_primitive delegates to Virtus::Typecast::String.call (solnic)

Compare v0.0.3..v0.0.4

v0.0.3 2011-06-09

  • [BREAKING CHANGE] Attribute classes were moved to Virtus::Attribute namespace (solnic)
  • [BREAKING CHANGE] Attribute instance no longer holds the reference to a model (solnic)
  • [BREAKING CHANGE] #typecast no longer receives an instance of a model (override #set which calls #typecast if you need that) (solnic)
  • [changed] Adding reader/writer methods was moved from the attribute constructor to Virtus::ClassMethods.attribute (solnic)
  • [changed] Typecast logic has been moved into separate classes (see Virtus::Typecast) (solnic)
  • [added] Virtus::Attribute::DateTime#typecast supports objects which implement #to_datetime (solnic)
  • [general] Internals have been cleaned up, simplified and properly documented (solnic)

Compare v0.0.2..v0.0.3

v0.0.2 2011-06-06

  • [bugfix] Fixed #typecast in custom attribute classes (solnic)

Compare v0.0.1..v0.0.2

v0.0.1 2011-06-04

First public release :)

Jump to Line
Something went wrong with that request. Please try again.