Skip to content

Instantly share code, notes, and snippets.

View dcuddeback's full-sized avatar

David Cuddeback dcuddeback

  • Boulder, Colorado, United States
View GitHub Profile
@dcuddeback
dcuddeback / scheduled_job.rb
Created January 27, 2012 01:34 — forked from kares/scheduled_job.rb
Recurring Job using Delayed::Job
#
# Recurring Job using Delayed::Job
#
# Setup Your job the "plain-old" DJ (perform) way, include this module
# and Your handler will re-schedule itself every time it succeeds.
#
# Sample :
#
# class MyJob
# include Delayed::ScheduledJob
@dcuddeback
dcuddeback / gist:1893965
Created February 23, 2012 17:39
Enabling ci_reporter with parallel_tests
# The way the parallel_tests gem loads the test suite is incompatible with how ci_reporter loads the
# test suite. This module reconciles the difference by recognizing when ci_reporter is expected to
# be loaded and then doing it.
module ParallelCIReporter
# Sets up ci_reporter if necessary.
def self.setup_ci_reporter
install_mediator if ci_reporter?
end