<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,6 +8,7 @@
       instead of STDIN and STDOUT. This prevents inadvertent output
       statements from silently corrupting the transfer protocol.
     * Erlang atoms 'true' and 'false' are now converted into Ruby booleans
+    * Erlectricity::Decoder.read_any_from -&gt; Erlectricity::Decoder.decode
   * Major Enhancements
     * Calling `rake` now runs tests (with and without compiled C extensions)
     * Package management is now done by Jeweler
\ No newline at end of file</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -25,8 +25,8 @@ task :test do
   require 'fileutils'
 
   puts &quot;\nCleaning extension build files and running all specs in native ruby mode...&quot;
-  FileUtils.rm_f(&quot;ext/*.bundle&quot;)
-  FileUtils.rm_f(&quot;ext/*.o&quot;)
+  `rm -f ext/*.bundle` &amp;&amp; puts(&quot;rm -f ext/*.bundle&quot;)
+  `rm -f ext/*.o` &amp;&amp; puts(&quot;rm -f ext/*.o&quot;)
   Open3.popen3(&quot;ruby test/spec_suite.rb&quot;) do |stdin, stdout, stderr|
     while !stdout.eof?
       print stdout.read(1)</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@ p bert
 
 Benchmark.bm do|b|
   b.report(&quot;Decoder&quot;) do
-    100_000.times { Erl::Decoder.read_any_from(bert) }
+    100_000.times { Erl::Decoder.decode(bert) }
   end
 end
 </diff>
      <filename>benchmarks/bench.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@ static VALUE mErlectricity;
 static VALUE cDecoder;
 void Init_decoder();
 
-VALUE method_read_any_from(VALUE klass, VALUE rString);
+VALUE method_decode(VALUE klass, VALUE rString);
 
 VALUE read_any_raw(unsigned char **pData);
 
@@ -383,7 +383,7 @@ VALUE read_any_raw(unsigned char **pData) {
   return Qnil;
 }
 
-VALUE method_read_any_from(VALUE klass, VALUE rString) {
+VALUE method_decode(VALUE klass, VALUE rString) {
   unsigned char *data = (unsigned char *) StringValuePtr(rString);
   
   unsigned char **pData = &amp;data;
@@ -399,5 +399,5 @@ VALUE method_read_any_from(VALUE klass, VALUE rString) {
 void Init_decoder() {
   mErlectricity = rb_const_get(rb_cObject, rb_intern(&quot;Erlectricity&quot;));
   cDecoder = rb_define_class_under(mErlectricity, &quot;Decoder&quot;, rb_cObject);
-  rb_define_singleton_method(cDecoder, &quot;read_any_from&quot;, method_read_any_from, 1);
+  rb_define_singleton_method(cDecoder, &quot;decode&quot;, method_decode, 1);
 }</diff>
      <filename>ext/decoder.c</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ module Erlectricity
     attr_accessor :in
     include Erlectricity::External::Types
 
-    def self.read_any_from(string)
+    def self.decode(string)
       new(StringIO.new(string)).read_any
     end
 </diff>
      <filename>lib/erlectricity/decoder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,7 @@ module Erlectricity
 
       packet_length = raw.unpack('N').first
       data = input.read(packet_length)
-      Erlectricity::Decoder.read_any_from(data)
+      Erlectricity::Decoder.decode(data)
     end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/erlectricity/port.rb</filename>
    </modified>
    <modified>
      <diff>@@ -123,6 +123,6 @@ context &quot;When unpacking from a binary stream&quot; do
   def get(str)
     x = &quot;term_to_binary(#{str.gsub(/&quot;/, '\\\&quot;')})&quot;
     bin = run_erl(x)
-    Erlectricity::Decoder.read_any_from(bin)
+    Erlectricity::Decoder.decode(bin)
   end
 end
\ No newline at end of file</diff>
      <filename>test/decode_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -67,7 +67,7 @@ context &quot;When packing to a binary stream&quot; do
 
   specify &quot;An Erlectiricity::NewReference should encode back to its original form&quot; do
     ref_bin = run_erl(&quot;term_to_binary(make_ref())&quot;)
-    ruby_ref = Erlectricity::Decoder.read_any_from(ref_bin)
+    ruby_ref = Erlectricity::Decoder.decode(ref_bin)
 
     get{@encoder.write_new_reference(ruby_ref)}.should == ref_bin[1..-1]
     write_any(ruby_ref).should == ref_bin
@@ -75,7 +75,7 @@ context &quot;When packing to a binary stream&quot; do
 
   specify &quot;An Erlectiricity::Pid should encode back to its original form&quot; do
     pid_bin = run_erl(&quot;term_to_binary(spawn(fun() -&gt; 3 end))&quot;)
-    ruby_pid = Erlectricity::Decoder.read_any_from(pid_bin)
+    ruby_pid = Erlectricity::Decoder.decode(pid_bin)
 
     get{@encoder.write_pid(ruby_pid)}.should == pid_bin[1..-1]
     write_any(ruby_pid).should == pid_bin</diff>
      <filename>test/encode_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ac81089998283bd22275aa1bf689bb6258ced8de</id>
    </parent>
  </parents>
  <author>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </author>
  <url>http://github.com/mojombo/erlectricity/commit/d6afa69a30b3932fdb526ace15afec5273731f2f</url>
  <id>d6afa69a30b3932fdb526ace15afec5273731f2f</id>
  <committed-date>2009-04-27T23:18:34-07:00</committed-date>
  <authored-date>2009-04-27T23:18:34-07:00</authored-date>
  <message>Erlectricity::Decoder.read_any_from -&gt; Erlectricity::Decoder.decode</message>
  <tree>8f9fd51b86d168bb312601ebc33ed780a23b14cd</tree>
  <committer>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </committer>
</commit>
