dry-schema 1.14.0
“dry-schema provides a DSL for defining schemas with keys and rules that should be applied to values. It supports coercion, input sanitizati…”
Basename is uppercase README.mdContains an unbounded block loop
SHA-256ec40615e122040597cbb2f286b237f59a8f1f558e0071250788a53c125f742a9
Evidence
1<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
3## 1.14.0 2025-01-06
4
5
6### Added
7
8- Better support for sets in `excluded_from?` and `included_in?` predicates (via #480) (@flash-gordon)
9
10### Fixed
11
12- Fix info extension for maybe …
1<!--- this file is synced from dry-rb/template-gem project -->
2[gem]: https://rubygems.org/gems/dry-schema
3[actions]: https://github.com/dry-rb/dry-schema/actions
4
5# dry-schema [][gem] [][actions]
⋯7 lines
13## Supported Ruby versions
14
15This library officially supports the following Ruby versions:
16
17* MRI `>= 3.1`
⋯5 lines
1# frozen_string_literal: true
2
3# this file is synced from dry-rb/template-gem project
4
5lib = File.expand_path("lib", __dir__)
6$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7require "dry/schema/version"
8
9Gem::Specification.new do |spec|
10 spec.name = "dry-schema"
11 spec.authors = ["Piotr Solnica"]
12 spec.email = ["piotr.solnica@gmail.com"]
13 spec.license = "MIT"
14 spec.version = Dry::Schema::VERSION.dup
15
16 spec.summary = "Coercion and validation for data structures"
17 spec.description = <<~TEXT
18 dry-schema provides a DSL for defining schemas with keys and rules that should be applied to
19 values. It supports coercion, input sanitization, custom types and localized error messages
20 (with or without I18n gem). It's also used as the schema engine in dry-validation.
21
22 TEXT
23 spec.homepage = "https://dry-rb.org/gems/dry-schema"
24 spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-schema.gemspec",
25 "lib/**/*", "config/*.yml"]
26 spec.bindir = "bin"
27 spec.executables = []
28 spec.require_paths = ["lib"]
29
30 spec.metadata["allowed_push_host"] = "https://rubygems.org"
31 spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-schema/blob/main/CHANGELOG.md"
32 spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-schema"
33 spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-schema/issues"
34 spec.metadata["rubygems_mfa_required"] = "true"
35
36 spec.required_ruby_version = ">= 3.1"
37
38 # to update dependencies edit project.yml
39 spec.add_dependency "concurrent-ruby", "~> 1.0"
40 spec.add_dependency "dry-configurable", "~> 1.0", ">= 1.0.1"
⋯6 lines
68:22… e
69 def to_hash
70 result = {}
71 result[:$schema] = "http://json-schema.org/draft-06/schema#" if root?
72 result.merge!(type: "object", properties: keys, required: required.to_a)
73 result
74 end
75
76 alias_method :to_h, :to_hash
77
78 # @api private
⋯6 lines
84:18… (node, opts = EMPTY_HASH)
85 meth, rest = node
86 public_send(:"visit_#{meth}", rest, opts)
87 end
88
89 # @api private
90 def visit_set(node, opts = EMPTY_HASH)
91 targ …
No evidence locations were recorded for this file. Raw result