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
git submodule add git://github.com/dreamr/dream_gens.git vender/plugins/dream_gens |
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
gem install dream_gens |
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
can you make it | |
def rest_actions | |
@rest_actions = DreamResourceGenerator.rest_actions unless @rest_actions.empty? | |
@rest_actions | |
end | |
That also means the: |
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
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH" | |
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: ' | |
export EDITOR='mate -w' | |
export AUTOFEATURE=false | |
export RSPEC=true | |
export CUCUMBER_COLORS=passed=white | |
export CUCUMBER_COLORS=passed=white,bold:passed_param=white,bold,underline | |
export CUCUMBER_COLORS=pending_param=magenta:failed_param=magenta:passed_param=magenta:skipped_param=magenta |
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
Autotest.add_hook :initialize do |at| | |
%w{rerun.txt}.each do |exception| | |
at.add_exception(exception) | |
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
<% | |
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | |
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | |
std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip" | |
%> | |
default: <%= std_opts %> | |
wip: --tags @wip:3 --wip features |
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
GEMS=`gem list --no-versions` | |
for x in $GEMS ; do sudo gem uninstall $x -i ~/.gem/ruby/1.8/; done |
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 'spec' | |
Autotest.add_discovery do | |
"rspec" | |
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
ActiveRecord::Base.class_eval do | |
def self.validates_inlcusion_of(*attr_names) | |
configuration = { :minumum => 1 } | |
configuration.update(attr_names.extract_options!) | |
validates_each(attr_names, configuration) do |record, attr_name, value| | |
unless value.nil? | |
record.errors.add(attr_name, "must contain at least #{configuration[:minimum]}") if value.size < configuration[:minimum].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
ActionController::Routing::Routes.draw do |map| | |
map.with_options :controller => 'static' do |static| | |
static.home '/', :action => 'home' | |
static.home '/home', :action => 'home' | |
static.dogma '/practices', :action => 'practices' | |
static.projects '/projects', :action => 'projects' | |
static.access_denied '/access-denied', :action => 'denied' | |
end | |