<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,3 +4,4 @@ ext/decoder.bundle
 ext/decoder.o
 *.beam
 *.dump
+.DS_Store</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,8 @@
-==
+== 1.0.1 / 2009-05-03
+  * Bug Fixes
+    * Fix premature null byte termination on binary decode
+
+== 1.0.0 / 2009-04-29
   * Backward Incompatible Changes
     * Implicit array call for f.when(:echo, String) must now be called as
       f.when([:echo, String]) to eliminate ambiguity</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -146,7 +146,7 @@ VALUE read_bin(unsigned char **pData) {
   unsigned char buf[length + 1];
   read_string_raw(buf, pData, length);
 
-  return rb_str_new2((char *) buf);
+  return rb_str_new((char *) buf, length);
 }
 
 VALUE read_string(unsigned char **pData) {</diff>
      <filename>ext/decoder.c</filename>
    </modified>
    <modified>
      <diff>@@ -107,6 +107,7 @@ context &quot;When unpacking from a binary stream&quot; do
   specify &quot;an erlang binary should decode to a string&quot; do
     get(&quot;&lt;&lt; 3,4,255 &gt;&gt;&quot;).should == &quot;\003\004\377&quot;
     get(&quot;&lt;&lt; \&quot;whatup\&quot; &gt;&gt;&quot;).should == &quot;whatup&quot;
+    get(&quot;&lt;&lt; 99,0,99 &gt;&gt;&quot;).should == &quot;c\000c&quot;
   end
 
   specify &quot;erlang atomic booleans should decode to ruby booleans&quot; do</diff>
      <filename>test/decode_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -112,6 +112,7 @@ context &quot;When packing to a binary stream&quot; do
   specify &quot;a string should be encoded as a erlang binary would be&quot; do
     get{@encoder.write_binary &quot;hey who&quot;}.should == get_erl(&quot;&lt;&lt; \&quot;hey who\&quot; &gt;&gt;&quot;)
     get{@encoder.write_binary &quot;&quot;}.should == get_erl(&quot;&lt;&lt; \&quot;\&quot; &gt;&gt;&quot;)
+    get{@encoder.write_binary &quot;c\000c&quot;}.should == get_erl(&quot;&lt;&lt; 99,0,99 &gt;&gt;&quot;)
 
     write_any(&quot;hey who&quot;).should == get_erl_with_magic(&quot;&lt;&lt; \&quot;hey who\&quot; &gt;&gt;&quot;)
     write_any(&quot;&quot;).should == get_erl_with_magic(&quot;&lt;&lt; \&quot;\&quot; &gt;&gt;&quot;)</diff>
      <filename>test/encode_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ca9a482d5a203dbbae80c991c24e00c1eaa1e3b1</id>
    </parent>
  </parents>
  <author>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </author>
  <url>http://github.com/mojombo/erlectricity/commit/81a6709fcac35eb59619ad31231ec3e4eef05790</url>
  <id>81a6709fcac35eb59619ad31231ec3e4eef05790</id>
  <committed-date>2009-05-03T23:02:07-07:00</committed-date>
  <authored-date>2009-05-03T23:00:54-07:00</authored-date>
  <message>fix null byte causing premature termination of strings on decode</message>
  <tree>27b80611be93c05fafd132e4619f69c8da6014d1</tree>
  <committer>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </committer>
</commit>
