example/ex07.rb in asir-0.2.0 vs example/ex07.rb in asir-1.0.1

- old
+ new

@@ -2,11 +2,11 @@ # One-way, named pipe service with signature require 'example_helper' begin File.unlink(service_pipe = "service.pipe") rescue nil - Email.client.transport = t = + Email.asir.transport = t = ASIR::Transport::File.new(:file => service_pipe) t.encoder = ASIR::Coder::Chain.new(:encoders => [ ASIR::Coder::Marshal.new, s = ASIR::Coder::Sign.new(:secret => 'abc123'), @@ -14,10 +14,10 @@ ]) t.prepare_pipe_server! server_process do t.run_pipe_server! end - pr Email.client.send_email(:pdf_invoice, :to => "user@email.com", :customer => @customer) + pr Email.asir.send_email(:pdf_invoice, :to => "user@email.com", :customer => @customer) ensure t.close; sleep 1; server_kill end # !SLIDE END