<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,11 +8,6 @@ require 'mini_magick'
 desc 'Default: run unit tests.'
 task :default =&gt; :test
 
-desc 'Clean generated files.'
-task :clean =&gt; :clobber_rdoc do
-  rm FileList['test/output/*.png']
-end
-
 desc 'Test the mini_magick plugin.'
 Rake::TestTask.new(:test) do |t|
   t.libs &lt;&lt; 'lib'
@@ -30,11 +25,15 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.rdoc_files.include('lib/**/*.rb')
 end
 
-desc 'Update gemspec.'
-task :update_gemspec =&gt; :clean do
-  files = `git-ls-files`.split
-  data = File.read('mini_magick.gemspec')
-  data.sub!(/^  s.version = .*$/, &quot;  s.version = #{MiniMagick::VERSION.inspect}&quot;)
-  data.sub!(/^  s.files = .*$/, &quot;  s.files = %w(#{files.join(' ')})&quot;)
-  open('mini_magick.gemspec', 'w'){|f| f.write(data)}
-end
+begin
+  require 'jeweler'
+  Jeweler::Tasks.new do |gemspec|
+    gemspec.name = &quot;mini_magick&quot;
+    gemspec.summary = &quot;Manipulate images with minimal use of memory.&quot;
+    gemspec.email = &quot;probablycorey@gmail.com&quot;
+    gemspec.homepage = &quot;http://github.com/probablycorey/mini_magick&quot;
+    gemspec.authors = [&quot;Corey Johnson&quot;]
+  end
+rescue LoadError
+  puts &quot;Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com&quot;
+end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-0.0.0
+1.2.5
\ No newline at end of file</diff>
      <filename>VERSION</filename>
    </modified>
    <modified>
      <diff>@@ -8,8 +8,6 @@ require File.join(File.dirname(__FILE__), '/image_temp_file')
 module MiniMagick
   class MiniMagickError &lt; RuntimeError; end
 
-  VERSION = '1.2.5'
-
   class Image
     attr :path
     attr :tempfile
@@ -87,13 +85,13 @@ module MiniMagick
 
       old_path = @path.dup
       @path.sub!(/(\.\w+)?$/, &quot;.#{format}&quot;)
-      File.unlink(old_path) unless old_path == @path
+      File.delete(old_path) unless old_path == @path
 
       unless File.exists?(@path)
         begin
           FileUtils.copy_file(@path.sub(&quot;.#{format}&quot;, &quot;-#{page}.#{format}&quot;), @path)
-        rescue =&gt; ex
-          raise MiniMagickError, &quot;Unable to format to #{format}; #{ex}&quot; unless File.exist?(@path)
+        rescue e
+          raise MiniMagickError, &quot;Unable to format to #{format}; #{e}&quot; unless File.exist?(@path)
         end
       end
     ensure
@@ -143,9 +141,13 @@ module MiniMagick
     end
 
     def run_command(command, *args)
-      args.collect! do |arg|
-        # values quoted because they can contain characters like '&gt;', but don't quote switches
-        arg =~ /^\+|\-/) ? %|&quot;#{arg}&quot;| : arg.to_s
+      args.collect! do |arg|        
+        # args can contain characters like '&gt;' so we must escape them, but don't quote switches
+        if arg !~ /^\+|\-/
+          &quot;\&quot;#{arg}\&quot;&quot;
+        else
+          arg.to_s
+        end
       end
 
       command = &quot;#{command} #{args.join(' ')}&quot;</diff>
      <filename>lib/mini_magick.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,18 +1,52 @@
-Gem::Specification.new do |s|
-  s.platform = Gem::Platform::RUBY
-  s.name = 'mini_magick'
-  s.version = &quot;1.5&quot;
-  s.summary = &quot;Manipulate images with minimal use of memory.&quot;
-  s.description = %q{Uses command-line ImageMagick tools to resize, rotate, and mogrify images.}
+# -*- encoding: utf-8 -*-
 
-  s.author = &quot;Corey Johnson&quot;
-  s.email = &quot;probablycorey@gmail.com&quot;
-  s.rubyforge_project = 'mini_magick'
-  s.homepage = &quot;http://github.com/probablycorey/mini_magick&quot;
+Gem::Specification.new do |s|
+  s.name = %q{mini_magick}
+  s.version = &quot;1.2.5&quot;
 
+  s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
+  s.authors = [&quot;Corey Johnson&quot;]
+  s.date = %q{2009-05-27}
+  s.email = %q{probablycorey@gmail.com}
+  s.extra_rdoc_files = [
+    &quot;README.rdoc&quot;
+  ]
+  s.files = [
+    &quot;MIT-LICENSE&quot;,
+     &quot;README.rdoc&quot;,
+     &quot;Rakefile&quot;,
+     &quot;VERSION&quot;,
+     &quot;lib/image_temp_file.rb&quot;,
+     &quot;lib/mini_magick.rb&quot;,
+     &quot;test/actually_a_gif.jpg&quot;,
+     &quot;test/animation.gif&quot;,
+     &quot;test/command_builder_test.rb&quot;,
+     &quot;test/image_temp_file_test.rb&quot;,
+     &quot;test/image_test.rb&quot;,
+     &quot;test/leaves.tiff&quot;,
+     &quot;test/not_an_image.php&quot;,
+     &quot;test/simple.gif&quot;,
+     &quot;test/trogdor.jpg&quot;
+  ]
   s.has_rdoc = true
-  s.requirements &lt;&lt; 'none'
-  s.require_path = 'lib'
+  s.homepage = %q{http://github.com/probablycorey/mini_magick}
+  s.rdoc_options = [&quot;--charset=UTF-8&quot;]
+  s.require_paths = [&quot;lib&quot;]
+  s.rubygems_version = %q{1.3.1}
+  s.summary = %q{Manipulate images with minimal use of memory.}
+  s.test_files = [
+    &quot;test/command_builder_test.rb&quot;,
+     &quot;test/image_temp_file_test.rb&quot;,
+     &quot;test/image_test.rb&quot;
+  ]
+
+  if s.respond_to? :specification_version then
+    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+    s.specification_version = 2
 
-  s.files = %w(.gitignore MIT-LICENSE README.rdoc Rakefile lib/image_temp_file.rb lib/mini_magick.rb mini_magick.gemspec test/actually_a_gif.jpg test/animation.gif test/command_builder_test.rb test/image_temp_file_test.rb test/image_test.rb test/leaves.tiff test/not_an_image.php test/simple.gif test/trogdor.jpg)
+    if Gem::Version.new(Gem::RubyGemsVersion) &gt;= Gem::Version.new('1.2.0') then
+    else
+    end
+  else
+  end
 end</diff>
      <filename>mini_magick.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>591f963f0d4ef5761bce880256c3d87a9623b6f3</id>
    </parent>
  </parents>
  <author>
    <name>Corey Johnson</name>
    <email>probablycorey@gmail.com</email>
  </author>
  <url>http://github.com/probablycorey/mini_magick/commit/4956b901514a30056c8a8f1befb65594cb64a0e3</url>
  <id>4956b901514a30056c8a8f1befb65594cb64a0e3</id>
  <committed-date>2009-05-27T10:08:15-07:00</committed-date>
  <authored-date>2009-05-27T10:08:15-07:00</authored-date>
  <message>added jewler support</message>
  <tree>36731e9811e2ab4e8655fa8f42df401033ae210e</tree>
  <committer>
    <name>Corey Johnson</name>
    <email>probablycorey@gmail.com</email>
  </committer>
</commit>
