master => main

This commit is contained in:
Peter Solnica 2022-04-03 11:48:52 +02:00
parent 83aaafd031
commit 40f6d0fe49
No known key found for this signature in database
GPG Key ID: 4B177344822BD3BB
5 changed files with 13 additions and 13 deletions

View File

@ -32,7 +32,7 @@
- <%= log %>
<% end %>
<% end %>
<% curr_ver = r.date ? "v#{r.version}" : 'master' %>
<% curr_ver = r.date ? "v#{r.version}" : 'main' %>
<% prev_rel = releases[idx + 1] %>
<% if prev_rel %>
<% ver_range = "v#{prev_rel.version}...#{curr_ver}" %>

View File

@ -3,7 +3,7 @@ on:
push:
branches:
- "main"
- "master"
- "main"
paths:
- "**/*.rb"
- "**/*.rake"
@ -13,7 +13,7 @@ on:
pull_request:
branches:
- "main"
- "master"
- "main"
types:
- "opened"
- "synchronize"

View File

@ -1,6 +1,6 @@
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
## unreleased
## unreleased
### Fixed
@ -11,7 +11,7 @@
- [performance] YAML message backend allocates less strings (via #399) (@casperisfine)
[Compare v1.9.1...master](https://github.com/dry-rb/dry-schema/compare/v1.9.1...master)
[Compare v1.9.1...main](https://github.com/dry-rb/dry-schema/compare/v1.9.1...main)
## 1.9.1 2022-02-17
@ -150,7 +150,7 @@ This release ships with a bunch of internal refactorings that should improve per
[Compare v1.5.4...v1.5.5](https://github.com/dry-rb/dry-schema/compare/v1.5.4...v1.5.5)
## 1.5.4
## 1.5.4
2020-09-03
@ -159,7 +159,7 @@ This release ships with a bunch of internal refactorings that should improve per
- Key validation works correctly with a non-nested maybe hashes (issue #311 fixed via #312) (@svobom57)
[Compare v1.5.3...master](https://github.com/dry-rb/dry-schema/compare/v1.5.3...master)
[Compare v1.5.3...main](https://github.com/dry-rb/dry-schema/compare/v1.5.3...main)
## 1.5.3 2020-08-21

View File

@ -6,9 +6,9 @@ eval_gemfile "Gemfile.devtools"
gemspec
gem "dry-configurable", github: "dry-rb/dry-configurable", branch: "master" if ENV["DRY_CONFIGURABLE_FROM_MASTER"].eql?("true") # rubocop:disable Layout/LineLength
gem "dry-logic", github: "dry-rb/dry-logic", branch: "master" if ENV["DRY_LOGIC_FROM_MASTER"].eql?("true") # rubocop:disable Layout/LineLength
gem "dry-types", github: "dry-rb/dry-types", branch: "master"
gem "dry-configurable", github: "dry-rb/dry-configurable", branch: "main" if ENV["DRY_CONFIGURABLE_FROM_MAIN"].eql?("true") # rubocop:disable Layout/LineLength
gem "dry-logic", github: "dry-rb/dry-logic", branch: "main" if ENV["DRY_LOGIC_FROM_MAIN"].eql?("true") # rubocop:disable Layout/LineLength
gem "dry-types", github: "dry-rb/dry-types", branch: "main"
group :test do
gem "dry-monads", require: false, github: "dry-rb/dry-monads"

View File

@ -4,7 +4,7 @@ layout: gem-single
name: dry-schema
---
By default `dry-schema` comes with a set of pre-defined error messages for every built-in predicate. They are defined in [a yaml file](https://github.com/dry-rb/dry-schema/blob/master/config/errors.yml) which is shipped with the gem. This file is compatible with `I18n` format.
By default `dry-schema` comes with a set of pre-defined error messages for every built-in predicate. They are defined in [a yaml file](https://github.com/dry-rb/dry-schema/blob/main/config/errors.yml) which is shipped with the gem. This file is compatible with `I18n` format.
## Configuration
@ -30,7 +30,7 @@ You can change the default top namespace using:
schema = Dry::Schema.Params do
config.messages.top_namespace = :validation_schema
end
```
```
## Lookup rules
@ -130,7 +130,7 @@ schema.call(email: '').errors(full: true).to_h
### Finding the right key
`dry-schema` has one error key for each kind of validation (Refer to [`errors.yml`](https://github.com/dry-rb/dry-schema/blob/master/config/errors.yml) for the full list). `key?` and `filled?` can usually be mistaken for each other, so pay attention to them:
`dry-schema` has one error key for each kind of validation (Refer to [`errors.yml`](https://github.com/dry-rb/dry-schema/blob/main/config/errors.yml) for the full list). `key?` and `filled?` can usually be mistaken for each other, so pay attention to them:
- `key?`: a required parameter is missing in the `params` hash.
- `filled?`: a required parameter is in the `params` hash but has an empty value.