Sha256: 3a0b727372401f3a5e7fc3b6cca4213cae92aaa8eeb1dff9b6b6333eb99f618f
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
# Validates Skype screen names. From the Skype website: # # bq. It must be between 6-32 characters, start with a letter and contain only # letters and numbers (no spaces or special characters). # # The following error message keys are used to localize invalid screen names. # # | @skype_too_short@ | Skype name is less than 6 characters. | # | @skype_too_long@ | Skype name is over 32 characters. | # | @skype_invalid_chars@ | Skype name contains invalid characters. | # | @skype_invalid_first_char@ | Skype name doesn't start with a letter. | # # @example # validates :skype_name, skype: true # # h2. Options # # | @:message@ | A custom message to use if the email is invalid. | # | @:allow_nil@ | If true, @nil@ values are allowed. | class SkypeValidator < AccountNameValidator min_length 6 max_length 32 valid_chars 'A-Za-z0-9' first_char 'A-Za-z' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
validates_im-1.1.0 | lib/skype_validator.rb |
validates_im-1.0.0 | lib/skype_validator.rb |