This file contains 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
19:03 <#cucumber> cheezyworking with a team close to my home | |
19:05 <#cucumber> cheezywe are wrapping cukes around a telephone queueing and routing system | |
19:05 <#cucumber> cheezywicked stuff | |
19:05 <#cucumber> aslakhellesoy_wow cool! | |
19:05 <#cucumber> aslakhellesoy_ui or headless cukes? | |
19:06 <#cucumber> cheezyit's all headless | |
19:06 <#cucumber> aslakhellesoy_i like headless - much faster | |
19:06 <#cucumber> cheezyi wrote a c layer that simulates the hardware and a ruby lib with ffi | |
19:06 <#cucumber> cheezyand a dsl over the lib | |
19:07 <#cucumber> cheezythe app doesn't really have a head - just c++ |
This file contains 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_helper' | |
describe Factory do | |
# convention: "base" factories return valid models. | |
# without these tests, factories with invalid associations are difficult to identify and debug | |
# Note: performs build, not create. | |
describe 'all factories,' do | |
factories_to_skip = {} | |
factories_to_skip[:user_session] = "You must activate the Authlogic::Session::Base.controller with a controller object before creating objects" |
This file contains 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 'formula' | |
class Dialog <Formula | |
url 'ftp://invisible-island.net/dialog/dialog.tar.gz' | |
homepage 'http://en.wikipedia.org/wiki/Dialog_(software)' | |
# wikipedia page is more complete than (and contains link to) | |
# homepage 'http://invisible-island.net/dialog/' | |
md5 '519c0a0cbac28ddb992111ec2c3f82aa' | |
version '1.1.20070704' |
This file contains 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
# | |
# = Capistrano database.yml task | |
# | |
# Provides a couple of tasks for creating the database.yml | |
# configuration file dynamically when deploy:setup is run. | |
# | |
# Category:: Capistrano | |
# Package:: Database | |
# Author:: Simone Carletti <weppos@weppos.net> | |
# Copyright:: 2007-2009 The Authors |
This file contains 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
if 'SQLite' == ActiveRecord::Base.connection.adapter_name && !defined?(JRUBY_VERSION) #SQLite3 returns SQLite as well. | |
raise "You have upgraded rails. These monkey patches may no longer be needed. Please remove, if possible." if RAILS_GEM_VERSION != '2.3.5' | |
ActiveRecord::ConnectionAdapters::SQLiteAdapter.class_eval do | |
#Fixes issue dumping schema for files with defined primary key. | |
#see: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1153-make-schemadumper-dump-primary-keys-not-named-id-correctly-in-sqlite3 | |
def pk_and_sequence_for(table_name) #:nodoc: | |
[primary_key(table_name), nil] | |
end | |
end |
This file contains 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
#!/usr/bin/ruby | |
# | |
# I deliberately didn't DRY /usr/local references into a variable as this | |
# script will not "just work" if you change the destination directory. However | |
# please feel free to fork it and make that possible. | |
# | |
# If you do fork, please ensure you add a comment here that explains what the | |
# changes are intended to do and how well you tested them. | |
# | |
# 30th March 2010: |
This file contains 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 'json' | |
$log_filename ||= File.expand_path(File.join("..", "ruby.log.json"), File.dirname(__FILE__)) | |
begin | |
if !File.exist?($log_filename) | |
File.open($log_filename, "w") do |f| | |
f.write "[" | |
end | |
end |
This file contains 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
#save to ~/.rake/rspec_recent.rake | |
@usage: `rake -g spec:recent` | |
# Grab recently touched specs | |
#from: http://nullcreations.net/entries/general/rspec-on-rails-rake-task-for-recent-specs | |
#TODO: should this grab list from svn? affter we remove externals? | |
def recent_specs(touched_since) | |
recent_specs = FileList['app/**/*'].map do |path| | |
if File.mtime(path) > touched_since |
This file contains 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
#When I edit Jurisdiction/Location:L1 | |
When /^I edit (.*)(?:\/)(.+):(.+)$/ do |requested_parent_model, requested_model, default_identifier| |