<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/unit/operator_base_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -17,25 +17,25 @@ module Fleximage
     # The image to be manipulated by operators.
     attr_accessor :image
     
-    # Create a new image operator proxy.  Just provide the name of the image
+    # Create a new image operator proxy.
     def initialize(image, model_obj)
       @image = image
       @model = model_obj
     end
     
     # A call to an unknown method will look for an Operator by that method's name.
-    # If it finds one, it will execute that operator, otherwise it will simply call super for the
-    # default method missing behavior.
+    # If it finds one, it will execute that operator.
     def method_missing(method_name, *args)
       # Find the operator class
-      operator_class = &quot;Fleximage::Operator::#{method_name.to_s.camelcase}&quot;.constantize
+      class_name = method_name.to_s.camelcase
+      operator_class = &quot;Fleximage::Operator::#{class_name}&quot;.constantize
       
       # Execute the operator
       @image = operator_class.new(self, @image, @model).execute(*args)
     
     rescue NameError =&gt; e
-      if e.to_s =~ /uninitialized constant Fleximage::Operator::#{method_name.to_s.camelcase}/
-        raise OepratorNotFound, &quot;No correspoding operator found for the method \&quot;#{method_name}\&quot;&quot;
+      if e.to_s =~ /uninitialized constant Fleximage::Operator::#{class_name}/
+        raise OepratorNotFound, &quot;No operator Fleximage::Operator::#{class_name} found for the method \&quot;#{method_name}\&quot;&quot;
       else
         raise e
       end</diff>
      <filename>lib/fleximage/image_proxy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,10 @@
 module Fleximage
   module Operator
     
-    class BadOperatorResult &lt; RuntimeError #:nodoc:
+    class BadOperatorResult &lt; Exception #:nodoc:
+    end
+    
+    class OperationNotImplemented &lt; Exception #:nodoc:
     end
     
     # The Operator::Base class is what all other Operator classes inherit from.
@@ -39,7 +42,7 @@ module Fleximage
       # Perform the operation.  Override this method in your Operator::Base subclasses
       # in order to write your own image operators.
       def operate(*args)
-        raise &quot;Override this method in your own subclass.&quot;
+        raise OperationNotImplemented, &quot;Override this method in your own subclass.&quot;
       end
       
       # ---</diff>
      <filename>lib/fleximage/operator/base.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1e45f1e75cb4297bfe5db13084be614c8217fc43</id>
    </parent>
  </parents>
  <author>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </author>
  <url>http://github.com/Squeegy/fleximage/commit/371b930be0ae30dd1b4c911bb1ece4a3cd0ece57</url>
  <id>371b930be0ae30dd1b4c911bb1ece4a3cd0ece57</id>
  <committed-date>2008-04-21T11:09:52-07:00</committed-date>
  <authored-date>2008-04-21T11:09:52-07:00</authored-date>
  <message>Added Fleximage::Operator::Base tests, as well as some slight cleanup to Fleximage::ImageProxy</message>
  <tree>f358b92fefa380d9e80383cc09968718e2583278</tree>
  <committer>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </committer>
</commit>
