<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>History.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -12,9 +12,17 @@ ObjectSpace.each_object(Class) do |klass|
       def to_yaml_with_decode(*args)
         result = to_yaml_without_decode(*args)
         if result.kind_of? String
-          # decode for workaround
+          # decode to workaround
           result.gsub(/\\x(\w{2})/){
             [Regexp.last_match.captures.first.to_i(16)].pack(&quot;C&quot;)}
+        elsif result.kind_of? StringIO
+          str = result.string
+          # decode to workaround
+          str.gsub!(/\\x(\w{2})/){
+            [Regexp.last_match.captures.first.to_i(16)].pack(&quot;C&quot;)}
+          result.rewind
+          result.write str
+          result
         else
           result
         end</diff>
      <filename>lib/yaml_waml.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,32 +1,33 @@
 # -*- coding: utf-8 -*-
 require File.dirname(__FILE__) + &quot;/spec_helper&quot;
 BLANK = &quot; &quot;
-context &quot;Japanese text&quot; do
-  specify &quot;String should output string&quot; do
-    &quot;&#12354;&quot;.to_yaml.should == &lt;&lt;-EXPECTED
+describe YAML, &quot;#to_yaml&quot; do
+  describe &quot;Japanese text&quot; do
+    it &quot;String should output string&quot; do
+      &quot;&#12354;&quot;.to_yaml.should == &lt;&lt;-EXPECTED
 --- &quot;&#12354;&quot;
     EXPECTED
-  end
+    end
 
-  specify &quot;Array-ed string should output string&quot; do
-    ['&#12354;','&#12356;'].to_yaml.should == &lt;&lt;-EXPECTED
+    it &quot;Array-ed string should output string&quot; do
+      ['&#12354;','&#12356;'].to_yaml.should == &lt;&lt;-EXPECTED
 ---#{BLANK}
 - &quot;&#12354;&quot;
 - &quot;&#12356;&quot;
     EXPECTED
-  end
+    end
 
-  specify &quot;Hash-ed string should output string&quot; do
-    {'&#26085;&#26412;&#35486;' =&gt; ['&#20986;&#21147;']}.to_yaml.should == &lt;&lt;-EXPECTED
+    it &quot;Hash-ed string should output string&quot; do
+      {'&#26085;&#26412;&#35486;' =&gt; ['&#20986;&#21147;']}.to_yaml.should == &lt;&lt;-EXPECTED
 ---#{BLANK}
 &quot;&#26085;&#26412;&#35486;&quot;:#{BLANK}
 - &quot;&#20986;&#21147;&quot;
     EXPECTED
-  end
+    end
 
-  specify &quot;mixed Array should output string&quot; do
-    actual = [[&quot;&#12354;&quot;, &quot;&#12356;&quot;], {&quot;&#12358;&quot; =&gt; [&quot;&#12360;&quot;]}, Struct.new(:name).new(&quot;&#12362;&quot;)]
-    actual.to_yaml.should == &lt;&lt;-EXPECTED
+    it &quot;mixed Array should output string&quot; do
+      actual = [[&quot;&#12354;&quot;, &quot;&#12356;&quot;], {&quot;&#12358;&quot; =&gt; [&quot;&#12360;&quot;]}, Struct.new(:name).new(&quot;&#12362;&quot;)]
+      actual.to_yaml.should == &lt;&lt;-EXPECTED
 ---#{BLANK}
 - - &quot;&#12354;&quot;
   - &quot;&#12356;&quot;
@@ -35,5 +36,16 @@ context &quot;Japanese text&quot; do
 - !ruby/struct:#{BLANK}
   name: &quot;&#12362;&quot;
     EXPECTED
+    end
+  end
+end
+
+describe YAML, &quot;.dump&quot; do
+  describe &quot;w/ Japanese text&quot; do
+    it &quot;should output yaml string&quot; do
+      YAML.dump(&quot;&#12354;&quot;).should == &lt;&lt;-EXPECTED
+--- &quot;&#12354;&quot;
+      EXPECTED
+    end
   end
 end</diff>
      <filename>spec/to_yaml_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Gem::Specification.new do |s|
   s.name     = &quot;yaml_waml&quot;
-  s.version  = &quot;0.1.2&quot;
-  s.date     = &quot;2008-09-02 12:14:00&quot;
+  s.version  = &quot;0.2.0&quot;
+  s.date     = &quot;2008-09-02 18:00:00&quot;
   s.summary  = &quot;'to_yaml' workaround for multibyte UTF-8 string.&quot;
   s.email    = &quot;shintaro@kakutani.com&quot;
   s.homepage = &quot;http://github.com/kakutani/yaml_waml/&quot;</diff>
      <filename>yaml_waml.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>19cf7459db07e34f246b1ec8be7c3a6b2ad810ca</id>
    </parent>
  </parents>
  <author>
    <name>KAKUTANI Shintaro</name>
    <email>shintaro@kakutani.com</email>
  </author>
  <url>http://github.com/kakutani/yaml_waml/commit/72e708201f52ab434a4e4f5597574461aaf5b80b</url>
  <id>72e708201f52ab434a4e4f5597574461aaf5b80b</id>
  <committed-date>2008-09-02T02:03:31-07:00</committed-date>
  <authored-date>2008-09-02T02:03:31-07:00</authored-date>
  <message>support YAML.dump and version 0.2.0.

applied patch from OHASHI Hideya:
http://github.com/ohac/yaml_waml/commit/0d111b954fc251973701dbc1504302c2c5b9a2f8</message>
  <tree>55f518b2b84e00c655bffee2f175adeead3110eb</tree>
  <committer>
    <name>KAKUTANI Shintaro</name>
    <email>shintaro@kakutani.com</email>
  </committer>
</commit>
