airmail 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airmail/airmail.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a6b0850228300a44490e10d334f5f9e389b9c97
|
4
|
+
data.tar.gz: e9a08a7ffb4d818a099c65d9d1fccf6fd62218be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7126c123afcaf7163062f1cc20dd6e732908a544f56da42e5aabf687780478dbfaf0a3905e2e5d89d74234c98e5bce031378baf64c71e466ef92553bd1e021a
|
7
|
+
data.tar.gz: 449a984fa3b50c141acab998b5f3dfa18cfec64eeed49e796ff0b1497a02f4ab35e8b7b967a38a9f0e4a6d9cd46ebccdc0519af0e4c540ef87c533cd87264439
|
data/lib/airmail/airmail.rb
CHANGED
@@ -6,7 +6,9 @@ module Airmail
|
|
6
6
|
raise RoutesNotDefined unless defined? @@route
|
7
7
|
|
8
8
|
mail = Mail.new( original )
|
9
|
-
MailProcessor.new(mail, @@route, original)
|
9
|
+
processor = MailProcessor.new(mail, @@route, original)
|
10
|
+
processor.before_receive if processor.respond_to? :before_receive
|
11
|
+
processor.receive
|
10
12
|
|
11
13
|
mail
|
12
14
|
end
|
@@ -20,7 +22,7 @@ module Airmail
|
|
20
22
|
end
|
21
23
|
|
22
24
|
def logger
|
23
|
-
defined?(@@logger) ? @@logger : Logger.new("
|
25
|
+
defined?(@@logger) ? @@logger : Logger.new("airmail.log")
|
24
26
|
end
|
25
27
|
|
26
28
|
end
|