Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: ruby3.4-rubygem-dry-types | Distribution: openSUSE Tumbleweed |
Version: 1.7.1 | Vendor: openSUSE |
Release: 1.7 | Build date: Thu Nov 2 16:45:51 2023 |
Group: Unspecified | Build host: reproducible |
Size: 229341 | Source RPM: rubygem-dry-types-1.7.1-1.7.src.rpm |
Packager: http://bugs.opensuse.org | |
Url: https://dry-rb.org/gems/dry-types | |
Summary: Type system for Ruby supporting coercions, constraints and complex |
Type system for Ruby supporting coercions, constraints and complex types like structs, value objects, enums etc.
MIT
* Thu Nov 02 2023 Dan Čermák <dan.cermak@posteo.net> - ## 1.7.1 2023-02-17 [#]## Fixed - Warning from jruby about overwritten keyword (@flash-gordon + @klobuczek in #454) [Compare v1.7.0...v1.7.1](https://github.com/dry-rb/dry-types/compare/v1.7.0...v1.7.1) * Wed Dec 07 2022 Stephan Kulow <coolo@suse.com> updated to version 1.7.0 see installed CHANGELOG.md [#]# 1.7.0 2022-11-04 [#]## Changed - This version is compatible with recently released dry-rb dependencies (@flash-gordon) - Updated to dry-core 1.0 (@flash-gordon + @solnic) - Dependency on dry-container was dropped (@flash-gordon) [Compare v1.6.1...v1.7.0](https://github.com/dry-rb/dry-types/compare/v1.6.1...v1.7.0) * Fri Oct 28 2022 Stephan Kulow <coolo@suse.com> updated to version 1.6.1 see installed CHANGELOG.md [#]# 1.6.1 2022-10-15 [#]## Changed - Fix issues with internal const_missing and Inflector/Module constants (@flash-gordon + @solnic) [Compare v1.6.0...v1.6.1](https://github.com/dry-rb/dry-types/compare/v1.6.0...v1.6.1) [#]# 1.6.0 2022-10-15 [#]## Changed - Optimize `PredicateRegistry` for Ruby 2.7+ (see #420 for more details) (@casperisfine) - Use zeitwerk for auto-loading (@flash-gordon) [Compare v1.5.1...v1.6.0](https://github.com/dry-rb/dry-types/compare/v1.5.1...v1.6.0) * Thu Jun 24 2021 Stephan Kulow <coolo@suse.com> updated to version 1.5.1 see installed CHANGELOG.md <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS ---> [#]# 1.5.1 2021-02-16 [#]## Fixed - Add missing requires for internal usage of `Dry::Equalizer` (@timriley in #418) [Compare v1.5.0...v1.5.1](https://github.com/dry-rb/dry-types/compare/v1.5.0...v1.5.1) [#]# 1.5.0 2021-01-21 [#]## Added - Wrapping constructor types :tada: (@flash-gordon) Constructor blocks can have a second argument. The second argument is the underlying type itself: ```ruby age_from_year = Dry::Types['coercible.integer'].constructor do |input, type| Date.today.year - type.(input) end age_from_year.('2000') # => 21 ``` With wrapping constructors you have control over "type application". You can even run it more than once: ```ruby inc = Dry::Types['integer'].constructor(&:succ) inc2x = inc.constructor { _2.(_2.(_2.(_1))) } inc2x.(10) # => 13 ``` - Fallbacks :tada: (@flash-gordon) ```ruby age = Dry::Types['coercible.ineger'].fallback(18) age.('10') # => 10 age.('20') # => 20 age.('abc') # => 18 ``` Fallbacks are different from default values: the later will be evaluated only when *no input* provided. Under the hood, `.fallback` creates a wrapping constructor. - `params.string` as an alias for `strict.string`. This addition should be non-breaking (@flash-gordon) - API for defining custom type builders similar to `.default`, `.constructor`, or `.optional` (@flash-gordon) ```ruby [#] Making an alias for `.fallback` Dry::Types.define_builder(:or) { |type, v| type.fallback(v) } [#] Using new builder type = Dry::Types['integer'].or(-273) type.(:invalid) # => -273 ``` [#]## Changed - Inferring predicates from class names is deprecated. It's very unlikely your code depends on it, however, if it does, you'll get an exception with instructions. (@flash-gordon) If you don't rely on inferring, just disable it with: ```ruby Dry::Types::PredicateInferrer::Compiler.infer_predicate_by_class_name false ``` Otherwise, enable it explicitly: ```ruby Dry::Types::PredicateInferrer::Compiler.infer_predicate_by_class_name true ``` [Compare v1.4.0...v1.5.0](https://github.com/dry-rb/dry-types/compare/v1.4.0...v1.5.0) * Mon Mar 23 2020 Stephan Kulow <coolo@suse.com> - initial package (version 1.4.0)
/usr/lib/ruby/gems/3.4.0/build_info /usr/lib/ruby/gems/3.4.0/cache/dry-types-1.7.1.gem /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1 /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/CHANGELOG.md /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/LICENSE /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/README.md /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/dry-types.gemspec /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry-types.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/any.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/array /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/array.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/array/constructor.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/array/member.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/builder.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/builder_methods.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/coercions /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/coercions.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/coercions/json.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/coercions/params.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/compat.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/compiler.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/composition.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constrained /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constrained.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constrained/coercible.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constraints.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constructor /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constructor.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constructor/function.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/constructor/wrapper.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/container.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/core.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/decorator.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/default.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/enum.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/errors.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/extensions /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/extensions.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/extensions/maybe.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/extensions/monads.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/fn_container.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/hash /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/hash.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/hash/constructor.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/implication.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/inflector.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/intersection.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/json.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/lax.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/map.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/meta.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/module.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/nominal.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/options.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/params.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/predicate_inferrer.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/predicate_registry.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/primitive_inferrer.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/printable.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/printer /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/printer.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/printer/composition.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/result.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/schema /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/schema.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/schema/key.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/spec /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/spec/types.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/sum.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/type.rb /usr/lib/ruby/gems/3.4.0/gems/dry-types-1.7.1/lib/dry/types/version.rb /usr/lib/ruby/gems/3.4.0/specifications/dry-types-1.7.1.gemspec /usr/share/doc/packages/ruby3.4-rubygem-dry-types /usr/share/doc/packages/ruby3.4-rubygem-dry-types/CHANGELOG.md /usr/share/doc/packages/ruby3.4-rubygem-dry-types/LICENSE /usr/share/doc/packages/ruby3.4-rubygem-dry-types/README.md
Generated by rpm2html 1.8.1
Fabrice Bellet, Sun Jan 12 02:11:34 2025