<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README.textile</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,15 @@
+2008-10-22 Gerrit Keiser and Tricycle Developments
+  * Added option to not delete images on destroy
+  * Made thumbnail name separator configurable
+  * Added height/width methods to storage
+  * Allowed regenerating only one thumbnail size
+  * Made has_image column configurable
+  * Added some compatibility with attachment_fu
+  * General refactorings and overall code improvement
+
+2008-10-22 Norman Clarke &lt;norman@randomba.org&gt;
+  * Documentation improvements and minor code cleanups.
+
 2008-10-09 Dima Sabanin &lt;sdmitry@gmail.com&gt;
   * Fixed display of images with special symbols in the name,
     like '2777-nipple-+-apple-napple.jpg'. + is reserved by HTTP.</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -42,7 +42,7 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.rdoc_dir = 'rdoc'
   rdoc.title    = 'HasImage'
   rdoc.options &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source' &lt;&lt; '-c UTF-8'
-  rdoc.rdoc_files.include('README')
+  rdoc.rdoc_files.include('README.textile')
   rdoc.rdoc_files.include('FAQ')
   rdoc.rdoc_files.include('CHANGELOG')
   rdoc.rdoc_files.include('lib/**/*.rb')</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
     &quot;CHANGELOG&quot;,
     &quot;FAQ&quot;,
     &quot;MIT-LICENSE&quot;,
-    &quot;README&quot;,
+    &quot;README.textile&quot;,
     &quot;init.rb&quot;,
     &quot;lib/has_image.rb&quot;,
     &quot;lib/has_image/processor.rb&quot;,
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
     &quot;test/processor_test.rb&quot;,
     &quot;test/storage_test.rb&quot;,
   ]
-  s.rdoc_options = [&quot;--main&quot;, &quot;README&quot;, &quot;--inline-source&quot;, &quot;--line-numbers&quot;]
-  s.extra_rdoc_files = [&quot;README&quot;, &quot;CHANGELOG&quot;, &quot;FAQ&quot;]
+  s.rdoc_options = [&quot;--main&quot;, &quot;--inline-source&quot;, &quot;--line-numbers&quot;]
+  # s.extra_rdoc_files = [&quot;CHANGELOG&quot;, &quot;FAQ&quot;]
 
 end</diff>
      <filename>has_image.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,75 @@ require 'has_image/processor'
 require 'has_image/storage'
 require 'has_image/view_helpers'
 
+# = HasImage
+#
+# HasImage allows you to very easily attach images to a Rails model. For some
+# more basic info on what it does, please see its {project
+# page}[http://github.com/norman/has_image] on GitHub.
+#
+# Install HasImage by using Ruby Gems:
+#
+#  sudo gem install has_image
+#
+# To use HasImage in your project, you must add a varchar column to your
+# model. By default, this column should be named &quot;has_image_file,&quot; though you
+# may easily change this. For option defaults, see
+# HasImage#default_options_for and ClassMethods#has_image.
+#
+# == Basic Examples
+##
+# Uses all default options. This works, but is likely not what you need.
+#
+#  class Photo &lt; ActiveRecord::Base
+#    has_image
+#  end
+#
+# Resize the uploaded image to 800x800 and create a 150x150 thumbnail.
+#
+#   has_image :resize_to &quot;800x800&quot;, :thumbnails =&gt; {:square =&gt; &quot;150x150&quot;}
+#
+# Resize the image and set a max file size to 4 megabytes.
+#
+#   has_image :resize_to &quot;100x150&quot;, :max_size =&gt; 4.megabytes
+#
+# == Some slightly more advanced examples
+#
+# === Localizing HasImage
+#
+#  has_image :invalid_image_message =&gt; &quot;No se puede procesar la imagen.&quot;
+#
+# === Using has_image with Capistrano
+#
+# When deploying using Capistrano, you will likely want to keep images
+# under a &quot;system&quot; directory so that newly deployed versions have access
+# to them:
+#
+#   has_image :resize_to =&gt; &quot;150x150&quot;,
+#     :thumbnails =&gt; {
+#       :square =&gt; &quot;75x75&quot;,
+#     },
+#     :base_path =&gt; File.join(Rails.root, 'public', 'system')
+#
+# === Testing with HasImage:
+#
+# If you want your tests to actually run the image processing, you should
+# make sure your tests write the image files somewhere outside your public
+# directory. Add something like this to your config/environments/test.rb:
+#
+#   config.after_initialize do
+#     MyClass.has_image_options[:base_path] = File.join(RAILS_ROOT, &quot;tmp&quot;) 
+#   end
+#
+# If you want to stub out calls to has_image so that your tests don't do
+# the (slow) image processing, here's an example using Test::Unit and
+# Mocha:
+#
+#   def setup
+#     Photo.any_instance.stubs(:image_data=).returns(true)
+#     Photo.any_instance.stubs(:install_images).returns(true)
+#     Photo.any_instance.stubs(:image_data_valid?).returns(true)
+#   end
+#
 module HasImage
 
   class ProcessorError &lt; StandardError ; end
