master => main
This commit is contained in:
parent
83aaafd031
commit
40f6d0fe49
|
@ -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}" %>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
|
6
Gemfile
6
Gemfile
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue