This file contains hidden or 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
require 'action_dispatch/middleware/session/dalli_store' | |
# - PHP side is 5.3.6 configured with session.save_handler = memcache | |
# - Requires php-serialize gem for serialization: https://github.com/jqr/php-serialize | |
module ActionDispatch | |
module Session | |
class PhpDalliStore < ActionDispatch::Session::DalliStore | |
require 'php_serialize' | |
class PhpSerializingPoolDecorator < SimpleDelegator |
This file contains hidden or 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
ENV["WATCHR"] = "1" | |
system 'clear' | |
def growl(message) | |
growlnotify = `which growlnotify`.chomp | |
title = "Watchr Test Results" | |
puts message | |
image = message.match(/\s0\s(errors|failures)/) ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png" | |
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{strip_ansi(message)}' '#{title}'" | |
system %(#{growlnotify} #{options} &) |