Sha256: 27d7c5692476fc5e856cf7276e104a79f2d9bb755b2a771638941e04895a9d4e
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
class JekyllAuth def self.setup_config config_file_path = File.join(Dir.pwd, "_config.yml") config_file = YAML.safe_load_file(config_file_path) config_file end def self.config @config ||= JekyllAuth.setup_config end def self.whitelist jekyll_auth_key = JekyllAuth::config["jekyll_auth"] return nil if !jekyll_auth_key or !(whitelist = jekyll_auth_key["whitelist"]) Regexp.new(whitelist.join("|")) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-auth-0.2.1 | lib/jekyll-auth/config.rb |