Sha256: 7a6e8a5cf0654dd95bd39bddd2ae215fb437435b0df49073c97e2001eb652105
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
# frozen_string_literal: true module Gemfury module Const class << self def host 'www.gemfury.com' # 'localhost:3000' end def welcome "Welcome to Gemfury!\nPlease complete the following information" end def email_error 'Invalid email address. Please try again.' end def email_regex return @email_regex if @email_regex email_name_regex = '[A-Z0-9_\.%\+\-\']+' domain_head_regex = '(?:[A-Z0-9\-]+\.)+' domain_tld_regex = '(?:[A-Z]{2,4}|museum|travel)' @email_regex = /^#{email_name_regex}@#{domain_head_regex}#{domain_tld_regex}$/i end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemfury-0.13.0 | lib/gemfury/const.rb |
gemfury-0.13.0.beta1 | lib/gemfury/const.rb |