Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolab committed Jan 8, 2021
1 parent 331a68e commit 3276763
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Also [validator/check](#check) (not exposed by default) provides:
dependencies:
validator:
github: nicolab/crystal-validator
version: ~> 1.1.0 # Check the latest version!
version: ~> 1.2.0 # Check the latest version!
```
2. Run `shards install`
Expand Down
2 changes: 1 addition & 1 deletion docs/Check.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ <h2>

<span class="t">Check</span>.rules(
content: {
required: <span class="n">true</span>,
required: <span class="s">&quot;Content is required&quot;</span>, <span class="c"># or `true` to use the default error message</span>
check: {
not_empty: {<span class="s">&quot;Article content is required&quot;</span>},
between: {<span class="s">&quot;The article content must be between 10 and 20 000 characters&quot;</span>, <span class="n">10</span>, <span class="n">20_000</span>},
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h2><a id="installation" class="anchor" href="#installation">
<pre><code class="language-yaml">dependencies:
validator:
github: nicolab/crystal-validator
version: ~> 1.1.0 # Check the latest version!</code></pre>
version: ~> 1.2.0 # Check the latest version!</code></pre>

<ol><li>Run <code>shards install</code></li></ol>

Expand Down Expand Up @@ -240,7 +240,7 @@ <h3><a id="validation-rules" class="anchor" href="#validation-rules">

<span class="c"># required</span>
age: {
required: <span class="n">true</span>,
required: <span class="s">&quot;Age is required&quot;</span>, <span class="c"># Custom message</span>
check: {
min: {<span class="s">&quot;Age should be more than 18&quot;</span>, <span class="n">18</span>},
between: {<span class="s">&quot;Age should be between 25 and 35&quot;</span>, <span class="n">25</span>, <span class="n">35</span>},
Expand Down
2 changes: 1 addition & 1 deletion docs/index.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: validator
version: 1.1.1
version: 1.2.0
crystal: 0.35

authors:
Expand Down

0 comments on commit 3276763

Please sign in to comment.