about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-03 19:23:43 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-03 19:23:43 -0700
commitaf12d387069d017494daa23534fa7f87aea9ff3b (patch)
treed0577fe7486f711d7286595c0ebd4494ef6152f4 /lib
parentb7c6846e317b0f2bfe4807aab34524c2a633947c (diff)
downloadclogger-af12d387069d017494daa23534fa7f87aea9ff3b.tar.gz
This is useful for testing the pure Ruby version in case
clogger_ext is already installed on your system.
Diffstat (limited to 'lib')
-rw-r--r--lib/clogger.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/clogger.rb b/lib/clogger.rb
index 7665992..fbcd220 100644
--- a/lib/clogger.rb
+++ b/lib/clogger.rb
@@ -131,6 +131,7 @@ end
 require 'clogger/format'
 
 begin
+  raise LoadError if ENV['CLOGGER_PURE']
   require 'clogger_ext'
 rescue LoadError
   require 'clogger/pure'