<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 $:.unshift File.dirname(__FILE__)
 %w[rubygems tempfile fileutils net/http yaml open-uri wrap].each { |f| require f }
+RUBY_PLATFORM = PLATFORM unless defined? RUBY_PLATFORM   # Ruby 1.8 compatibility
 
 module Cheat
   extend self
@@ -177,7 +178,7 @@ module Cheat
   end
 
   def cache_dir
-    PLATFORM =~ /win32/ ? win32_cache_dir : File.join(File.expand_path(&quot;~&quot;), &quot;.cheat&quot;)
+    RUBY_PLATFORM =~ /win32/ ? win32_cache_dir : File.join(File.expand_path(&quot;~&quot;), &quot;.cheat&quot;)
   end
 
   def win32_cache_dir
@@ -195,7 +196,7 @@ module Cheat
   end
 
   def run_pager
-    return if PLATFORM =~ /win32/
+    return if RUBY_PLATFORM =~ /win32/
     return unless STDOUT.tty?
 
     read, write = IO.pipe</diff>
      <filename>lib/cheat.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>381864cce1de74108657dd1f4cfaed61f97f5554</id>
    </parent>
  </parents>
  <author>
    <name>lasitha ranatunga</name>
    <email>lasitha.ranatunga@gmail.com</email>
  </author>
  <url>http://github.com/shayarnett/cheat/commit/6e1231bda1444594719e08974a91a0ba92696488</url>
  <id>6e1231bda1444594719e08974a91a0ba92696488</id>
  <committed-date>2009-02-25T17:42:35-08:00</committed-date>
  <authored-date>2009-02-24T03:25:06-08:00</authored-date>
  <message>Ruby 1.9 Compatibility - switched PLATFORM to RUBY_PLATFORM

Signed-off-by: Chris Wanstrath &lt;chris@ozmm.org&gt;</message>
  <tree>ae754543b801201e762f100526ac4e999e164c02</tree>
  <committer>
    <name>Chris Wanstrath</name>
    <email>chris@ozmm.org</email>
  </committer>
</commit>
