Dry::Types::Rails Build Status

Really simple gem that will help you work with the dry-types gem in development.

Current status: EXPERIMENTAL

This gem currently "works for me", but as of right now I'm sure there are a number of edge cases that haven't been hit yet. As those occur, please report them so I can add specs to test them.

Raison d'ĂȘtre

Rails reloads code quite often in development, this broke the usage of Dry::Types since it would register the same types multiple times and raise exceptions.

Installation

Add this line to your application's Gemfile:

gem 'dry-types-rails', group: :development

Note that it should only be included in your development environment.

Usage

Nothing to do, this is using Rails::Railtie, which means it gets loaded automatically.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jeromegn/dry-types-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Thanks

  • @AMHOL
  • @jeromegn
  • @pnomolos