<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/fleximage/string_patch.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,9 @@ rescue MissingSourceFile =&gt; e
   raise e
 end
 
+# Patch String class for ruby &lt; 1.9
+require 'fleximage/string_patch'
+
 # Apply a few RMagick patches
 require 'fleximage/rmagick_image_patch'
 </diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -380,7 +380,7 @@ module Fleximage
       # uploaded.  Use as a hidden field in your forms to keep an uploaded image when
       # validation fails and the form needs to be redisplayed
       def image_file_temp=(file_name)
-        if !@uploaded_image &amp;&amp; file_name &amp;&amp; file_name.any?
+        if !@uploaded_image &amp;&amp; file_name &amp;&amp; file_name.present?
           @image_file_temp = file_name
           file_path = &quot;#{RAILS_ROOT}/tmp/fleximage/#{file_name}&quot;
           
@@ -445,7 +445,7 @@ module Fleximage
         # Load the image from disk
         if self.class.has_store?
           if self.class.db_store?
-            if image_file_data &amp;&amp; image_file_data.any?
+            if image_file_data &amp;&amp; image_file_data.present?
               # Load the image from the database column
               @output_image = Magick::Image.from_blob(image_file_data).first
             else
@@ -502,7 +502,7 @@ module Fleximage
       
       # Execute image presence and validity validations.
       def validate_image #:nodoc:
-        field_name = (@image_file_url &amp;&amp; @image_file_url.any?) ? :image_file_url : :image_file
+        field_name = (@image_file_url &amp;&amp; @image_file_url.present?) ? :image_file_url : :image_file
         
         # Could not read the file as an image
         if @invalid_image</diff>
      <filename>lib/fleximage/model.rb</filename>
    </modified>
    <modified>
      <diff>@@ -87,8 +87,10 @@ module Fleximage
           # adjust color to proper bit depth
           if Magick::QuantumDepth != 8
             max = case Magick::QuantumDepth
-              when 16: 65_535
-              when 32: 4_294_967_295
+            when 16
+              65_535
+            when 32
+              4_294_967_295
             end
             
             args.map! do |value|</diff>
      <filename>lib/fleximage/operator/base.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5952e2afcaef6520defb72f902738969c482bb05</id>
    </parent>
  </parents>
  <author>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </author>
  <url>http://github.com/Squeegy/fleximage/commit/3339e86932dc674a3bbf86aab0006f8433a86b7a</url>
  <id>3339e86932dc674a3bbf86aab0006f8433a86b7a</id>
  <committed-date>2009-09-17T00:04:08-07:00</committed-date>
  <authored-date>2009-09-17T00:04:08-07:00</authored-date>
  <message>Some minor tweaks for ruby 1.9</message>
  <tree>8cdf10a818f732874f51e48fb50c8e996b275707</tree>
  <committer>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </committer>
</commit>
