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
module DeprecateAssertions | |
def self.methods_to_replace | |
[ | |
:assert, | |
:assert_block, | |
:assert_equal, | |
:assert_no_match, | |
:assert_not_equal, | |
:assert_nothing_raised, |
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 InboxProductOrderView extends Backbone.View | |
tagName: "div" | |
className: "list_view_item inbox_item" | |
template: _.template($('#inbox-product-order').html()) | |
events: | |
'click': 'show_inbox_product_order' | |
render: -> | |
$(@el).html @template(@model.toJSON()) | |
@ | |
show_inbox_product_order: -> |
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 CreateBundles < ActiveRecord::Migration | |
def self.up | |
create_table :bundles do |t| | |
t.string :bundle_id, :null => false | |
t.string :title, :null => false | |
t.timestamps | |
end | |
add_index :bundles, :bundle_id, :unique => true | |
end |
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
if Rails.env.development? | |
ActiveRecord::ConnectionAdapters::Mysql2Adapter.send(:include, QueryTracer::MysqlAdapterExtensions) | |
Object.send(:include, QueryTracer::ObjectExtensions) | |
end |
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
namespace :resque do | |
task :setup => :environment do | |
# generic worker setup, e.g. Hoptoad for failed jobs | |
end | |
# QUIT - Wait for child to finish processing then exit | |
# TERM / INT - Immediately kill child then exit | |
# USR1 - Immediately kill child but don't exit | |
# USR2 - Don't start to process any new jobs | |
# CONT - Start to process new jobs again after a USR2 |
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
set :stages, %w(staging production beta) | |
set :default_stage, "staging" | |
require 'capistrano/ext/multistage' | |
# Ok, capistrano_recipes totally breaks not only multistage... | |
# require 'capistrano_recipes' | |
require 'capistrano_colors' | |
require 'bundler/capistrano' | |
require 'thinking_sphinx/deploy/capistrano' |
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
# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 | |
# $Id: Portfile 58602 2009-10-01 23:13:15Z [email protected] $ | |
PortSystem 1.0 | |
name mc | |
version 4.7.0 | |
categories sysutils | |
maintainers eisenhorn | |
description GNU Midnight Commander |