Skip to content

Instantly share code, notes, and snippets.

View enricob's full-sized avatar

Enrico Bianco enricob

View GitHub Profile
From 0d20e793a840c492b1305ccd48d90a7ff883aafc Mon Sep 17 00:00:00 2001
From: Enrico Bianco <enricob@gmail.com>
Date: Fri, 10 Jul 2009 14:20:55 -0400
Subject: [PATCH] have_attached_file_matcher receives an instance, not a class, as its subject. Implementation adjusted accordingly
---
.../matchers/have_attached_file_matcher.rb | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/paperclip/matchers/have_attached_file_matcher.rb b/lib/paperclip/matchers/have_attached_file_matcher.rb
From 5f339cea3a179c5ba020420ebb8fe7c95f2053f6 Mon Sep 17 00:00:00 2001
From: Enrico Bianco <enricob@gmail.com>
Date: Fri, 17 Jul 2009 14:21:00 -0400
Subject: [PATCH] Regenerate @active_scaffold_paths even if one of @active_scaffold_overrides, @active_scaffold_custom_paths, or @active_scaffold_frontends is nil
diff --git a/lib/active_scaffold.rb b/lib/active_scaffold.rb
index d23c659..1604f36 100644
--- a/lib/active_scaffold.rb
+++ b/lib/active_scaffold.rb
From 2155a0a9b9dfb0dba10264f650727833fe69f76f Mon Sep 17 00:00:00 2001
From: Enrico Bianco <enricob@gmail.com>
Date: Fri, 17 Jul 2009 15:43:42 -0400
Subject: [PATCH] subject_class fix from have_attached_file_matcher applied to the other matchers
---
.../validate_attachment_content_type_matcher.rb | 6 +++++-
.../validate_attachment_presence_matcher.rb | 8 ++++++--
.../matchers/validate_attachment_size_matcher.rb | 6 +++++-
3 files changed, 16 insertions(+), 4 deletions(-)
From 5527e4093adb37915e017354b56cde22cda666bd Mon Sep 17 00:00:00 2001
From: Enrico Bianco <enricob@gmail.com>
Date: Tue, 1 Sep 2009 14:07:03 -0400
Subject: [PATCH] Remove the search conditions stored in the session when the index action is invoked on the controller.
diff --git a/lib/active_scaffold/actions/export.rb b/lib/active_scaffold/actions/export.rb
index a8f876b..126c725 100755
--- a/lib/active_scaffold/actions/export.rb
+++ b/lib/active_scaffold/actions/export.rb
From 4002d14f96e9659c2909408b7f4c2ab4936ab2ef Mon Sep 17 00:00:00 2001
From: Enrico Bianco <enricob@gmail.com>
Date: Mon, 16 Nov 2009 10:30:37 -0500
Subject: [PATCH] RtTimeoutTest, test_damaged_restart: assert floating point values to be within 1.0e
-6 as opposed to EXACTLY equal
---
test/functional/rt_5_timeout.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
<?xml version="1.0" encoding="utf-8"?>
<person xmlns="http://schemas.xmlislikeviolence.org/person" xmlns:name="http://schemas.xmlislikeviolence.org/person/name" xmlns:sentiment="http://schemas.xmlislikeviolence.org/person/sentiment" xmlns:conversation="http://schemas.xmlislikeviolence.org/person/conversation">
<name>
<name:first-name>Enrico</first-name>
<name:family-name>Bianco</family-name>
<name:middle-name />
<name:alias>logicallysound</name:alias>
</name>
<conversation:statement>
<sentiment:type>angry</sentiment:type>