Module: Gemfury::Const

Defined in:
lib/gemfury/const.rb

Class Method Summary collapse

Class Method Details

.email_errorObject


13
14
15
# File 'lib/gemfury/const.rb', line 13

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

.email_regexObject


17
18
19
20
21
22
23
# File 'lib/gemfury/const.rb', line 17

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


4
5
6
7
# File 'lib/gemfury/const.rb', line 4

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

.welcomeObject


9
10
11
# File 'lib/gemfury/const.rb', line 9

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