A fake auction house I made for a school project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
the_auctionhouse/src/config.rb

37 lines
753 B

# DB stuff
DB_PATH = "db/main.db"
# User settings stuff
AVATAR_SIZE = 1024
# Register stuff
MIN_PASSWORD_LEN = 8
MIN_NAME_LEN = 2
EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/i
REGISTER_ERRORS = {
fields: "Please fill all of the fields",
pass_len: "Password length must be at least #{MIN_PASSWORD_LEN}",
pass_notequals: "Password mismatch",
name_len: "Name length must be at least #{MIN_NAME_LEN}",
email_dupe: "Email is already in use",
email_fake: "Please use a valid email address"
}
SETTINGS_ERRORS = {
name_len: "Name length must be at least #{MIN_NAME_LEN}"
}
# Login stuff
LOGIN_ERRORS = {
fields: "Please fill all of the fields",
fail: "Wrong password and/or email"
}
# Auction stuff
AH_BUYOUT_FACTOR = 1.8