Sha256: 40dbad59c209804a3d0f167e4c423e8bfd0ff01fb73492bb3a163a310ea5f008
Contents?: true
Size: 616 Bytes
Versions: 2
Compression:
Stored size: 616 Bytes
Contents
module Dashing class << self delegate :scheduler, :redis, to: :config attr_accessor :configuration def config self.configuration ||= Configuration.new end def configure yield config end def first_dashboard files = Dir[Rails.root.join(config.dashboards_path, '*')].collect { |f| File.basename(f, '.*') } files.sort.first end def send_event(id, data) redis.publish("#{Dashing.config.redis_namespace}.create", data.merge(id: id, updatedAt: Time.now.utc.to_i).to_json) end end end require 'dashing/configuration' require 'dashing/engine'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dashing-rails-1.0.1 | lib/dashing.rb |
dashing-rails-1.0.0 | lib/dashing.rb |