<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,10 @@
 require 'mg'
+require 'spec/rake/spectask'
 
 MG.new('gravtastic.gemspec')
+
+Spec::Rake::SpecTask.new('spec') do |t|
+  t.spec_opts = ['--options','spec/spec.opts']
+  t.spec_files = FileList['spec/**/*.rb']
+  # t.rcov = true
+end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -44,6 +44,14 @@ module Gravtastic
       @gravatar_defaults
     end
 
+    def gravatar_options
+      {
+        :size =&gt; 's',
+        :default =&gt; 'd',
+        :rating =&gt; 'r'
+      }
+    end
+
   end
 
   module InstanceMethods
@@ -62,9 +70,8 @@ module Gravtastic
   private
 
     def url_params_from_hash(hash)
-      '?' + hash.map do |pair|
-        pair[0] = pair[0].to_s[0,1]
-        pair.map{|item| item = CGI::escape(item.to_s) }.join('=')
+      '?' + hash.map do |key, val|
+        [self.class.gravatar_options(key.to_sym) || key.to_s, CGI::escape(val.to_s) ].join('=')
       end.sort.join('&amp;')
     end
 </diff>
      <filename>lib/gravtastic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,9 @@
 $TESTING=true
 $:.push File.join(File.dirname(__FILE__), '..', 'lib')
 
+require 'rubygems'
+require 'spec'
+
 def reload_gravtastic!
   Object.class_eval { remove_const :Gravtastic } if defined? Gravtastic
   require File.join(File.dirname(__FILE__),'../lib/gravtastic')</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c2359437080722a2bb2e7e1b719d28ee5674d921</id>
    </parent>
  </parents>
  <author>
    <name>Chris Lloyd</name>
    <email>christopher.lloyd@gmail.com</email>
  </author>
  <url>http://github.com/chrislloyd/gravtastic/commit/b698d6be215df70318905ac9dde173f3d1c7294c</url>
  <id>b698d6be215df70318905ac9dde173f3d1c7294c</id>
  <committed-date>2009-06-15T00:13:58-07:00</committed-date>
  <authored-date>2009-06-15T00:13:58-07:00</authored-date>
  <message>Refactored things slightly. Also reinstated `rake spec`.</message>
  <tree>ab23b68349166ea92935bd3760394c4986c49645</tree>
  <committer>
    <name>Chris Lloyd</name>
    <email>christopher.lloyd@gmail.com</email>
  </committer>
</commit>
