remailer 0.4.21 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/README.rdoc +25 -19
  2. data/VERSION +1 -1
  3. data/lib/remailer.rb +7 -1
  4. data/lib/remailer/{connection.rb → abstract_connection.rb} +63 -167
  5. data/lib/remailer/constants.rb +10 -0
  6. data/lib/remailer/email_address.rb +41 -0
  7. data/lib/remailer/imap.rb +6 -0
  8. data/lib/remailer/imap/client.rb +228 -0
  9. data/lib/remailer/imap/client/interpreter.rb +101 -0
  10. data/lib/remailer/imap/server.rb +15 -0
  11. data/lib/remailer/imap/server/interpreter.rb +2 -0
  12. data/lib/remailer/interpreter.rb +7 -6
  13. data/lib/remailer/interpreter/state_proxy.rb +20 -2
  14. data/lib/remailer/smtp.rb +6 -0
  15. data/lib/remailer/smtp/client.rb +329 -0
  16. data/lib/remailer/{connection/smtp_interpreter.rb → smtp/client/interpreter.rb} +4 -4
  17. data/lib/remailer/smtp/server.rb +130 -0
  18. data/lib/remailer/smtp/server/interpreter.rb +237 -0
  19. data/lib/remailer/smtp/server/transaction.rb +29 -0
  20. data/lib/remailer/socks5.rb +5 -0
  21. data/lib/remailer/socks5/client.rb +5 -0
  22. data/lib/remailer/{connection/socks5_interpreter.rb → socks5/client/interpreter.rb} +3 -2
  23. data/lib/remailer/support.rb +5 -0
  24. data/remailer.gemspec +27 -9
  25. data/test/unit/remailer_imap_client_interpreter_test.rb +14 -0
  26. data/test/unit/remailer_imap_client_test.rb +125 -0
  27. data/test/unit/{remailer_connection_smtp_interpreter_test.rb → remailer_smtp_client_interpreter_test.rb} +33 -33
  28. data/test/unit/{remailer_connection_test.rb → remailer_smtp_client_test.rb} +11 -11
  29. data/test/unit/remailer_smtp_server_test.rb +83 -0
  30. data/test/unit/{remailer_connection_socks5_interpreter_test.rb → remailer_socks5_client_interpreter_test.rb} +25 -17
  31. metadata +29 -11
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.21
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-03 00:00:00.000000000Z
12
+ date: 2012-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
- requirement: &2153795500 !ruby/object:Gem::Requirement
16
+ requirement: &2157252900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153795500
24
+ version_requirements: *2157252900
25
25
  description: EventMachine SMTP Mail User Agent
26
26
  email: scott@twg.ca
27
27
  executables: []
@@ -34,19 +34,37 @@ files:
34
34
  - Rakefile
35
35
  - VERSION
36
36
  - lib/remailer.rb
37
- - lib/remailer/connection.rb
38
- - lib/remailer/connection/smtp_interpreter.rb
39
- - lib/remailer/connection/socks5_interpreter.rb
37
+ - lib/remailer/abstract_connection.rb
38
+ - lib/remailer/constants.rb
39
+ - lib/remailer/email_address.rb
40
+ - lib/remailer/imap.rb
41
+ - lib/remailer/imap/client.rb
42
+ - lib/remailer/imap/client/interpreter.rb
43
+ - lib/remailer/imap/server.rb
44
+ - lib/remailer/imap/server/interpreter.rb
40
45
  - lib/remailer/interpreter.rb
41
46
  - lib/remailer/interpreter/state_proxy.rb
47
+ - lib/remailer/smtp.rb
48
+ - lib/remailer/smtp/client.rb
49
+ - lib/remailer/smtp/client/interpreter.rb
50
+ - lib/remailer/smtp/server.rb
51
+ - lib/remailer/smtp/server/interpreter.rb
52
+ - lib/remailer/smtp/server/transaction.rb
53
+ - lib/remailer/socks5.rb
54
+ - lib/remailer/socks5/client.rb
55
+ - lib/remailer/socks5/client/interpreter.rb
56
+ - lib/remailer/support.rb
42
57
  - remailer.gemspec
43
58
  - test/config.example.rb
44
59
  - test/helper.rb
45
- - test/unit/remailer_connection_smtp_interpreter_test.rb
46
- - test/unit/remailer_connection_socks5_interpreter_test.rb
47
- - test/unit/remailer_connection_test.rb
60
+ - test/unit/remailer_imap_client_interpreter_test.rb
61
+ - test/unit/remailer_imap_client_test.rb
48
62
  - test/unit/remailer_interpreter_state_proxy_test.rb
49
63
  - test/unit/remailer_interpreter_test.rb
64
+ - test/unit/remailer_smtp_client_interpreter_test.rb
65
+ - test/unit/remailer_smtp_client_test.rb
66
+ - test/unit/remailer_smtp_server_test.rb
67
+ - test/unit/remailer_socks5_client_interpreter_test.rb
50
68
  - test/unit/remailer_test.rb
51
69
  homepage: http://github.com/twg/remailer
52
70
  licenses: []
@@ -68,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
86
  version: '0'
69
87
  requirements: []
70
88
  rubyforge_project:
71
- rubygems_version: 1.8.10
89
+ rubygems_version: 1.8.17
72
90
  signing_key:
73
91
  specification_version: 3
74
92
  summary: Reactor-Ready SMTP Mailer