mail_processor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -10,12 +10,9 @@ module MailProcessor
10
10
  log.outputters = Log4r::Outputter.stdout
11
11
 
12
12
  class Base
13
- begin
14
- @log = Log4r::Logger.new "MailProcessor::#{self.to_s}"
15
- end
16
-
17
13
  def self.log
18
- @log
14
+ #Log4r::Logger["#{self.to_s}"] || Log4r::Logger.new("#{self.to_s}")
15
+ Log4r::Logger["MailProcessor"]
19
16
  end
20
17
 
21
18
  def log
@@ -6,18 +6,6 @@ include MailProcessor
6
6
  module MailProcessor
7
7
 
8
8
  class MailDir < Base
9
- begin
10
- @log = Log4r::Logger.new self.to_s
11
- end
12
-
13
- def self.log
14
- @log
15
- end
16
-
17
- def log
18
- self.class.log
19
- end
20
-
21
9
  def initialize options = {}, &block
22
10
  @attributes = {
23
11
  :glob => "#{ENV['HOME']}/MailDir/new/*",
@@ -7,18 +7,6 @@ include MailProcessor
7
7
  module MailProcessor
8
8
 
9
9
  class Pop3 < Base
10
- begin
11
- @log = Log4r::Logger.new self.to_s
12
- end
13
-
14
- def self.log
15
- @log
16
- end
17
-
18
- def log
19
- self.class.log
20
- end
21
-
22
10
  def initialize options = {}, &block
23
11
  @attributes = {
24
12
  :address => "pop.gmail.com",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_processor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rune Myrland
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-20 00:00:00 +02:00
18
+ date: 2010-08-23 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency