This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# What you do about Tddium. Utilities to start tddium sessions | |
# Also contains some utilities I used in debugging (primarily unstick and start) | |
# I think session listing and stopping of builds is broken | |
# Credit mostly due to reading Tddium's gems' source. | |
# | |
# Dependencies: | |
# "underscore": "1.4.4" | |
# | |
# Commands: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Audit | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
include RailsAdminImport::Import | |
class << self | |
def create_with_type_message_meta(_type, _message, _user) | |
self.create_without_type_message_meta({ | |
:type => _type, | |
:content => _message, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IncorrectTimeFormatError < StandardError; end | |
class FakeTime | |
## | |
# :call-seq: | |
# FakeTime.add_minutes(time, minutes_to_add) => String | |
# | |
# Returns a new string with minutes_to_add added to the time | |
# | |
# FakeTime.add_minutes("9:23 AM", 10) #=> "9:33 AM" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
user nginx web; | |
pid /tmp/nginx.pid; | |
error_log /tmp/nginx.error.log; | |
events { | |
worker_connections 1024; | |
accept_mutex off; | |
use epoll; |
NewerOlder