Module: Awestruct

Defined in:
lib/awestruct/cli/manifest.rb,
lib/awestruct/page.rb,
lib/awestruct/site.rb,
lib/awestruct/config.rb,
lib/awestruct/engine.rb,
lib/awestruct/astruct.rb,
lib/awestruct/context.rb,
lib/awestruct/layouts.rb,
lib/awestruct/scm/git.rb,
lib/awestruct/version.rb,
lib/awestruct/cli/auto.rb,
lib/awestruct/cli/init.rb,
lib/awestruct/pipeline.rb,
lib/awestruct/rack/app.rb,
lib/awestruct/deployers.rb,
lib/awestruct/cli/deploy.rb,
lib/awestruct/cli/server.rb,
lib/awestruct/rack/debug.rb,
lib/awestruct/cli/invoker.rb,
lib/awestruct/cli/options.rb,
lib/awestruct/page_loader.rb,
lib/awestruct/cli/generate.rb,
lib/awestruct/dependencies.rb,
lib/awestruct/astruct_mixin.rb,
lib/awestruct/handler_chain.rb,
lib/awestruct/rack/generate.rb,
lib/awestruct/context_helper.rb,
lib/awestruct/handler_chains.rb,
lib/awestruct/util/yaml_load.rb,
lib/awestruct/extensions/gsub.rb,
lib/awestruct/deploy/s3_deploy.rb,
lib/awestruct/extensions/posts.rb,
lib/awestruct/extensions/assets.rb,
lib/awestruct/extensions/disqus.rb,
lib/awestruct/extensions/flattr.rb,
lib/awestruct/extensions/minify.rb,
lib/awestruct/extensions/tagger.rb,
lib/awestruct/deploy/base_deploy.rb,
lib/awestruct/extensions/partial.rb,
lib/awestruct/extensions/sitemap.rb,
lib/awestruct/deploy/rsync_deploy.rb,
lib/awestruct/extensions/atomizer.rb,
lib/awestruct/extensions/data_dir.rb,
lib/awestruct/extensions/pipeline.rb,
lib/awestruct/extensions/relative.rb,
lib/awestruct/extensions/obfuscate.rb,
lib/awestruct/extensions/paginator.rb,
lib/awestruct/extensions/tag_cloud.rb,
lib/awestruct/extensions/indexifier.rb,
lib/awestruct/handlers/base_handler.rb,
lib/awestruct/handlers/file_handler.rb,
lib/awestruct/handlers/tilt_handler.rb,
lib/awestruct/handlers/yaml_handler.rb,
lib/awestruct/util/exception_helper.rb,
lib/awestruct/extensions/cachebuster.rb,
lib/awestruct/handlers/no_op_handler.rb,
lib/awestruct/handlers/layout_handler.rb,
lib/awestruct/handlers/string_handler.rb,
lib/awestruct/handlers/template/sassc.rb,
lib/awestruct/extensions/remotePartial.rb,
lib/awestruct/extensions/intense_debate.rb,
lib/awestruct/handlers/css_tilt_handler.rb,
lib/awestruct/handlers/redirect_handler.rb,
lib/awestruct/deploy/github_pages_deploy.rb,
lib/awestruct/handlers/base_tilt_handler.rb,
lib/awestruct/handlers/template/asciidoc.rb,
lib/awestruct/extensions/google_analytics.rb,
lib/awestruct/handlers/javascript_handler.rb,
lib/awestruct/handlers/asciidoctor_handler.rb,
lib/awestruct/handlers/front_matter_handler.rb,
lib/awestruct/handlers/interpolation_handler.rb,
lib/awestruct/handlers/verbatim_file_handler.rb,
lib/awestruct/handlers/page_delegating_handler.rb

Overview

in your site.yml specify

google_analytics:

account: UA-something
anonymizeIp: true
bounceTime: 15
demographics: true
linkAttribution: true

of course only “account” is required

Defined Under Namespace

Modules: AStructMixin, CLI, ContextHelper, Deploy, Extensions, Handlers, Rack, Scm, Tilt Classes: AStruct, Config, Context, Dependencies, Deployers, Engine, ExceptionHelper, HandlerChain, HandlerChains, Layouts, Page, PageLoader, Pipeline, Site

Constant Summary collapse

VERSION =
'0.6.7'

Class Method Summary collapse

Class Method Details

.yaml_load(str) ⇒ Object



4
5
6
7
# File 'lib/awestruct/util/yaml_load.rb', line 4

def self.yaml_load(str)
  return YAML.load(str) unless YAML.method('load').parameters.any? {|k,v| v == :permitted_classes}
  YAML.load(str, permitted_classes: [Date, Symbol])  
end

.yaml_load_file(str) ⇒ Object



9
10
11
12
# File 'lib/awestruct/util/yaml_load.rb', line 9

def self.yaml_load_file(str)
  return YAML.load_file(str) unless YAML.method('load').parameters.any? {|k,v| v == :permitted_classes}
  YAML.load_file(str, permitted_classes: [Date, Symbol])
end