-
Notifications
You must be signed in to change notification settings - Fork 21
Description
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!