<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/recaptcha/merb.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -25,6 +25,14 @@ Or, as a standard rails plugin:
 
   script/plugin install git://github.com/ambethia/recaptcha.git
 
+== Merb Installation
+
+reCAPTCHA can also be used in a Merb application when installed as a gem:
+
+  dependency &quot;alm-recaptcha&quot;, &quot;&gt;=0.2.2.1&quot;, :require_as =&gt; &quot;recaptcha/merb&quot;
+
+Initial Merb compatability funded by ALM Labs.
+
 == Setting up your API Keys
 
 There are two ways to setup your reCAPTCHA API keys once you {obtain}[http://recaptcha.net/whyrecaptcha.html]</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -6,8 +6,9 @@ module Recaptcha
     MAJOR = 0
     MINOR = 2
     TINY  = 2
+    PATCH = 1
 
-    STRING = [MAJOR, MINOR, TINY].join('.')
+    STRING = [MAJOR, MINOR, TINY, PATCH].join('.')
   end
 
   </diff>
      <filename>lib/recaptcha.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,8 @@ module Recaptcha
     def recaptcha_tags(options = {})
       # Default options
       key   = options[:public_key] ||= ENV['RECAPTCHA_PUBLIC_KEY']
-      error = options[:error] ||= flash[:recaptcha_error]
+      raise RecaptchaError, &quot;No public key specified.&quot; unless key
+      error = options[:error] ||= (defined? flash ? flash[:recaptcha_error] : &quot;&quot;)
       uri   = options[:ssl] ? RECAPTCHA_API_SECURE_SERVER : RECAPTCHA_API_SERVER
       html  = &quot;&quot;
       if options[:display]
@@ -35,7 +36,6 @@ module Recaptcha
           html &lt;&lt; %{&lt;/noscript&gt;\n}
         end
       end
-      raise RecaptchaError, &quot;No public key specified.&quot; unless key
       return html
     end # recaptcha_tags
   end # ClientHelper</diff>
      <filename>lib/recaptcha/client_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,11 +3,16 @@ module Recaptcha
     # Your private API can be specified in the +options+ hash or preferably
     # the environment variable +RECAPTCHA_PUBLIC_KEY+.
     def verify_recaptcha(options = {})
-      return true if SKIP_VERIFY_ENV.include? ENV['RAILS_ENV']
-      model = options.is_a?(Hash)? options[:model] : options
-      private_key = options[:private_key] if options.is_a?(Hash)
-      private_key ||= ENV['RECAPTCHA_PRIVATE_KEY']
+      if !options.is_a? Hash
+        options = {:model =&gt; options}
+      end
+      
+      env = options[:env] || ENV['RAILS_ENV']
+      return true if SKIP_VERIFY_ENV.include? env
+      model = options[:model]
+      private_key = options[:private_key] || ENV['RECAPTCHA_PRIVATE_KEY']
       raise RecaptchaError, &quot;No private key specified.&quot; unless private_key
+      
       begin
         recaptcha = nil
         Timeout::timeout(options[:timeout] || 3) do</diff>
      <filename>lib/recaptcha/verify.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,15 +1,15 @@
 # Generated by jeweler
-# DO NOT EDIT THIS FILE
-# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
 # -*- encoding: utf-8 -*-
 
 Gem::Specification.new do |s|
   s.name = %q{recaptcha}
-  s.version = &quot;0.2.2&quot;
+  s.version = &quot;0.2.2.1&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Jason L. Perry&quot;]
-  s.date = %q{2009-10-14}
+  s.date = %q{2009-10-20}
   s.description = %q{This plugin adds helpers for the reCAPTCHA API }
   s.email = %q{jasper@ambethia.com}
   s.extra_rdoc_files = [
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
      &quot;init.rb&quot;,
      &quot;lib/recaptcha.rb&quot;,
      &quot;lib/recaptcha/client_helper.rb&quot;,
+     &quot;lib/recaptcha/merb.rb&quot;,
      &quot;lib/recaptcha/rails.rb&quot;,
      &quot;lib/recaptcha/verify.rb&quot;,
      &quot;recaptcha.gemspec&quot;,
@@ -32,7 +33,7 @@ Gem::Specification.new do |s|
      &quot;test/recaptcha_test.rb&quot;,
      &quot;test/verify_recaptcha_test.rb&quot;
   ]
-  s.homepage = %q{http://github.com/ambethia/recaptcha}
+  s.homepage = %q{http://ambethia.com/recaptcha}
   s.rdoc_options = [&quot;--charset=UTF-8&quot;]
   s.require_paths = [&quot;lib&quot;]
   s.rubygems_version = %q{1.3.5}
@@ -52,3 +53,4 @@ Gem::Specification.new do |s|
   else
   end
 end
+</diff>
      <filename>recaptcha.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c3bc7c49daf68365a0155c10f24eeabcf78b2867</id>
    </parent>
  </parents>
  <author>
    <name>Jamie Macey</name>
    <email>jamie@almlabs.com</email>
  </author>
  <url>http://github.com/almlabs/recaptcha/commit/92097b788ce52f2def1b31b3a514c8a2caa0c747</url>
  <id>92097b788ce52f2def1b31b3a514c8a2caa0c747</id>
  <committed-date>2009-10-23T13:15:21-07:00</committed-date>
  <authored-date>2009-10-20T07:13:46-07:00</authored-date>
  <message>Port merb support from jamie-recaptcha onto latest trunk.</message>
  <tree>a5efd508df7060a0279654b20f03025e45c7d920</tree>
  <committer>
    <name>Jason L Perry</name>
    <email>jasper@ambethia.com</email>
  </committer>
</commit>
