<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,3 @@
-# Based on the merb-core Rakefile.  Thanks.
-
 require &quot;rake&quot;
 require &quot;rake/clean&quot;
 require &quot;rake/gempackagetask&quot;
@@ -24,6 +22,7 @@ begin
     s.description = s.summary
     s.authors = [&quot;Tyler McMullen&quot;]
     s.add_dependency 'xmpp4r'
+    s.files = FileList[&quot;[A-Z]*.*&quot;, &quot;{bin,generators,lib,test,spec,examples}/**/*&quot;]
   end
 rescue LoadError
   puts &quot;Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
 --- 
-patch: 1
+patch: 2
 major: 0
 minor: 6</diff>
      <filename>VERSION.yml</filename>
    </modified>
    <modified>
      <diff>@@ -102,7 +102,9 @@ class Uppercut
           @roster.accept_subscription(presence.from) 
           dispatch_presence(item, presence)
         end
-        @roster.add_subscription_callback { |item, presence| dispatch_presence(item, presence) }
+        @roster.add_subscription_callback do |item, presence|
+          dispatch_presence(item, presence)
+        end
         sleep
       }
     end
@@ -129,7 +131,8 @@ class Uppercut
     private
 
     def dispatch(msg)
-      block = @redirects[msg.from].respond_to?(:shift) &amp;&amp; @redirects[msg.from].shift
+      bare_from = msg.from.bare
+      block = @redirects[bare_from].respond_to?(:shift) &amp;&amp; @redirects[bare_from].shift
       return block[msg.body] if block
 
       self.methods.grep(/^__uc/).sort.detect { |m| send(m,msg) != :no_match }</diff>
      <filename>lib/uppercut/agent.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,7 @@ class Uppercut
     #       end
     #     end
     def wait_for(&amp;block)
-      @base.redirect_from(@to,&amp;block)
+      @base.redirect_from(@to.bare,&amp;block)
     end
 
   end</diff>
      <filename>lib/uppercut/conversation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -158,6 +158,7 @@ describe Uppercut::Agent do
     it &quot;calls the first matching command&quot; do
       msg = Jabber::Message.new(nil)
       msg.body = 'hi'
+      msg.from = Jabber::JID.fake_jid
             
       @agent.send(:dispatch, msg)
       @agent.instance_eval { @called_hi_regex }.should_not == true
@@ -167,6 +168,7 @@ describe Uppercut::Agent do
     it &quot;matches by regular expression&quot; do
       msg = Jabber::Message.new(nil)
       msg.body = 'high'
+      msg.from = Jabber::JID.fake_jid
       
       @agent.send(:dispatch, msg)
       @agent.instance_eval { @called_hi }.should_not == true</diff>
      <filename>spec/agent_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,6 +31,8 @@ class Jabber
     def add_message_callback(&amp;block)
       @on_message = block
     end
+
+
     
     # TESTING HELPER METHODS
     
@@ -44,6 +46,8 @@ class Jabber
   end
   
   class Presence
+    attr_accessor :from
+
     def initialize(a,b)
     end
     
@@ -71,6 +75,29 @@ class Jabber
       def add_subscription_request_callback(&amp;block)
         @on_subscription_request = block
       end
+
+      def add_presence_callback(&amp;block)
+        @on_presence = block
+      end
+
+      def add_subscription_callback(&amp;block)
+        @on_subscription = block
+      end
+    end
+  end
+
+  class JID
+    def self.fake_jid
+      new 'foo', 'bar.com', 'baz'
+    end
+
+    def initialize(node,domain,res)
+      @node, @domain, @res = node, domain, res
+    end
+
+    def bare
+      self.class.new @node, @domain, nil
     end
   end
-end
\ No newline at end of file
+end
+</diff>
      <filename>spec/jabber_stub.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,13 @@
 Gem::Specification.new do |s|
   s.name = %q{uppercut}
-  s.version = &quot;0.6.1&quot;
+  s.version = &quot;0.6.2&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Tyler McMullen&quot;]
-  s.date = %q{2008-11-07}
+  s.date = %q{2008-12-02}
   s.description = %q{A DSL for writing agents and notifiers for Jabber.}
   s.email = %q{tbmcmullen@gmail.com}
+  s.files = [&quot;README.textile&quot;, &quot;VERSION.yml&quot;, &quot;lib/uppercut&quot;, &quot;lib/uppercut/agent.rb&quot;, &quot;lib/uppercut/base.rb&quot;, &quot;lib/uppercut/conversation.rb&quot;, &quot;lib/uppercut/message.rb&quot;, &quot;lib/uppercut/notifier.rb&quot;, &quot;lib/uppercut.rb&quot;, &quot;spec/agent_spec.rb&quot;, &quot;spec/conversation_spec.rb&quot;, &quot;spec/jabber_stub.rb&quot;, &quot;spec/notifier_spec.rb&quot;, &quot;spec/spec_helper.rb&quot;]
   s.homepage = %q{http://github.com/tyler/uppercut}
   s.require_paths = [&quot;lib&quot;]
   s.rubygems_version = %q{1.2.0}
@@ -24,13 +25,4 @@ Gem::Specification.new do |s|
   else
     s.add_dependency(%q&lt;xmpp4r&gt;, [&quot;&gt;= 0&quot;])
   end
-
-  s.files = [
-    &quot;LICENSE&quot;,
-    &quot;Rakefile&quot;,
-    &quot;README.textile&quot;
-  ]
-  s.files += Dir[&quot;examples/*.rb&quot;]
-  s.files += Dir[&quot;lib/**/*.rb&quot;]
-  s.files += Dir[&quot;spec/**/*.rb&quot;]
 end</diff>
      <filename>uppercut.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>85970031932b4c0f769c0223bbcf9db981244306</id>
    </parent>
  </parents>
  <author>
    <name>Tyler McMullen</name>
    <email>tbmcmullen@gmail.com</email>
  </author>
  <url>http://github.com/tyler/uppercut/commit/2df8d7557aea06c73350baf9baa92c0e7d289cb8</url>
  <id>2df8d7557aea06c73350baf9baa92c0e7d289cb8</id>
  <committed-date>2008-12-02T23:09:12-08:00</committed-date>
  <authored-date>2008-12-02T23:09:12-08:00</authored-date>
  <message>A bunch of bug fixes. Empty gem issue is gone. Tweaks to thewordnerd's changes.  New specs.</message>
  <tree>6cf092e9bc23b55d400ae8c946fef95b1aa4c735</tree>
  <committer>
    <name>Tyler McMullen</name>
    <email>tbmcmullen@gmail.com</email>
  </committer>
</commit>
