Sha256: e6e162c88543b85f82a9cb1d7332036d41b76f69db2920684a102f6da3d33fcb

Contents?: true

Size: 298 Bytes

Versions: 61

Compression:

Stored size: 298 Bytes

Contents

module Spider; module DataTypes
    
    class Email < DataType
        maps_to 'text'
        
        def self.check(val)
            raise FormatError, _("%s is not a valid e-mail address") % val unless /\A[\w\._%-]+@[\w\.-]+\.[a-zA-Z]{2,4}\z/
        end
        
        
    end
    
end; end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
spiderfw-1.0.1 lib/spiderfw/model/datatypes/email.rb
spiderfw-1.0.0 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.39 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.38 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.37 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.35 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.34 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.33 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.32 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.31 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.30 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.29 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.28 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.27 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.26 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.26.pre1 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.25 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.24 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.23 lib/spiderfw/model/datatypes/email.rb
spiderfw-0.6.22 lib/spiderfw/model/datatypes/email.rb