0.01
No commit activity in last 3 years
No release in over 3 years
Simplifies dry-data usage with Rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 0.5.4
~> 10.0
~> 3.4.0

Runtime

 Project Readme

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