<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
+v0.4.5
+	Bugfix: Change DSL#write to DSL#write_to_stream. Previous way was messing with YAML
+
 v0.4.4
   Add &quot;disconnected&quot; handler type to handle connection termination
   Bugfix: Fix error with pubsub using the wrong client connection</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -41,12 +41,12 @@ This will auto-accept any subscription requests and echo back any chat messages.
 
   # Auto approve subscription requests
   subscription :request? do |s|
-    write s.approve!
+    write_to_stream s.approve!
   end
 
   # Echo back what was said
   message :chat?, :body do |m|
-    write m.reply
+    write_to_stream m.reply
   end
 
 == Handlers</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ require 'blather/client'
 when_ready { puts &quot;Connected ! send messages to #{jid.stripped}.&quot; }
 
 subscription :request? do |s|
-  write s.approve!
+  write_to_stream s.approve!
 end
 
 message :chat?, :body =&gt; 'exit' do |m|</diff>
      <filename>examples/echo.rb</filename>
    </modified>
    <modified>
      <diff>@@ -167,8 +167,7 @@ module Blather #:nodoc:
 
   protected
     def stream
-      raise 'Stream not ready!' unless @stream
-      @stream
+      @stream || raise('Stream not ready!')
     end
 
     def check_handler(type, guards)</diff>
      <filename>lib/blather/client/client.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ module Blather
     # This works such that it can be chained:
     #   self &lt;&lt; stanza1 &lt;&lt; stanza2 &lt;&lt; &quot;raw data&quot;
     def &lt;&lt;(stanza)
-      write stanza
+      client.write stanza
       self
     end
 
@@ -83,7 +83,7 @@ module Blather
     ##
     # Write data to the stream
     # Anything that resonds to #to_s can be paseed to the stream
-    def write(stanza)
+    def write_to_stream(stanza)
       client.write stanza
     end
 
@@ -122,7 +122,7 @@ module Blather
       stanza.node = where
 
       client.register_tmp_handler stanza.id, &amp;callback
-      write stanza
+      client.write stanza
     end
 
     ##</diff>
      <filename>lib/blather/client/dsl.rb</filename>
    </modified>
    <modified>
      <diff>@@ -89,7 +89,7 @@ describe Blather::DSL do
   it 'provides a writer' do
     stanza = Blather::Stanza::Iq.new
     @client.expects(:write).with stanza
-    @dsl.write stanza
+    @dsl.write_to_stream stanza
   end
 
   it 'provides a &quot;say&quot; helper' do</diff>
      <filename>spec/blather/client/dsl_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b1f2bd262bb9956921dda58a333a0a76c80bb9af</id>
    </parent>
  </parents>
  <author>
    <name>Jeff Smick</name>
    <email>sprsquish@gmail.com</email>
  </author>
  <url>http://github.com/sprsquish/blather/commit/b4c77ec27a42063add22c16af415e16b8a05049c</url>
  <id>b4c77ec27a42063add22c16af415e16b8a05049c</id>
  <committed-date>2009-10-28T08:55:41-07:00</committed-date>
  <authored-date>2009-10-28T08:55:41-07:00</authored-date>
  <message>Change DSL#write to DSL#write_to_stream so it doesn't mess with YAML</message>
  <tree>081ea59af8e9618495d65e9e6b249013f0c025a0</tree>
  <committer>
    <name>Jeff Smick</name>
    <email>sprsquish@gmail.com</email>
  </committer>
</commit>
