Module: Gemfury::Const

Defined in:
lib/gemfury/const.rb

Class Method Summary collapse

Class Method Details

.email_errorObject



15
16
17
# File 'lib/gemfury/const.rb', line 15

def email_error
  'Invalid email address. Please try again.'
end

.email_regexObject



19
20
21
22
23
24
25
26
# File 'lib/gemfury/const.rb', line 19

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

.hostObject



6
7
8
9
# File 'lib/gemfury/const.rb', line 6

def host
  'www.gemfury.com'
  # 'localhost:3000'
end

.welcomeObject



11
12
13
# File 'lib/gemfury/const.rb', line 11

def welcome
  "Welcome to Gemfury!\nPlease complete the following information"
end