airmail 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/airmail/airmail.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0571b8e40b39f183158dcaa629ec8991d697b5f
4
- data.tar.gz: c78054f2e35c4aeb2359dcd8dee8b0850ad1ea39
3
+ metadata.gz: 3a6b0850228300a44490e10d334f5f9e389b9c97
4
+ data.tar.gz: e9a08a7ffb4d818a099c65d9d1fccf6fd62218be
5
5
  SHA512:
6
- metadata.gz: 0da7448e0b0822ae408244ad235dd7c0b6c2b5a41cf59ab52dc630de3a334392a71bf16a272c75562075e9e46003cc62e7fcc4a55659b368848df922f5426688
7
- data.tar.gz: da4c8c774b03d7e42a1c5040981cb9dc74dba8315f32554aecf708f12768cecaeba55b94b06637b84fe8cbbcc59251138734f231f7481b3e1192ab07d679f6a3
6
+ metadata.gz: c7126c123afcaf7163062f1cc20dd6e732908a544f56da42e5aabf687780478dbfaf0a3905e2e5d89d74234c98e5bce031378baf64c71e466ef92553bd1e021a
7
+ data.tar.gz: 449a984fa3b50c141acab998b5f3dfa18cfec64eeed49e796ff0b1497a02f4ab35e8b7b967a38a9f0e4a6d9cd46ebccdc0519af0e4c540ef87c533cd87264439
@@ -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).receive
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("log/airmail.log")
25
+ defined?(@@logger) ? @@logger : Logger.new("airmail.log")
24
26
  end
25
27
 
26
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Grayson