summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/activesupport/files/as_clean_logger_rb-fixed.patch')
-rw-r--r--dev-ruby/activesupport/files/as_clean_logger_rb-fixed.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-ruby/activesupport/files/as_clean_logger_rb-fixed.patch b/dev-ruby/activesupport/files/as_clean_logger_rb-fixed.patch
new file mode 100644
index 000000000000..b98f411fd5a1
--- /dev/null
+++ b/dev-ruby/activesupport/files/as_clean_logger_rb-fixed.patch
@@ -0,0 +1,13 @@
+--- activesupport-1.1.1/lib/active_support/clean_logger.rb.orig 2005-09-21 00:31:08.000000000 -0700
++++ activesupport-1.1.1/lib/active_support/clean_logger.rb 2005-09-21 00:45:36.000000000 -0700
+@@ -10,7 +10,9 @@
+ end
+
+ private
+- remove_const "Format"
++ if const_defined?(:Format) # Not defined in Ruby 1.8.3
++ remove_const "Format"
++ end
+ Format = "%s\n"
+ def format_message(severity, timestamp, msg, progname)
+ Format % [msg]