module CrystalRandomAgent
Extended Modules
Defined in:
crystal_random_agent.crcrystal_random_agent/version.cr
Constant Summary
-
CONFIG =
YAML.parse(FLAT_YAML)
-
CONFIG_FILE =
File.expand_path("./user_agents.yml", "/srv/crystaldoc.info/github-Nephos-crystal_random_agent-v0.2.0/src")
-
FLAT_YAML =
{{ system("echo '\"'; cat /srv/crystaldoc.info/github-Nephos-crystal_random_agent-v0.2.0/src/user_agents.yml; echo '\"'") }}
-
USER_AGENTS =
CONFIG["user_agents"].as_h.map do |_, subtypes| (YAML::Any.new(subtypes)).as_h.map do |_, agents| (YAML::Any.new(agents)).as_a.map do |ua| ua.as(String) end end end.flatten
-
VERSION =
"0.1.0"