My Recent Pastes (17 and counting)
Pastes by Ian Ownbey (17 and counting)
Pages: 1 2
Below are the 15 most recent pasties by Ian Ownbey.
May 09, 2008
12:16AM EDT
by Ian Ownbey
View more (9 lines)
def do_export v1, v2 pre_regexp = build_regexp(v1.body) replace_string = build_string(v2.body) File.open('somefile') do |f| replace = f.read.gsub(pre_regexp, replace_string)
April 13, 2008
8:22PM EDT
by Ian Ownbey
View more (14 lines)
Index: lib/kirby.rb =================================================================== --- lib/kirby.rb (revision 1913) +++ lib/kirby.rb (working copy) @@ -161,6 +161,9 @@
March 25, 2008
9:20PM EDT
by Ian Ownbey
View more (24 lines)
ActionController::Resources::Resource.class_eval do def path @path ||= (path_prefix != false ? "#{path_prefix}/#{path_segment}" : '') end end
February 11, 2008
10:48PM EDT
by Ian Ownbey
View more (95 lines)
From f9297c3be76076f940e3f56106328cdf8053dd8d Mon Sep 17 00:00:00 2001 From: Ian Ownbey <iownbey@notesake.com> Date: Sun, 10 Feb 2008 19:45:36 -0500 Subject: [PATCH] Allow formatting of nested brackets and bring line parsing to its own function
February 11, 2008
10:45PM EDT
by Ian Ownbey
View more (95 lines)
From f9297c3be76076f940e3f56106328cdf8053dd8d Mon Sep 17 00:00:00 2001 From: Ian Ownbey <ianownbey@ian-ownbeys-computer-2.local> Date: Sun, 10 Feb 2008 19:45:36 -0500 Subject: [PATCH] Allow formatting of nested brackets
February 11, 2008
10:42PM EDT
by Ian Ownbey
View more (56 lines)
From 5f2a5ea9eae5892bb038a2d9a85315c2beb0c35c Mon Sep 17 00:00:00 2001 From: Ian Ownbey <iownbey@notesake.com> Date: Sun, 10 Feb 2008 19:45:36 -0500 Subject: [PATCH] Allow formatting of nested brackets
February 10, 2008
7:46PM EDT
by Ian Ownbey
View more (56 lines)
From 5f2a5ea9eae5892bb038a2d9a85315c2beb0c35c Mon Sep 17 00:00:00 2001 From: Ian Ownbey <iownbey@notesake.com> Date: Sun, 10 Feb 2008 19:45:36 -0500 Subject: [PATCH] Allow formatting of nested brackets
February 07, 2008
3:47PM EDT
by Ian Ownbey
View more (44 lines)
Index: test/haml/engine_test.rb =================================================================== --- test/haml/engine_test.rb (revision 738) +++ test/haml/engine_test.rb (working copy) @@ -133,6 +133,13 @@
February 07, 2008
3:39PM EDT
by Ian Ownbey
View more (52 lines)
diff -Naur haml/lib/haml/precompiler.rb hamlnew/lib/haml/precompiler.rb --- haml/lib/haml/precompiler.rb 2008-02-07 15:35:58.000000000 -0500 +++ hamlnew/lib/haml/precompiler.rb 2008-02-07 15:28:52.000000000 -0500 @@ -83,6 +83,8 @@
January 06, 2008
2:24AM EDT
by Ian Ownbey
View more (14 lines)
require 'net/http' require 'net/https' require 'uri' require 'ostruct' require 'active_support/core_ext/date/conversions'
January 02, 2008
2:41PM EDT
by Ian Ownbey
View more (25 lines)
def atleast? which which.to_s unless which.instance_of? String case self.role when "free" if which == "free"
January 01, 2008
6:16PM EDT
by Ian Ownbey
View more (21 lines)
ActiveRecord::AssociationTypeMismatch in 'Event should go down one event if its for next month' User expected, got User /Users/ianownbey/Sites/d4w/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:150:in `raise_on_type_mismatch' /Users/ianownbey/Sites/d4w/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb:22:in `replace' /Users/ianownbey/Sites/d4w/vendor/rails/activerecord/lib/active_record/associations.rb:1019:in `user='
January 01, 2008
6:14PM EDT
by Ian Ownbey
View more (37 lines)
# == Schema Information # Schema version: 3 # # Table name: events #
January 01, 2008
4:22PM EDT
by Ian Ownbey
View more (39 lines)
require File.dirname(__FILE__) + '/../spec_helper' include AuthenticatedTestHelper describe Event do fixtures :users, :events before(:each) do
December 30, 2007
2:21PM EDT
by Ian Ownbey
View more (33 lines)
#!/bin/sh # Export Rails to .rails svn co http://dev.rubyonrails.com/svn/rails/trunk .rails
