All Versions
28
Latest Version
Avg Release Cycle
59 days
Latest Release
3662 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v1.0.5 Changes
March 18, 2015- π§ [feature] Support for :nullify_blank option when configuring a virtus module (lucasmazza)
-
v1.0.4 Changes
January 03, 2015- π§ [feature] Support for :required option when configuring a virtus module (solnic)
-
v1.0.3 Changes
July 24, 2014- π» [improvement] Expose attribute name in the exception when in strict mode (ntl)
- [improvement] Set #to_h as an alias to #to_hash (fnando)
- π [fixed] Fix handling of nil in collection coercion (edgibbs)
- π [fixed] Fix issues with using multiple virtus modules (trptcolin)
- π [fixed] Fix handling of Range type (hampei)
- π [fixed] Fix strict mode for collection and hash types (solnic)
-
v1.0.2 Changes
March 12, 2014- 0οΈβ£ [improvement] Donβt override already-defined default values when freezing (amarshall)
- π [improvement] Improved performance of
AttributeSet#each
(Antti) - β‘οΈ updated axiom-types dependency to ~> 0.1 (solnic)
-
v1.0.1 Changes
December 10, 2013- π [feature] re-introduce
ValueObject#with
, which was removed in the past (senny) - π [fixed] strict mode for Boolean type (solnic)
- π [feature] re-introduce
-
v1.0.0 Changes
October 16, 2013π This release no longer works with Ruby 1.8.7.
- [BREAKING CHANGE] Integrated with axiom-types, most of the attribute sub-classes are gone (solnic)
- π§ [feature] Configurable coercion via coercible integration (solnic)
- [feature] Strict mode for coercions via
:strict
option (solnic) - 0οΈβ£ [feature] Lazy-loaded default values via
:lazy
option (solnic) - π [feature] Finalizing models solving circular-dependency issue (see #81) (solnic)
- [feature] Ability to cherry-pick which extension should be included (solnic)
- [feature] Ability to inject a custom coercer object via
:coercer
option (solnic) - π [feature] Extension module builder with pre-defined configuration for attributes (elskwid & solnic)
- π [feature]
Virtus::Attribute
exposes a public API - you can easily build, rename and clone attribute instances and use their coercion power (solnic) - 0οΈβ£ [feature] Ability to reset attributes to their default values (pewniak747)
- [changed] A meaningful error will be raised if a reserved name is used as an attribute name (solnic)
- 0οΈβ£ [changed] Default value can be set via private and protected methods now (solnic)
- [changed] New syntax for value objects (solnic)
- 0οΈβ£ [changed] Default values are now set in the constructor for non-lazy attributes (solnic)
- π§ [deprecated]
Virtus::Attribute.coerce
in favor ofVirtus.coerce
or a customized configured module (solnic) - π [deprecated]
include Virtus
in favor ofinclude Virtus.model
(for classes) orVirtus.module
(for modules) (solnic) - π [deprecated]
include Virtus::ValueObject
in favor ofinclude Virtus.value_object
(solnic) - π [deprecated]
Virtus#attributes
in favor ofVirtus#attribute_set
(solnic) - π [fixed] const missing hook now works correctly in modules too (cored)
- π [fixed] value object with Hash type works correctly (solnic)
- π [fixed] issues with value-object subclasses and
#==
method (solnic)
-
v1.0.0.beta0
June 04, 2013 -
v0.5.4 Changes
December 20, 2012- [feature] Allow any enumerable to be a collection attribute (aptinio)
- [feature] Add Integer.to_datetime and Float.to_datetime coercion (brutuscat)
- π [fixed] Fixed a regression with Hash attribute introduced by key/member coercion (shingara)
- π [fixed] Change leading non-significant digit type coercion to be coerced (maskact)
-
v0.5.3 Changes
December 13, 2012- [feature] Added Hash member type coercion example (greyblake)
- π [fixed] Fixed issues with String=>Integer coercion and e-notation (greyblake)
- [changed] Replaced internal DescendantsTracker with the extracted gem (solnic)
- β [internal] Switched to rspec 2 and mutant for mutation testing (mbj)
-
v0.5.2 Changes
September 01, 2012- 0οΈβ£ [feature] Object is now the default attribute type (dkubb)
- π [fixed] Fix module inclusion problems (dkubb)
- 0οΈβ£ [fixed] Evaluate default values when freezing an object (mbj)
- π [fixed] String representation of a big integer is now properly coerced to an integer (greyblake)
- [changed] AttributeSet is now a module responsible for defining attribute methods (emmanuel)