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
doorkeeper_contact: |"/srv/doorkeeper/current/script/email_handler contact_emails production" | |
doorkeeper_event_signup: |"/srv/doorkeeper/current/script/email_handler signup_emails production" | |
doorkeeper_bounce: |"/srv/doorkeeper/current/script/email_handler bounced_emails production" |
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
# encoding: UTF-8 | |
# | |
# This file is in: lib/rescue_from_defaults.rb | |
# | |
# To use it, include the RescueFromDefaults in the ApplicationController (see below for example) | |
# | |
# To test it we are using rspec and steak. See below for examples. | |
# | |
class AccessDenied < RuntimeError | |
end |
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
load 'deploy' unless defined?(_cset) | |
_cset :asset_env, "RAILS_GROUPS=assets" | |
_cset :assets_prefix, "assets" | |
_cset :assets_role, [:web] | |
_cset :normalize_asset_timestamps, false | |
after 'deploy:update_code', 'deploy:assets:precompile' |
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
Your system is raring to brew. |
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 'rubygems' | |
require 'shoulda' | |
class SimpleTest < Test::Unit::TestCase | |
context 'with 100' do | |
setup { @total = 100 } | |
should("return 100") { assert_equal(100, @total.to_i) } | |
end | |
end |
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 'net/http' | |
require 'base64' | |
require 'cgi' | |
require 'json' | |
class CoBot | |
HEADERS = { | |
'Accept' => 'application/json', | |
'Content-Type' => 'application/json; charset=utf-8', | |
'User-Agent' => 'Harvest Twitter Script' } |
NewerOlder