Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
AquaGeek / test2.c
Created March 21, 2011 23:05
Another test
printf("This is a public gist");
@AquaGeek
AquaGeek / &me=?
Created April 29, 2011 04:28
Testing some bad characters
I wonder if this works...
Hello, Dr.
@AquaGeek
AquaGeek / unsigned_integers_for_mysql.diff
Created May 13, 2011 03:16
Rails Lighthouse ticket #300
From 900577da032928c4b37e976ada299d6bd24f4855 Mon Sep 17 00:00:00 2001
From: Rob Anderton <rob.anderton@thewebfellas.com>
Date: Mon, 2 Jun 2008 14:35:17 +0100
Subject: [PATCH] Added unsigned integer support for MySQL
---
.../abstract/schema_definitions.rb | 28 +++++-
.../abstract/schema_statements.rb | 4 +-
.../connection_adapters/mysql_adapter.rb | 59 +++++++++-
activerecord/lib/active_record/schema_dumper.rb | 19 ++--
From 99464feddc512c061303ea33ef5b6b5c1a9ae7ed Mon Sep 17 00:00:00 2001
From: Ripta Pasay <github@r8y.org>
Date: Wed, 3 Dec 2008 11:37:45 -0500
Subject: [PATCH] Add failing lexical lookup test case
---
activesupport/test/inflector_test.rb | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb
@AquaGeek
AquaGeek / to_json_fix.diff
Created May 13, 2011 03:21
Rails Lighthouse ticket #610
From 3a5dd2d63c06f1801518ccdcc902b01bc1cba8f8 Mon Sep 17 00:00:00 2001
From: David Burger <davidjburger@yahoo.com>
Date: Sat, 12 Jul 2008 18:33:01 -1000
Subject: [PATCH] to_json invokes to_json of included associations
---
.../active_record/serializers/json_serializer.rb | 18 +++++++++++++++++-
activerecord/test/cases/json_serialization_test.rb | 11 +++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
@AquaGeek
AquaGeek / updated_validations.diff
Created May 13, 2011 03:23
Rails Lighthouse ticket #873
From a30e32aab00f9f1497e25361217399490bc01ec8 Mon Sep 17 00:00:00 2001
From: Sean Huber <shuber@me.com>
Date: Wed, 20 Aug 2008 11:29:55 -0700
Subject: [PATCH] validates_exclusion_of can now accept a symbol representing an instance method or a proc object as the :in/:within option
---
.../lib/active_model/validations/exclusion.rb | 25 +++++++++++++--
activerecord/lib/active_record/validations.rb | 31 +++++++++++++++----
activerecord/test/cases/validations_test.rb | 31 ++++++++++++++++++++
3 files changed, 76 insertions(+), 11 deletions(-)
@AquaGeek
AquaGeek / attribute_decorator.diff
Created May 13, 2011 03:24
Rails Lighthouse ticket #950
From 64dc359547f205eccf78c63540bcb0f8db91fc85 Mon Sep 17 00:00:00 2001
From: Eloy Duran <eloy.de.enige@gmail.com>
Date: Fri, 5 Dec 2008 13:22:23 +0100
Subject: [PATCH] Updated for current HEAD.
---
activerecord/lib/active_record.rb | 1 +
activerecord/lib/active_record/aggregations.rb | 2 +
.../lib/active_record/attribute_decorator.rb | 187 +++++++++++++++++
activerecord/lib/active_record/base.rb | 2 +
@AquaGeek
AquaGeek / binary_serialization_test_patch.diff
Created May 13, 2011 03:25
Rails Lighthouse ticket #1117
From 8f7771d3b5359199d354f32d2b646039802e40ad Mon Sep 17 00:00:00 2001
From: Victor Costan <costan@gmail.com>
Date: Wed, 21 Apr 2010 00:42:51 -0400
Subject: [PATCH] Failing test case for serialization on binary fields in sqlite3.
---
.../test/cases/serialization_on_binaries_test.rb | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
create mode 100644 activerecord/test/cases/serialization_on_binaries_test.rb
From cf3d61ca563c81adfca8ecf02a8d71f27e133e11 Mon Sep 17 00:00:00 2001
From: Dwayne Litzenberger <dlitz@patientway.com>
Date: Thu, 16 Dec 2010 17:35:30 -0500
Subject: [PATCH] bug 1210: strip table name affixes when dumping schema
This prevents double affixes when invoking db:test:prepare with
table_name_prefix or table_name_suffix.
---
activerecord/lib/active_record/schema_dumper.rb | 21 ++++++++++++++++-----
activerecord/test/cases/schema_dumper_test.rb | 19 +++++++++++++++++++