Module: ChronoForge::Dashboard

Defined in:
lib/chrono_forge/dashboard.rb,
lib/chrono_forge/dashboard/engine.rb,
lib/chrono_forge/dashboard/version.rb,
lib/chrono_forge/dashboard/configuration.rb,
lib/chrono_forge/dashboard/step_name_parser.rb,
app/queries/chrono_forge/dashboard/stats_query.rb,
app/queries/chrono_forge/dashboard/analytics_query.rb,
app/queries/chrono_forge/dashboard/workflows_query.rb,
app/helpers/chrono_forge/dashboard/dashboard_helper.rb,
app/queries/chrono_forge/dashboard/repetitions_query.rb,
app/controllers/chrono_forge/dashboard/base_controller.rb,
app/presenters/chrono_forge/dashboard/branch_presenter.rb,
app/presenters/chrono_forge/dashboard/context_presenter.rb,
app/controllers/chrono_forge/dashboard/assets_controller.rb,
app/presenters/chrono_forge/dashboard/branches_presenter.rb,
app/presenters/chrono_forge/dashboard/timeline_presenter.rb,
app/controllers/chrono_forge/dashboard/actions_controller.rb,
app/presenters/chrono_forge/dashboard/wait_state_presenter.rb,
app/controllers/chrono_forge/dashboard/analytics_controller.rb,
app/controllers/chrono_forge/dashboard/workflows_controller.rb,
app/controllers/chrono_forge/dashboard/repetitions_controller.rb,
app/controllers/chrono_forge/dashboard/wait_states_controller.rb,
app/presenters/chrono_forge/dashboard/periodic_health_presenter.rb,
app/controllers/chrono_forge/dashboard/branch_children_controller.rb

Defined Under Namespace

Modules: DashboardHelper, StepNameParser Classes: ActionsController, AnalyticsController, AnalyticsQuery, AssetsController, AuthenticationNotConfigured, BaseController, BranchChildrenController, BranchPresenter, BranchesPresenter, Configuration, ContextPresenter, Engine, PeriodicHealthPresenter, RepetitionsController, RepetitionsQuery, StatsQuery, TimelinePresenter, WaitStatePresenter, WaitStatesController, WorkflowsController, WorkflowsQuery

Constant Summary collapse

ASSET_ROOT =
"app/assets/chrono_forge/dashboard"
VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.asset_digest(file) ⇒ Object

Short content digest of a shipped asset, used to cache-bust the served CSS/JS so a gem upgrade (or a local rebuild) is picked up despite the long immutable cache header. Memoized; computed once per boot.



19
20
21
22
23
24
25
26
27
# File 'lib/chrono_forge/dashboard.rb', line 19

def asset_digest(file)
  @asset_digests ||= {}
  @asset_digests[file] ||= begin
    require "digest"
    Digest::SHA256.file(Engine.root.join(ASSET_ROOT, file)).hexdigest[0, 12]
  rescue
    VERSION
  end
end

.configObject



12
# File 'lib/chrono_forge/dashboard.rb', line 12

def config = (@config ||= Configuration.new)

.configure {|config| ... } ⇒ Object

Yields:



13
# File 'lib/chrono_forge/dashboard.rb', line 13

def configure = yield(config)

.reset_configuration!Object



14
# File 'lib/chrono_forge/dashboard.rb', line 14

def reset_configuration! = @config = Configuration.new