From fac515bf384d1cb8fe30a310bb38904b1dc74f58 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 6 Jun 2010 07:42:56 +0000 Subject: CLOGGER_PURE=0 disables the C ext It's unintuitive that merely setting the environment variable to an empty string or zero would be a boolean true. --- lib/clogger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clogger.rb b/lib/clogger.rb index 5b035d9..ca102ba 100644 --- a/lib/clogger.rb +++ b/lib/clogger.rb @@ -151,7 +151,7 @@ end require 'clogger/format' begin - raise LoadError if ENV['CLOGGER_PURE'] + raise LoadError if ENV['CLOGGER_PURE'].to_i != 0 require 'clogger_ext' rescue LoadError require 'clogger/pure' -- cgit v1.2.3-24-ge0c7