New Virtus Release With Truly Awesome Features

Just a quick announcement that I just pushed a new version of Virtus with support for long awaited features: EmbeddedValue, member type coercions for array/set attributes and ValueObject. Current version is 0.2.0, please give it a try and tell me what you think.

Here’s a quick sneak-preview of what you can do with Virtus:

I hope you’re going to enjoy it and find it useful in your projects. In case of any issues please report them on Github.

Huge props go to Dan Kubb, Emmanuel Gomez and Yves Senn for helping me with recent releases! Thanks guys!

  • Drhenner

    If this has a to_json method I see some really cool applications

    • http://solnic.eu/ solnic

      Nope…it doesn’t have it and it won’t have it. Maybe it would be easy to make it work with, for example, active_model_serializers. Here’s a related discussion that explains the decision: https://github.com/solnic/virtus/issues/38

      • Peter Jaros

        Clicking “like” here because there’s no way to “like” a GitHub issue resolution.  :)

        • http://solnic.eu/ solnic

          haha i’m actually surprised github doesn’t have “like” feature :)

  • diego

    are you planning to implement the mutual registration pattern for bidireccional associations?

     

    • http://solnic.eu/ solnic

      At the moment there’s no concept of associations at all. We are planning to implement associations later though. If we decide to do that then probably it will support this type of “registration”.

  • http://profiles.google.com/qertoip Piotr Włodarek

    This is great. Finally the white magic known from models came to PORO.

    BTW, have you seen ActiveAttr? https://github.com/cgriego/active_attr This project seems to share Virtus goals.

    • http://solnic.eu/ solnic

      ActiveAttr is a much bigger library – the only shared goal is attributes and typecasting.