Experimental Mongo support for ActiveRecord.
Here is an instructional video:
#!/bin/bash | |
# Usage: OAUTH_TOKEN="..." backfill-releases CHANGELOG.md [<project-title>] | |
set -e | |
log="${1?}" | |
project_name="${2}" | |
repo="$(git config remote.origin.url | grep -oE 'github\.com[/:][^/]+/[^/]+' | sed 's/\.git$//' | cut -d/ -f2-3)" | |
[ -n "${project_name}" ] || project_name="${repo#*/}" |
require "spec/acceptance/acceptance_helper" | |
feature "Login", %q{ | |
In order to access my account | |
As an user | |
I want to be able to log in | |
} do | |
let :user do | |
Factory :user |
def should_be_delivered_on_creation_with(clazz) | |
context "on creation" do | |
it "should be send on an email" do | |
mailer = mock(clazz) | |
clazz.should_receive(subject.class.to_s.underscore).with(an_instance_of(subject.class)).and_return(mailer) | |
mailer.should_receive :deliver | |
Factory subject.class.to_s.underscore | |
end | |
end | |
end |
require 'spec_helper' | |
require 'steak' | |
require 'capybara/rails' | |
require 'database_cleaner' | |
require 'akephalos' | |
DatabaseCleaner.strategy = :truncation | |
Capybara.default_selector = :css | |
class ActiveRecord::Base |
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
Experimental Mongo support for ActiveRecord.
Here is an instructional video:
function! RunSpec() | |
if executable('./bin/spec') | |
:!./bin/spec % | |
elseif executable('./bin/rspec') | |
:!./bin/rspec % | |
elseif executable('bundle') | |
:!bundle exec ruby -I'lib:test' % | |
endif | |
endfunction |
# gem install bcat | |
curl -X POST --data-urlencode content@README.md http://documentup.com/compiled | bcat |
require 'cell/base' | |
class FakeRoutes # should be sinatra's url helper instance | |
def url_for(*) | |
end | |
def named_routes # required due to a fucking stupid line in AbstractController::UrlFor#25 (3.2.3) | |
# super - _routes.named_routes.helper_names | |
Object.new.instance_eval do |
Unless otherwise necessary (such as mobile development), the GitHub javascript codebase is based off jQuery. You can safely assume it will be included on every page.
jquery.facebox
jquery.github.repo_list.js
page.billing.js