<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,3 @@
 pkg/*
 .DS_Store
-
+*.gem</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -31,7 +31,6 @@ test/test_error_expectations.rb
 test/test_expectation_builder.rb
 test/test_helper.rb
 test/test_matcher_builder.rb
-test/test_minitest_compatibility.rb
 test/test_modals.rb
 test/test_operator_expectations.rb
 test/test_truth_expectations.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -65,8 +65,8 @@ Hate writing assertions? Need a little behavior-driven love in your tests? Then
       
       # also you can set positive (should) and negative (should not) failure messages
       custom_matcher :be_nil do |receiver, matcher, args|
-        matcher.positive_msg = &quot;Expected #{receiver} to be nil but it wasn't&quot;
-        matcher.negative_msg = &quot;Expected #{receiver} not to be nil but it was&quot;
+        matcher.positive_failure_message = &quot;Expected #{receiver} to be nil but it wasn't&quot;
+        matcher.negative_failure_message = &quot;Expected #{receiver} not to be nil but it was&quot;
         receiver.nil?
       end
     end
@@ -110,7 +110,7 @@ Hate writing assertions? Need a little behavior-driven love in your tests? Then
   		  count = args[0]
   		  something = matcher.msgs[0].name
   		  actual = receiver.send(something).length
-  		  matcher.positive_msg = &quot;Expected #{receiver} to have #{actual} #{something}, but found #{count} &quot;
+  		  matcher.positive_failure_message = &quot;Expected #{receiver} to have #{actual} #{something}, but found #{count} &quot;
   		  actual == count
   		end
     end</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,29 +1,7 @@
 $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
-# Matchy should work with either test/unit or minitest
-module Matchy
-  def self.minitest?
-    # This needs to be better.
-    # How can we decide if we really have a 
-    # suite of MiniTest Tests?
-    # Rails for example defines MiniTest, so only check for
-    # defined?(MiniTest) would be malicious
-    defined?(MiniTest) &amp;&amp; defined?(MiniTest::Assertions) &amp;&amp; 
-        (!defined?(Test::Unit::TestCase) || !(Test::Unit::TestCase &lt; MiniTest::Assertions))
-  end
-  
-  def self.assertions_module
-    minitest? ? MiniTest::Assertions : Test::Unit::Assertions
-  end
-  
-  def self.test_case_class
-    minitest? ? MiniTest::Unit::TestCase : Test::Unit::TestCase
-  end
-end
-
-require 'rubygems'
-require 'test/unit' unless Matchy.minitest?
+require 'test/unit'
 
 require 'matchy/expectation_builder'
 require 'matchy/modals'
@@ -37,18 +15,5 @@ require 'matchy/built_in/truth_expectations'
 require 'matchy/built_in/operator_expectations'
 require 'matchy/built_in/change_expectations'
 
-
-# Hack of Evil.
-# Track the current testcase and 
-# provide it to the operator matchers.
-Matchy.test_case_class.class_eval do
-  alias_method :old_run_method_aliased_by_matchy, :run
-  def run(whatever, *args, &amp;block)
-    $current_test_case = self
-    old_run_method_aliased_by_matchy(whatever, *args, &amp;block)
-  end
-end
-
-Matchy.test_case_class.send(:include, Matchy::Expectations::TestCaseExtensions)
-Matchy.test_case_class.send(:include, Matchy::MatcherBuilder)
-Matchy.test_case_class.send(:extend, Matchy::CustomMatcher)
+Test::Unit::TestCase.send(:include, Matchy::Expectations::TestCaseExtensions)
+include Matchy::CustomMatcher</diff>
      <filename>lib/matchy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,8 +21,8 @@ module Matchy
             when :from        then (before == list[0].args[0]) &amp;&amp; (after == list[1].args[0])
             end
           end
-          matcher.positive_msg = &quot;given block shouldn't alter the block attached to change&quot;
-          matcher.negative_msg = &quot;given block should alter the block attached to change&quot;
+          matcher.positive_failure_message = &quot;given block shouldn't alter the block attached to change&quot;
+          matcher.negative_failure_message = &quot;given block should alter the block attached to change&quot;
           comparison
         end
       end</diff>
      <filename>lib/matchy/built_in/change_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,8 +31,8 @@ module Matchy
       private
       def _clude(sym, obj)
         build_matcher(sym, obj) do |given, matcher, args|
-          matcher.positive_msg = &quot;Expected #{given.inspect} to #{sym} #{args.inspect}.&quot;
-          matcher.negative_msg = &quot;Expected #{given.inspect} to not #{sym} #{args.inspect}.&quot;
+          matcher.positive_failure_message = &quot;Expected #{given.inspect} to #{sym} #{args.inspect}.&quot;
+          matcher.negative_failure_message = &quot;Expected #{given.inspect} to not #{sym} #{args.inspect}.&quot;
           args.inject(true) {|m,o| m &amp;&amp; (given.include?(o) == (sym == :include)) }
         end
       end</diff>
      <filename>lib/matchy/built_in/enumerable_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,14 +21,14 @@ module Matchy
             error = e
           end
           if expected.respond_to?(:ancestors) &amp;&amp; expected.ancestors.include?(Exception)
-            matcher.positive_msg = &quot;Expected #{receiver.inspect} to raise #{expected.name}, &quot; + 
+            matcher.positive_failure_message = &quot;Expected #{receiver.inspect} to raise #{expected.name}, &quot; + 
               (error ? &quot;but #{error.class.name} was raised instead.&quot; : &quot;but none was raised.&quot;)
-            matcher.negative_msg = &quot;Expected #{receiver.inspect} to not raise #{expected.name}.&quot;
+            matcher.negative_failure_message = &quot;Expected #{receiver.inspect} to not raise #{expected.name}.&quot;
             comparison = (raised &amp;&amp; error.class.ancestors.include?(expected))
           else
             message = error ? error.message : &quot;none&quot;
-            matcher.positive_msg = &quot;Expected #{receiver.inspect} to raise error with message matching '#{expected}', but '#{message}' was raised.&quot;
-            matcher.negative_msg = &quot;Expected #{receiver.inspect} to raise error with message not matching '#{expected}', but '#{message}' was raised.&quot;
+            matcher.positive_failure_message = &quot;Expected #{receiver.inspect} to raise error with message matching '#{expected}', but '#{message}' was raised.&quot;
+            matcher.negative_failure_message = &quot;Expected #{receiver.inspect} to raise error with message not matching '#{expected}', but '#{message}' was raised.&quot;
             comparison = (raised &amp;&amp; (expected.kind_of?(Regexp) ? ((error.message =~ expected) ? true : false) : expected == error.message))
           end
           comparison
@@ -55,9 +55,9 @@ module Matchy
             raise e unless e.message =~ /uncaught throw/
             thrown_symbol = e.message.match(/uncaught throw :(.+)/)[1].to_sym
           end
-          matcher.positive_msg = &quot;Expected #{receiver.inspect} to throw :#{expected}, but &quot; +
+          matcher.positive_failure_message = &quot;Expected #{receiver.inspect} to throw :#{expected}, but &quot; +
             &quot;#{thrown_symbol ? ':' + thrown_symbol.to_s + ' was thrown instead' : 'no symbol was thrown'}.&quot;
-          matcher.negative_msg = &quot;Expected #{receiver.inspect} to not throw :#{expected}.&quot;
+          matcher.negative_failure_message = &quot;Expected #{receiver.inspect} to not throw :#{expected}.&quot;
           expected == thrown_symbol
         end
       end      </diff>
      <filename>lib/matchy/built_in/error_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ module Matchy
     #   &quot;hello&quot;.length.should_not == 2
     #
     class OperatorExpectation #&lt; Base
-      include Matchy.assertions_module
+      include Test::Unit::Assertions
            
       def initialize(receiver, match)
         @receiver, @match = receiver, match</diff>
      <filename>lib/matchy/built_in/operator_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,8 +12,8 @@ module Matchy
       def be(*obj)
         build_matcher(:be, obj) do |receiver, matcher, args|
           @receiver, expected = receiver, args[0]
-          matcher.positive_msg = &quot;Expected #{@receiver.inspect} to be #{expected.inspect}.&quot;
-          matcher.negative_msg = &quot;Expected #{@receiver.inspect} to not be #{expected.inspect}.&quot;
+          matcher.positive_failure_message = &quot;Expected #{@receiver.inspect} to be #{expected.inspect}.&quot;
+          matcher.negative_failure_message = &quot;Expected #{@receiver.inspect} to not be #{expected.inspect}.&quot;
           expected == @receiver
         end
       end
@@ -28,8 +28,8 @@ module Matchy
       def be_close(obj, delta = 0.3)
         build_matcher(:be_close, [obj, delta]) do |receiver, matcher, args|
           @receiver, expected, delta = receiver, args[0], args[1]
-          matcher.positive_msg = &quot;Expected #{@receiver.inspect} to be close to #{expected.inspect} (delta: #{delta}).&quot;
-          matcher.negative_msg = &quot;Expected #{@receiver.inspect} to not be close to #{expected.inspect} (delta: #{delta}).&quot;
+          matcher.positive_failure_message = &quot;Expected #{@receiver.inspect} to be close to #{expected.inspect} (delta: #{delta}).&quot;
+          matcher.negative_failure_message = &quot;Expected #{@receiver.inspect} to not be close to #{expected.inspect} (delta: #{delta}).&quot;
           (@receiver - expected).abs &lt; delta
         end
       end
@@ -84,8 +84,8 @@ module Matchy
       def satisfy(*obj)
         build_matcher(:satisfy, obj) do |receiver, matcher, args|
           @receiver, expected = receiver, args[0]
-          matcher.positive_msg = &quot;Expected #{@receiver.inspect} to satisfy given block.&quot;
-          matcher.negative_msg = &quot;Expected #{@receiver.inspect} to not satisfy given block.&quot;
+          matcher.positive_failure_message = &quot;Expected #{@receiver.inspect} to satisfy given block.&quot;
+          matcher.negative_failure_message = &quot;Expected #{@receiver.inspect} to not satisfy given block.&quot;
           expected.call(@receiver) == true
         end
       end
@@ -136,8 +136,8 @@ module Matchy
       def ask_for(sym, option={})
         build_matcher(sym, (option[:with_arg] || [])) do |receiver, matcher, args|
           expected, meth = args[0], (sym.to_s + &quot;?&quot; ).to_sym
-          matcher.positive_msg = &quot;Expected #{receiver.inspect} to return true for #{sym}?, with '#{(expected &amp;&amp; expected.inspect) || 'no args'}'.&quot;
-          matcher.negative_msg = &quot;Expected #{receiver.inspect} to not return true for #{sym}?, with '#{(expected &amp;&amp; expected.inspect) || 'no args'}'.&quot;
+          matcher.positive_failure_message = &quot;Expected #{receiver.inspect} to return true for #{sym}?, with '#{(expected &amp;&amp; expected.inspect) || 'no args'}'.&quot;
+          matcher.negative_failure_message = &quot;Expected #{receiver.inspect} to not return true for #{sym}?, with '#{(expected &amp;&amp; expected.inspect) || 'no args'}'.&quot;
           expected ? receiver.send(meth, expected) : receiver.send(meth)
         end
       end</diff>
      <filename>lib/matchy/built_in/truth_expectations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 module Matchy
-  module CustomMatcher    
+  module CustomMatcher
+    include Matchy::MatcherBuilder
     def custom_matcher(matcher_name, &amp;block)
       define_method matcher_name do |*args|
         build_matcher(matcher_name, args, &amp;block)</diff>
      <filename>lib/matchy/custom_matcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,29 +6,30 @@ module Matchy
       end
       
       body = lambda do |klass|
-        include Matchy.assertions_module
+        include Test::Unit::Assertions
         @matcher_name = matcher_name.to_s
+        
         def self.matcher_name
           @matcher_name
         end
 
-        attr_accessor :positive_msg, :negative_msg, :msgs
+        attr_accessor :positive_failure_message, :negative_failure_message, :msgs
         attr_reader :matcher_name
         
-        def initialize match_block, test_case
+        def initialize(match_block, test_case)
           @match_block, @test_case = match_block, test_case
           @matcher_name = self.class.matcher_name
         end
 
-        def method_missing id, *args, &amp;block
+        def method_missing(id, *args, &amp;block)
           require 'ostruct'
-          (self.msgs ||= []) &lt;&lt; OpenStruct.new( &quot;name&quot; =&gt; id, &quot;args&quot; =&gt; args, &quot;block&quot; =&gt; block ) 
+          (self.msgs ||= []) &lt;&lt; OpenStruct.new(&quot;name&quot; =&gt; id, &quot;args&quot; =&gt; args, &quot;block&quot; =&gt; block)
           self
         end
 
-        def matches? given
-          @positive_msg ||= &quot;Matching with '#{matcher_name}' failed, although it should match.&quot;
-          @negative_msg ||= &quot;Matching with '#{matcher_name}' passed, although it should_not match.&quot;
+        def matches?(given)
+          @positive_failure_message ||= &quot;Matching with '#{matcher_name}' failed, although it should match.&quot;
+          @negative_failure_message ||= &quot;Matching with '#{matcher_name}' passed, although it should_not match.&quot;
           @match_block.call(given, self)
         end
         
@@ -39,9 +40,10 @@ module Matchy
         def pass!(which)
           @test_case.assert true
         end
-        alias_method :failure_message, :positive_msg
-        alias_method :negative_failure_message, :negative_msg
+        alias_method :failure_message, :positive_failure_message
+        alias_method :negative_failure_message, :negative_failure_message
       end
+      
       Class.new(&amp;body).new(match_block, self)
     end
   end</diff>
      <filename>lib/matchy/matcher_builder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,53 +1,26 @@
 Gem::Specification.new do |s|
-  s.name     = &quot;matchy&quot;
-  s.version  = &quot;0.3.1&quot;
-  s.date     = &quot;2009-02-08&quot;
-  s.summary  = &quot;RSpec-esque matchers for use in Test::Unit&quot;
-  s.email    = &quot;mhennemeyer@gmail.com&quot;
-  s.homepage = &quot;http://github.com/mhennemeyer/matchy&quot;
-  s.description = &quot;A 300loc refactoring of Jeremy Mcanally's Matchy. Original Description: Hate writing assertions?  Need a little behavior-driven love in your tests?  Then matchy is for you.&quot;
+  s.name = %q{matchy}
+  s.version = &quot;0.4.0&quot;
+  s.authors = [&quot;Jeremy McAnally&quot;]
+  s.date = %q{2009-03-23}
+  s.description = %q{RSpec-esque matchers for use in Test::Unit}
+  s.email = [&quot;jeremy@entp.com&quot;]
+  s.extra_rdoc_files = [&quot;History.txt&quot;, &quot;License.txt&quot;, &quot;Manifest.txt&quot;, &quot;PostInstall.txt&quot;, &quot;README.rdoc&quot;]
+  s.files = [&quot;History.txt&quot;, &quot;License.txt&quot;, &quot;Manifest.txt&quot;, &quot;PostInstall.txt&quot;, &quot;README.rdoc&quot;, &quot;Rakefile&quot;, &quot;config/hoe.rb&quot;, &quot;config/requirements.rb&quot;, &quot;countloc.rb&quot;, &quot;lib/matchy.rb&quot;, &quot;lib/matchy/built_in/change_expectations.rb&quot;, &quot;lib/matchy/built_in/enumerable_expectations.rb&quot;, &quot;lib/matchy/built_in/error_expectations.rb&quot;, &quot;lib/matchy/built_in/operator_expectations.rb&quot;, &quot;lib/matchy/built_in/truth_expectations.rb&quot;, &quot;lib/matchy/custom_matcher.rb&quot;, &quot;lib/matchy/expectation_builder.rb&quot;, &quot;lib/matchy/matcher_builder.rb&quot;, &quot;lib/matchy/modals.rb&quot;, &quot;lib/matchy/version.rb&quot;, &quot;matchy.gemspec&quot;, &quot;setup.rb&quot;, &quot;tasks/deployment.rake&quot;, &quot;tasks/environment.rake&quot;, &quot;test/all.rb&quot;, &quot;test/ruby1.9.compatibility_tests.rb&quot;, &quot;test/test_change_expectation.rb&quot;, &quot;test/test_custom_matcher.rb&quot;, &quot;test/test_enumerable_expectations.rb&quot;, &quot;test/test_error_expectations.rb&quot;, &quot;test/test_expectation_builder.rb&quot;, &quot;test/test_helper.rb&quot;, &quot;test/test_matcher_builder.rb&quot;, &quot;test/test_modals.rb&quot;, &quot;test/test_operator_expectations.rb&quot;, &quot;test/test_truth_expectations.rb&quot;]
   s.has_rdoc = true
-  s.authors  = [&quot;Jeremy McAnally&quot;, &quot;Matthias Hennemeyer&quot;]
-  s.files    = [
-    &quot;History.txt&quot;, 
-  	&quot;Manifest.txt&quot;, 
-  	&quot;README.rdoc&quot;, 
-  	&quot;Rakefile&quot;, 
-  	&quot;matchy.gemspec&quot;, 
-    &quot;History.txt&quot;,
-    &quot;License.txt&quot;,
-    &quot;Manifest.txt&quot;,
-    &quot;PostInstall.txt&quot;,
-    &quot;Rakefile&quot;,
-    &quot;config/hoe.rb&quot;,
-    &quot;config/requirements.rb&quot;,
-    &quot;lib/matchy.rb&quot;,
-    &quot;lib/matchy/version.rb&quot;,
-    &quot;lib/matchy/expectation_builder.rb&quot;,
-    &quot;lib/matchy/modals.rb&quot;,
-    &quot;lib/matchy/def_matcher.rb&quot;,
-    &quot;lib/matchy/matcher_builder.rb&quot;,
-    &quot;lib/matchy/built_in/enumerable_expectations.rb&quot;,
-    &quot;lib/matchy/built_in/error_expectations.rb&quot;,
-    &quot;lib/matchy/built_in/operator_expectations.rb&quot;,
-    &quot;lib/matchy/built_in/truth_expectations.rb&quot;,
-    &quot;lib/matchy/built_in/change_expectations.rb&quot;,
-    &quot;setup.rb&quot;
-  ]
-  
-  s.test_files = [
-    &quot;test/test_change_expectation.rb&quot;,
-    &quot;test/test_expectation_builder.rb&quot;,
-    &quot;test/test_minitest_compatibility.rb&quot;,
-    &quot;test/test_def_matcher.rb&quot;,
-    &quot;test/test_enumerable_expectations.rb&quot;,
-    &quot;test/test_error_expectations.rb&quot;,
-    &quot;test/test_matcher_builder.rb&quot;,
-    &quot;test/test_operator_expectations.rb&quot;,
-    &quot;test/test_truth_expectations.rb&quot;,
-    &quot;test/test_modals.rb&quot;
-  ]
+  s.homepage = %q{http://matchy.rubyforge.org}
+  s.post_install_message = %q{
+For more information on matchy, see http://matchy.rubyforge.org
 
+NOTE: Change this information in PostInstall.txt 
+You can also delete it if you don't want it.
+
+}
   s.rdoc_options = [&quot;--main&quot;, &quot;README.rdoc&quot;]
   s.extra_rdoc_files = [&quot;History.txt&quot;, &quot;Manifest.txt&quot;, &quot;README.rdoc&quot;]
+  s.require_paths = [&quot;lib&quot;]
+  s.rubyforge_project = %q{matchy}
+  s.rubygems_version = %q{1.3.1}
+  s.summary = %q{RSpec-esque matchers for use in Test::Unit}
+  s.test_files = [&quot;test/test_change_expectation.rb&quot;, &quot;test/test_custom_matcher.rb&quot;, &quot;test/test_enumerable_expectations.rb&quot;, &quot;test/test_error_expectations.rb&quot;, &quot;test/test_expectation_builder.rb&quot;, &quot;test/test_helper.rb&quot;, &quot;test/test_matcher_builder.rb&quot;, &quot;test/test_modals.rb&quot;, &quot;test/test_operator_expectations.rb&quot;, &quot;test/test_truth_expectations.rb&quot;]
 end
\ No newline at end of file</diff>
      <filename>matchy.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -99,8 +99,8 @@ class TestCustomMatcher &lt; Test::Unit::TestCase
   def test_matcher
     self.class.class_eval do
       custom_matcher :be_valid do |receiver, matcher, args|
-        matcher.positive_msg = &quot;Expected to be valid but wasn't&quot;
-        matcher.negative_msg = &quot;Expected to not be valid but was&quot;
+        matcher.positive_failure_message = &quot;Expected to be valid but wasn't&quot;
+        matcher.negative_failure_message = &quot;Expected to not be valid but was&quot;
         receiver.valid?
       end
     end
@@ -124,7 +124,7 @@ class TestCustomMatcher &lt; Test::Unit::TestCase
   		  count = args[0]
   		  something = matcher.msgs[0].name
   		  actual = receiver.send(something).length
-  		  matcher.positive_msg = &quot;Expected #{receiver} to have #{actual} #{something}, but found #{count} &quot;
+  		  matcher.positive_failure_message = &quot;Expected #{receiver} to have #{actual} #{something}, but found #{count} &quot;
   		  actual == count
   		end
     end</diff>
      <filename>test/test_custom_matcher.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>test/test_minitest_compatibility.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>ed51a84ae2ecf0332b8e4b07d6676d9f7f2be66e</id>
    </parent>
  </parents>
  <author>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </author>
  <url>http://github.com/jnunemaker/matchy/commit/cd629cddf9e781635c113b60b4b1ecb47202417b</url>
  <id>cd629cddf9e781635c113b60b4b1ecb47202417b</id>
  <committed-date>2009-03-24T11:17:08-07:00</committed-date>
  <authored-date>2009-03-24T11:17:08-07:00</authored-date>
  <message>Renamed positive_msg and negative_msg to positive_failure_message and negative_failure_message which seems more obvious to me.

Removed minitest support. I don't use minitest and the way it was added to matchy was causing issues with rails.</message>
  <tree>57d71fe72e92786647bdedd4a65d9a7da31125e1</tree>
  <committer>
    <name>John Nunemaker</name>
    <email>nunemaker@gmail.com</email>
  </committer>
</commit>
