<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-$LOAD_PATH &lt;&lt; File.join(File.dirname(__FILE__), '..', 'lib')   
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
 require &quot;prawn&quot;        
 require &quot;benchmark&quot;    
 </diff>
      <filename>bench/afm_text_bench.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-$LOAD_PATH &lt;&lt; File.join(File.dirname(__FILE__), '..', 'lib')   
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) 
 require &quot;prawn&quot;        
 require &quot;benchmark&quot;   
 </diff>
      <filename>bench/png_type_6.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,24 @@
 # encoding: utf-8
 
-require &quot;rubygems&quot;
-require &quot;fastercsv&quot;
 require &quot;benchmark&quot;
 
-$LOAD_PATH &lt;&lt; File.join(File.dirname(__FILE__), '..', 'lib')
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
 require &quot;prawn&quot;
 
-csv_data = FasterCSV.read(&quot;#{Prawn::BASEDIR}/examples/currency.csv&quot;) * 
-  (ARGV.first || 1).to_i
+csv_data = nil
+
+ruby_18 do
+  require &quot;rubygems&quot;
+  require &quot;fastercsv&quot;
+  csv_data = FasterCSV.read(&quot;#{Prawn::BASEDIR}/examples/table/currency.csv&quot;) * 
+    (ARGV.first || 1).to_i
+end
+
+ruby_19 do
+  require &quot;csv&quot;
+  csv_data = CSV.read(&quot;#{Prawn::BASEDIR}/examples/table/currency.csv&quot;) * 
+    (ARGV.first || 1).to_i
+end
 
 doc = Prawn::Document.new
 </diff>
      <filename>bench/table_bench.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-$LOAD_PATH &lt;&lt; File.join(File.dirname(__FILE__), '..', 'lib')   
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) 
 require &quot;prawn&quot;        
 require &quot;benchmark&quot;    
 </diff>
      <filename>bench/ttf_text_bench.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ if RUBY_VERSION &lt; &quot;1.9&quot;
   end
   
   class File  #:nodoc:  
-    def self.read_binary(file) 
+    def self.binread(file) 
       File.open(file,&quot;rb&quot;) { |f| f.read } 
     end
   end
@@ -27,13 +27,7 @@ if RUBY_VERSION &lt; &quot;1.9&quot;
     false
   end
      
-else
-  
-  class File  #:nodoc:  
-    def self.read_binary(file) 
-      File.open(file,&quot;rb:BINARY&quot;) { |f| f.read } 
-    end
-  end  
+else  
  
   def ruby_18  #:nodoc:  
     false  </diff>
      <filename>lib/prawn/compatibility.rb</filename>
    </modified>
    <modified>
      <diff>@@ -62,7 +62,7 @@ module Prawn
         image_content = file.read
       else      
         raise ArgumentError, &quot;#{file} not found&quot; unless File.file?(file)  
-        image_content =  File.read_binary(file)
+        image_content =  File.binread(file)
       end
       
       image_sha1 = Digest::SHA1.hexdigest(image_content)</diff>
      <filename>lib/prawn/images.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ describe &quot;When reading a greyscale PNG file (color type 0)&quot; do
   before(:each) do
     @filename = &quot;#{Prawn::BASEDIR}/data/images/web-links.png&quot;
     @data_filename = &quot;#{Prawn::BASEDIR}/data/images/web-links.dat&quot;
-    @img_data = File.read_binary(@filename) 
+    @img_data = File.binread(@filename) 
   end
 
   it &quot;should read the attributes from the header chunk correctly&quot; do
@@ -31,7 +31,7 @@ describe &quot;When reading a greyscale PNG file (color type 0)&quot; do
 
   it &quot;should read the image data chunk correctly&quot; do
     png = Prawn::Images::PNG.new(@img_data)
-    data = File.read_binary(@data_filename)
+    data = File.binread(@data_filename)
     png.img_data.should == data
   end
 end
@@ -40,7 +40,7 @@ describe &quot;When reading a greyscale PNG file with transparency (color type 0)&quot; do
 
   before(:each) do
     @filename = &quot;#{Prawn::BASEDIR}/data/images/ruport_type0.png&quot;
-    @img_data = File.read_binary(@filename)
+    @img_data = File.binread(@filename)
   end
 
   # In a greyscale type 0 PNG image, the tRNS chunk should contain a single value
@@ -58,7 +58,7 @@ describe &quot;When reading an RGB PNG file (color type 2)&quot; do
   before(:each) do
     @filename = &quot;#{Prawn::BASEDIR}/data/images/ruport.png&quot;
     @data_filename = &quot;#{Prawn::BASEDIR}/data/images/ruport_data.dat&quot;
-    @img_data = File.read_binary(@filename)
+    @img_data = File.binread(@filename)
   end
 
   it &quot;should read the attributes from the header chunk correctly&quot; do
@@ -75,7 +75,7 @@ describe &quot;When reading an RGB PNG file (color type 2)&quot; do
 
   it &quot;should read the image data chunk correctly&quot; do
     png = Prawn::Images::PNG.new(@img_data)
-    data = File.read_binary(@data_filename)
+    data = File.binread(@data_filename)
     png.img_data.should == data
   end
 end
@@ -84,7 +84,7 @@ describe &quot;When reading an RGB PNG file with transparency (color type 2)&quot; do
 
   before(:each) do
     @filename = &quot;#{Prawn::BASEDIR}/data/images/arrow2.png&quot;
-    @img_data = File.read_binary(@filename)
+    @img_data = File.binread(@filename)
   end
 
   # In a RGB type 2 PNG image, the tRNS chunk should contain a single RGB value
@@ -105,7 +105,7 @@ describe &quot;When reading an indexed color PNG file (color type 3)&quot; do
   before(:each) do
     @filename = &quot;#{Prawn::BASEDIR}/data/images/rails.png&quot;
     @data_filename = &quot;#{Prawn::BASEDIR}/data/images/rails.dat&quot;
-    @img_data = File.read_binary(@filename) 
+    @img_data = File.binread(@filename) 
   end
 
   it &quot;should read the attributes from the header chunk correctly&quot; do
@@ -122,7 +122,7 @@ describe &quot;When reading an indexed color PNG file (color type 3)&quot; do
 
   it &quot;should read the image data chunk correctly&quot; do
     png = Prawn::Images::PNG.new(@img_data)
-    data = File.read_binary(@data_filename)
+    data = File.binread(@data_filename)
     png.img_data.should == data
   end
 end
@@ -133,7 +133,7 @@ describe &quot;When reading a greyscale+alpha PNG file (color type 4)&quot; do
     @filename = &quot;#{Prawn::BASEDIR}/data/images/page_white_text.png&quot;
     @data_filename = &quot;#{Prawn::BASEDIR}/data/images/page_white_text.dat&quot;
     @alpha_data_filename = &quot;#{Prawn::BASEDIR}/data/images/page_white_text.alpha&quot;
-    @img_data = File.read_binary(@filename)
+    @img_data = File.binread(@filename)
   end
 
   it &quot;should read the attributes from the header chunk correctly&quot; do
@@ -150,13 +150,13 @@ describe &quot;When reading a greyscale+alpha PNG file (color type 4)&quot; do
 
   it &quot;should correctly return the raw image data (with no alpha channel) from the image data chunk&quot; do
     png = Prawn::Images::PNG.new(@img_data)
-    data = File.read_binary(@data_filename)
+    data = File.binread(@data_filename)
     png.img_data.should == data
   end
 
   it &quot;should correctly extract the alpha channel data from the image data chunk&quot; do
     png = Prawn::Images::PNG.new(@img_data)
-    data = File.read_binary(@alpha_data_filename) 
+    data = File.binread(@alpha_data_filename) 
     png.alpha_channel.should == data
   end
 end
@@ -167,7 +167,7 @@ describe &quot;When reading an RGB+alpha PNG file (color type 6)&quot; do
     @filename = &quot;#{Prawn::BASEDIR}/data/images/dice.png&quot;
     @data_filename = &quot;#{Prawn::BASEDIR}/data/images/dice.dat&quot;
     @alpha_data_filename = &quot;#{Prawn::BASEDIR}/data/images/dice.alpha&quot;
-    @img_data = File.read_binary(@filename)  
+    @img_data = File.binread(@filename)  
   end
 
   it &quot;should read the attributes from the header chunk correctly&quot; do
@@ -184,13 +184,13 @@ describe &quot;When reading an RGB+alpha PNG file (color type 6)&quot; do
 
   it &quot;should correctly return the raw image data (with no alpha channel) from the image data chunk&quot; do
     png = Prawn::Images::PNG.new(@img_data)
-    data = File.read_binary(@data_filename)   
+    data = File.binread(@data_filename)   
     png.img_data.should == data
   end
 
   it &quot;should correctly extract the alpha channel data from the image data chunk&quot; do
     png = Prawn::Images::PNG.new(@img_data)
-    data = File.read_binary(@alpha_data_filename)
+    data = File.binread(@alpha_data_filename)
     png.alpha_channel.should == data
   end
 end</diff>
      <filename>spec/png_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>50a21884cd1fbb32c2e53a76753c357d7b9a9eb1</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/yob/prawn/commit/a98d99c276dbdea2bbabbe87948830408ec776f8</url>
  <id>a98d99c276dbdea2bbabbe87948830408ec776f8</id>
  <committed-date>2008-12-15T23:46:00-08:00</committed-date>
  <authored-date>2008-12-15T23:46:00-08:00</authored-date>
  <message>Rock the new binread hotness</message>
  <tree>e7f3dfc102c0f38afec4aceb98acaf48f2fa31c6</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
