I hereby claim:
- I am rhburrows on github.
- I am rhburrows (https://keybase.io/rhburrows) on keybase.
- I have a public key ASDm_o7bP4rBuTMeAqCltp8xNRi71n-eb3NHOuwYDESJYQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(defvar tea-mode-version "0.1") | |
(defcustom tea-mode-hook nil | |
"*Hook that runs upon entering tea-mode." | |
:type 'hook) | |
(defvar tea-mode-abbrev-table nil | |
"Abbrev table for use in tea-mode buffers.") | |
(defvar tea-mode-map nil |
#!/bin/sh | |
USER=<USERNAME> | |
PASSWORD=<PASSWORD> | |
SERVER=<SERVER> | |
JIRA_CACHE=~/.jira-cache | |
JIRA_EXEC=~/bin/jira-cli-2.0.0/jira.sh | |
# Used for display | |
TERM_WIDTH=72 |
#!/bin/sh | |
test $# -eq 2 || { | |
echo "USAGE: git track REPOSITORY REMOTE_BRANCH" | |
echo | |
echo "Set the current branch to track REMOTE_BRANCH at REPOSITORY" | |
exit 1 | |
} | |
CURRENT=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/"` |
<% form_for @project do |form| %> | |
<% form.fields_for :tasks do |task_form| %> | |
<%= task_form.object.name %> | |
<% end %> | |
<% end %> |
#!/usr/bin/env ruby | |
# 2008.10.03 | |
# JD Huntington | |
# Darell Fuhriman | |
# shell script to assist in working with lighthouse and git | |
# | |
# Modified by Ryan Burrows 2010.1.7 | |
# | |
# requires lighthouse api ruby wrapper and git library |
# spec/models/actor_spec.rb | |
describe Actor do | |
describe "#kill" do | |
before(:each) do | |
@movie = mock_model(Movie, :cancel => nil).as_null_object | |
@actor = Actor.new(:alive => true, :movie => @movie) | |
end | |
it "makes the actor no longer alive" do | |
@actor.kill |
# lib/active_record/associations/association_proxy.rb | |
module ActiveRecord | |
module Associations | |
class AssociationProxy | |
# Forwards any missing method call to the \target | |
def method_missing(method, *args, &block) | |
if load_target | |
unless @target.respond_to?(method) | |
message = "undefined method `#{method.to_s}' for \"#{target}\":#{target.class.to_s}" | |
raise NoMethodError, message |
# lib/spec/mocks/mock.rb | |
module Spec | |
module Mocks | |
class Mock | |
def method_missing(sym, *args, &block) | |
__mock_proxy.record_message_received(sym, args, block) | |
begin | |
return self if __mock_proxy.null_object? | |
super(sym, *args, &block) | |
rescue NameError |
# lib/spec/mocks/proxy.rb | |
module Spec | |
module Mocks | |
class Proxy | |
@options[:null_object] = true | |
end | |
end | |
end |