Public Gists by pacoguzman

Gravatar
Sat Oct 24 09:07:15 -0700 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
Gravatar
Thu Sep 24 02:58:53 -0700 2009
1
2
3
module ShouldaContextExtensions
  def self.included(base)
    base.class_eval do
Gravatar
Sat Sep 12 08:12:17 -0700 2009
1
2
3
class ActionDuck
 
  attr_accessor :errors
Gravatar
Fri Aug 28 04:39:52 -0700 2009
1
2
3
ab -n 100 -c 4 http://localhost:3000/searches/concept_search
 
# ESTADO ACTUAL
Gravatar
Sat Aug 15 08:32:58 -0700 2009
1
2
3
// Tip: You can go to any result in preview by pressiong ctrl+alt+[result number]
CmdUtils.makeSearchCommand({
  name: ["rails","rails-search"],
gist: 166362 balinterdi_cucumber_flavor
Gravatar
Wed Aug 12 00:29:57 -0700 2009
1
2
3
# Sets up a Rails app with Cucumber (Rspec, Webrat, Factorygirl),
# Authlogic and Haml
# Also copies polished(?) config files and some basic step definitions
Gravatar
Sat Aug 08 06:50:10 -0700 2009
1
2
3
require 'rubygems'
require 'spork'
 
Gravatar
Sat Jul 25 00:43:24 -0700 2009
1
2
3
Then /^I should see a form for "(.+)" containing (.+) fields$/ do |object, methods|
  fields = methods.scan(/(\w+)(?:,|\sand\s|\s)?/).flatten
  response.should have_selector(:form) do |form|
Gravatar
Tue Jul 21 13:30:46 -0700 2009
1
2
3
# paste into .irbrc
 
require 'benchmark'
Gravatar
Tue Jul 21 02:27:08 -0700 2009
1
2
3
# download, from_repo, and commit_state methods swiped from
# http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb
 
Gravatar
Mon Jul 13 13:43:28 -0700 2009
1
2
3
# download and git methods swiped from http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb
 
require 'open-uri'
gist: 144305 I18n that include pluraliza...
Gravatar
Fri Jul 10 00:51:28 -0700 2009
1
2
3
module I18n
  module Backend
    class SnippetBackend < Simple
Gravatar
Tue Jun 09 06:54:33 -0700 2009
1
2
3
module SimpleCachingTTL
  CACHETIME = 24 * 3600 # Once per day
  
Gravatar
Fri May 15 07:15:50 -0700 2009
1
2
3
require 'cucumber/rake/task'
 
namespace :cucumber do
Gravatar
Fri Apr 03 11:00:54 -0700 2009
1
2
3
class SessionController < ApplicationController
  def read
    render :text => session[:user_id], :status => :ok
Gravatar
Tue Mar 24 15:17:09 -0700 2009
1
2
default: -r features/support/env.rb -r features/support/plain.rb -r features/step_definitions features/plain
selenium: -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced
Gravatar
Fri Mar 20 00:33:27 -0700 2009
1
2
3
# RAILSLOVE.com template
#
# with help and ideas from: