@@ -26,13 +26,13 @@ def enforce(inst,attr,value)
2626 when :existence
2727 check Goo ::Validators ::Existence , inst , attr , value , opt
2828 when :list , Array
29- check Goo ::Validators ::DataType , inst , attr , value , opt , Array
29+ check Goo ::Validators ::DataType , inst , attr , value , opt , Array
3030 when :uri , RDF ::URI
31- check Goo ::Validators ::DataType , inst , attr , value , opt , RDF ::URI
31+ check Goo ::Validators ::DataType , inst , attr , value , opt , RDF ::URI
3232 when :string , String
33- check Goo ::Validators ::DataType , inst , attr , value , opt , String
33+ check Goo ::Validators ::DataType , inst , attr , value , opt , String
3434 when :integer , Integer
35- check Goo ::Validators ::DataType , inst , attr , value , opt , Integer
35+ check Goo ::Validators ::DataType , inst , attr , value , opt , Integer
3636 when :boolean
3737 check Goo ::Validators ::DataType , inst , attr , value , opt , :boolean
3838 when :date_time , DateTime
@@ -43,6 +43,8 @@ def enforce(inst,attr,value)
4343 check Goo ::Validators ::Symmetric , inst , attr , value , opt
4444 when :email
4545 check Goo ::Validators ::Email , inst , attr , value , opt
46+ when :username
47+ check Goo ::Validators ::Username , inst , attr , value , opt
4648 when /^distinct_of_/
4749 check Goo ::Validators ::DistinctOf , inst , attr , value , opt , opt
4850 when /^superior_equal_to_/
@@ -54,6 +56,8 @@ def enforce(inst,attr,value)
5456 when /^max_/ , /^min_/
5557 type = opt . to_s . index ( "max_" ) ? :max : :min
5658 check Goo ::Validators ::ValueRange , inst , attr , value , type , opt . to_s
59+ when /^safe_text/
60+ check Goo ::Validators ::SafeText , inst , attr , value , opt , opt . to_s
5761 else
5862 if object_type? ( opt )
5963 check_object_type inst , attr , value , opt
0 commit comments