ruby-on-rails,rufus-scheduler,dashing
The rufus-scheduler #on_error could help. It's documented at https://github.com/jmettraux/rufus-scheduler#rufusscheduleron_errorjob-error For example: if rails_env == 'test' # set the handler only when testing... def Dashing.scheduler.on_error(job, error) # keep silent, do nothing end end You seem not to want to set the Rails env to "test" for your integration test so you...
You can disable dragging by adding an items parameter in your assets/javascripts/application.coffee file and setting it to 'none' like so: draggable: stop: Dashing.showGridsterInstructions start: -> Dashing.currentWidgetPositions = Dashing.getWidgetPositions() items: "none" The items parameter takes a string that matches a CSS selector. It can also take a collection of HTML elements....
I figured it out. You must have Node.JS or some kind of Javascript engine installed.
Include in Gemfile : gem 'pg' In your jobs.rb file: require 'pg' SCHEDULER.every '3m', :first_in => 0 do |job| conn = PGconn.new(:host => "localhost", :port => "5432",:dbname => "dbname",:user => "test",:password => "test") results = conn.exec("select partner,sitetype from test") # Sending to List widget, so map to :label and :value...
Managed to crack it: # Define elements for Rickshaw time time = new Rickshaw.Fixtures.Time months = time.unit('month') weeks = time.unit('week') y_axis = new Rickshaw.Graph.Axis.Y(graph: graph, tickFormat: Rickshaw.Fixtures.Number.formatKMBT) switch @get('xAxis') when "weekly" x_axis = new Rickshaw.Graph.Axis.Time(graph: graph, timeUnit: weeks) when "monthly" x_axis = new Rickshaw.Graph.Axis.Time(graph: graph, timeUnit: months) else x_axis =...
You need to pull the "Members" out of the hash first event_data = response["Members"].map{ |who, status| {label: who, value: status }} ...
Dashing is using rufus-scheduler 2.0.24 ( https://github.com/Shopify/dashing/blob/55f90939eae4d6eb64822fd3590f694418396510/dashing.gemspec#L24 ) which doesn't support the first_in feature for cron. First_in was introduced for cron in rufus-scheduler 3.0. It seems you're reading the rufus-scheduler 3.x documentation instead of the 2.x one. The documentation for rufus-scheduler is at https://github.com/jmettraux/rufus-scheduler#rufus-scheduler , on top of it, there...
ruby-on-rails,ruby,activerecord,heroku,dashing
Issue turns out to be related to Rails 4 live stream. https://github.com/rails/rails/issues/10989 Specifically Live streaming threads in Rails 4 are not getting closed....
HTML: <div class=widget> <h2>Some text</h2> </div> CSS: You can change the values .widget { width: 100px; height: 100px; background-color: red; } h2 { margin: auto; } ...