lib/ruote/part/smtp_participant.rb in ruote-2.1.11 vs lib/ruote/part/smtp_participant.rb in ruote-2.2.0
- old
+ new
@@ -1,7 +1,7 @@
#--
-# Copyright (c) 2005-2010, Alain Hoang and John Mettraux.
+# Copyright (c) 2005-2011, Alain Hoang and John Mettraux.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -78,16 +78,16 @@
class SmtpParticipant
include LocalParticipant
include TemplateMixin
- def initialize (opts)
+ def initialize(opts)
@opts = opts.inject({}) { |h, (k, v)| h[k.to_s] = v; h }
end
- def consume (workitem)
+ def consume(workitem)
to = workitem.fields['email_target'] || @opts['to']
to = Array(to)
text = render_template(
@@ -103,10 +103,10 @@
end
reply_to_engine(workitem) if @opts['notification']
end
- def cancel (fei, flavour)
+ def cancel(fei, flavour)
# does nothing
#
# one variant could send a "cancellation email"
end