dry-types 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -10
- data/CHANGELOG.md +25 -1
- data/Gemfile +1 -3
- data/README.md +1 -1
- data/Rakefile +11 -2
- data/benchmarks/hash_schemas.rb +51 -0
- data/dry-types.gemspec +4 -3
- data/lib/dry/types.rb +10 -5
- data/lib/dry/types/array/member.rb +4 -0
- data/lib/dry/types/builder.rb +6 -7
- data/lib/dry/types/coercions.rb +6 -1
- data/lib/dry/types/coercions/form.rb +4 -4
- data/lib/dry/types/constrained.rb +10 -5
- data/lib/dry/types/constraints.rb +2 -1
- data/lib/dry/types/core.rb +3 -13
- data/lib/dry/types/decorator.rb +2 -2
- data/lib/dry/types/definition.rb +1 -1
- data/lib/dry/types/errors.rb +15 -22
- data/lib/dry/types/extensions.rb +3 -0
- data/lib/dry/types/extensions/maybe.rb +64 -0
- data/lib/dry/types/hash.rb +14 -0
- data/lib/dry/types/hash/schema.rb +95 -40
- data/lib/dry/types/options.rb +0 -2
- data/lib/dry/types/result.rb +26 -3
- data/lib/dry/types/safe.rb +7 -1
- data/lib/dry/types/sum.rb +9 -1
- data/lib/dry/types/version.rb +1 -1
- data/lib/spec/dry/types.rb +56 -0
- metadata +38 -42
- data/benchmarks/basic.rb +0 -57
- data/benchmarks/constrained.rb +0 -37
- data/lib/dry/types/hashify.rb +0 -12
- data/lib/dry/types/maybe.rb +0 -34
- data/lib/dry/types/struct.rb +0 -25
- data/lib/dry/types/struct/class_interface.rb +0 -107
- data/lib/dry/types/value.rb +0 -13