@@ -72,14 +141,7 @@ module HasImage
   end
 
   module ClassMethods
-    # == Using HasImage
-    #
-    # To use HasImage with a Rails model, all you have to do is add a column
-    # named &quot;has_image_file.&quot; For configuration defaults, you might want to
-    # take a look at the default options specified in
-    # HasImage#default_options_for. The different setting options are
-    # described below.
-    #    
+
     # === Options
     #
     # *  &lt;tt&gt;:resize_to&lt;/tt&gt; - Dimensions to resize to. This should be an ImageMagick {geometry string}[http://www.imagemagick.org/script/command-line-options.php#resize]. Fixed sizes are recommended.
@@ -95,51 +157,6 @@ module HasImage
     # *  &lt;tt&gt;:invalid_image_message&lt;/tt&gt; - The message that will be shown when the image data can't be processed.
     # *  &lt;tt&gt;:image_too_small_message&lt;/tt&gt; - The message that will be shown when the image file is too small. You should ideally set this to something that tells the user what the minimum is.
     # *  &lt;tt&gt;:image_too_big_message&lt;/tt&gt; - The message that will be shown when the image file is too big. You should ideally set this to something that tells the user what the maximum is.
-    #
-    # === Basic Examples
-    #
-    #   has_image # uses all default options
-    #   has_image :resize_to &quot;800x800&quot;, :thumbnails =&gt; {:square =&gt; &quot;150x150&quot;}
-    #   has_image :resize_to &quot;100x150&quot;, :max_size =&gt; 500.kilobytes
-    #
-    # === Some slightly more advanced examples
-    #
-    # ==== Localizing HasImage
-    #
-    #  has_image :invalid_image_message =&gt; &quot;No se puede procesar la imagen.&quot;
-    #
-    # ==== Using has_image with Capistrano
-    #
-    # When deploying using Capistrano, you will likely want to keep images
-    # under a &quot;system&quot; directory so that newly deployed versions have access
-    # to them:
-    #
-    #   has_image :resize_to =&gt; &quot;150x150&quot;,
-    #     :thumbnails =&gt; {
-    #       :square =&gt; &quot;75x75&quot;,
-    #     },
-    #     :base_path =&gt; File.join(Rails.root, 'public', 'system')
-    #
-    # ==== Testing with HasImage:
-    #
-    # If you want your tests to actually run the image processing, you should
-    # make sure your tests write the image files somewhere outside your public
-    # directory. Add something like this to your config/environments/test.rb:
-    #
-    #   config.after_initialize do
-    #     MyClass.has_image_options[:base_path] = File.join(RAILS_ROOT, &quot;tmp&quot;) 
-    #   end
-    #
-    # If you want to stub out calls to has_image so that your tests don't do
-    # the (slow) image processing, here's an example using Test::Unit and
-    # Mocha:
-    #
-    #   def setup
-    #     Photo.any_instance.stubs(:image_data=).returns(true)
-    #     Photo.any_instance.stubs(:install_images).returns(true)
-    #     Photo.any_instance.stubs(:image_data_valid?).returns(true)
-    #   end
-    #
     def has_image(options = {})
       options.assert_valid_keys(HasImage.default_options_for(self).keys)
       options = HasImage.default_options_for(self).merge(options)</diff>
      <filename>lib/has_image.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>README</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>7245d7024a48e08e641e8b6c2253d561e6cbd25f</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </author>
  <url>http://github.com/norman/has_image/commit/9942b5c008aaa2b388935668e194a560552f3c99</url>
  <id>9942b5c008aaa2b388935668e194a560552f3c99</id>
  <committed-date>2008-10-22T08:13:34-07:00</committed-date>
  <authored-date>2008-10-22T08:13:34-07:00</authored-date>
  <message>Improved documentation.</message>
  <tree>3cd34fdb8cf0f28f6156fc1485f8ec03ca77534d</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </committer>
</commit>
