Skip to content

Commit

Permalink
Bump crystal versions (#9)
Browse files Browse the repository at this point in the history
* Bump dep versions
* Fix/update broken links in constraint docs
  • Loading branch information
Blacksmoke16 authored Dec 5, 2020
1 parent 46aea70 commit f63e700
Show file tree
Hide file tree
Showing 37 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: shards install --ignore-crystal-version
run: shards install
- name: Specs
run: crystal spec --order random --error-on-warnings
6 changes: 3 additions & 3 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: athena-validator

version: 0.1.2
version: 0.1.3

crystal: 0.35.0
crystal: '>= 0.35.0'

license: MIT

Expand All @@ -22,4 +22,4 @@ development_dependencies:
version: ~> 0.13.0
athena-spec:
github: athena-framework/spec
version: ~> 0.2.0
version: ~> 0.2.3
4 changes: 2 additions & 2 deletions src/constraints/all.cr
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ require "./composite"
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
#
# ## Usage
#
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/at_least_one_of.cr
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ require "./composite"
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
#
# ## Usage
#
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/blank.cr
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::Blank < Athena::Validator::Constraint
NOT_BLANK_ERROR = "c815f901-c581-4fb7-a85d-b8c5bc757959"

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/callback.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
#
# ## Usage
#
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/choice.cr
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::Choice < Athena::Validator::Constraint
NO_SUCH_CHOICE_ERROR = "c7398ea5-e787-4ee9-9fca-5f2c130614d6"
TOO_FEW_ERROR = "3573357d-c9a8-4633-a742-c001086fd5aa"
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/compound.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
#
# ## Usage
#
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/email.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::Email < Athena::Validator::Constraint
# Determines _how_ the email address should be validated.
enum Mode
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/equal_to.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::EqualTo(ValueType) < Athena::Validator::Constraint
include Athena::Validator::Constraints::AbstractComparison(ValueType)

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/greater_than.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::GreaterThan(ValueType) < Athena::Validator::Constraint
include Athena::Validator::Constraints::AbstractComparison(ValueType)

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/greater_than_or_equal.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::GreaterThanOrEqual(ValueType) < Athena::Validator::Constraint
include Athena::Validator::Constraints::AbstractComparison(ValueType)

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/ip.cr
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::IP < Athena::Validator::Constraint
# Determines _how_ the IP address should be validated.
enum Version
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/is_false.cr
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::IsFalse < Athena::Validator::Constraint
NOT_FALSE_ERROR = "55c076a0-dbaf-453c-90cf-b94664276dbc"

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/is_nil.cr
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::IsNil < Athena::Validator::Constraint
NOT_NIL_ERROR = "2c88e3c7-9275-4b9b-81b4-48c6c44b1804"

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/is_true.cr
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::IsTrue < Athena::Validator::Constraint
NOT_TRUE_ERROR = "beabd93e-3673-4dfc-8796-01bd1504dd19"

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/isbn.cr
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::ISBN < Athena::Validator::Constraint
enum Type
ISBN10
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/isin.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::ISIN < Athena::Validator::Constraint
INVALID_LENGTH_ERROR = "1d1c3fbe-5b6f-42be-afa5-6840655865da"
INVALID_PATTERN_ERROR = "0b6ba8c4-b6aa-44dc-afac-a6f7a9a2556d"
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/issn.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::ISSN < Athena::Validator::Constraint
TOO_SHORT_ERROR = "85c5d3aa-fd0a-4cd0-8cf7-e014e6379d59"
TOO_LONG_ERROR = "fab8e3ea-2f77-4da7-b40f-d9b24ff8c0cc"
Expand Down
4 changes: 2 additions & 2 deletions src/constraints/less_than.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::LessThan(ValueType) < Athena::Validator::Constraint
include Athena::Validator::Constraints::AbstractComparison(ValueType)

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/less_than_or_equal.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::LessThanOrEqual(ValueType) < Athena::Validator::Constraint
include Athena::Validator::Constraints::AbstractComparison(ValueType)

Expand Down
4 changes: 2 additions & 2 deletions src/constraints/luhn.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
#
# **Type:** `Array(String) | String | Nil` **Default:** `nil`
#
# The `AVD:Constraint@validation-groups` this constraint belongs to.
# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to.
# `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`.
#
# #### payload
#
# **Type:** `Hash(String, String)?` **Default:** `nil`
#
# Any arbitrary domain-specific data that should be stored with this constraint.
# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you.
# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you.
class Athena::Validator::Constraints::Luhn < Athena::Validator::Constraint
INVALID_CHARACTERS_ERROR = "c42b8d36-d9e9-4f5f-aad6-5190e27a1102"
CHECKSUM_FAILED_ERROR = "a4f089dd-fd63-4d50-ac30-34ed2a8dc9dd"
Expand Down
Loading

0 comments on commit f63e700

Please sign in to comment.