Skip to content

virtus から別の gem に移植する #108

@kazuemon

Description

@kazuemon

Details

solnic/virtus が discontinued になっているとともに、Ruby 3.5 から default gems ではなくなる ostruct への依存があるため、別のライブラリへの変更を検討したい。

ostruct.rb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.

Notes

README に後継ライブラリが記載されている様子ですが、どういうものなのかは未確認です。

Working on virtus taught me a lot about handling data in Ruby, which involves coercions, type safety and validation (amongst other things). Even though the project has been successful, and serving well for many people, I decided to build something better. As a result, dry-types, dry-struct and dry-schema were born. These projects should be considered as virtus' successors, with better separation of concerns and better features. If you're interested in a modern take on same problems that virtus tried to solve, please check out these projects!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions