mailcatcher 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +12 -6
  2. data/Rakefile +3 -2
  3. data/VERSION +1 -1
  4. data/lib/mail_catcher/web.rb +1 -1
  5. metadata +21 -6
data/README.md CHANGED
@@ -4,6 +4,13 @@ Catches mail and serves it through a dream.
4
4
 
5
5
  MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface. Run mailcatcher, set your favourite app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, then check out http://127.0.0.1:1080 to see the mail that's arrived so far.
6
6
 
7
+ ## How
8
+
9
+ 1. `gem install mailcatcher`
10
+ 2. `mailcatcher`
11
+ 3. Go to http://localhost:1080/
12
+ 4. Send mail through smtp://localhost:1025
13
+
7
14
  ## Features
8
15
 
9
16
  * Catches all mail and stores it for display.
@@ -12,25 +19,22 @@ MailCatcher runs a super simple SMTP server which catches any message sent to it
12
19
  * Lists attachments and allows separate downloading of parts.
13
20
  * Written super-simply in EventMachine, easy to dig in and change.
14
21
  * Command line options to override the default SMTP/HTTP IP and port settings.
22
+ * Mail appears instantly if your browser supports [WebSockets][websockets].
15
23
 
16
24
  ## Caveats
17
25
 
18
26
  * Mail requires activesupport which requires i18n, but it doesn't list it as a dependency. For now I've added i18n as a requirement for MailCatcher.
19
- * For now you need to refresh the page to see new mail. Websockets support is coming soon to show new mail immediately.
20
27
  * Mail proccessing is fairly basic but easily modified. If something doesn't work for you, fork and fix it or file an issue and let me know. Include the whole message you're having problems with.
21
28
  * The interface is very basic and has not been tested on many browsers yet.
22
29
 
23
30
  ## TODO
24
31
 
25
- * Websockets for immediate mail viewing.
26
32
  * Download link to view original message in mail client.
27
33
  * Growl support.
28
34
  * Test suite.
29
- * Better organisation.
30
- * Better interface. SproutCore?
31
35
  * Add mail delivery on request, optionally multiple times.
32
36
  * Forward mail to rendering service, maybe CampaignMonitor?
33
- * Package as an app? Native interfaces?
37
+ * Package as an app? Native interfaces? HotCocoa?
34
38
 
35
39
  ## Thanks
36
40
 
@@ -42,4 +46,6 @@ Copyright (c) 2010 Samuel Cochran. See LICENSE for details.
42
46
 
43
47
  ## Dreams
44
48
 
45
- For dream catching, try [this](http://goo.gl/kgbh).
49
+ For dream catching, try [this](http://goo.gl/kgbh).
50
+
51
+ [websockets]: http://www.whatwg.org/specs/web-socket-protocol/
data/Rakefile CHANGED
@@ -22,7 +22,8 @@ begin
22
22
  gem.add_dependency 'i18n'
23
23
  gem.add_dependency 'sqlite3-ruby'
24
24
  gem.add_dependency 'thin'
25
- gem.add_dependency 'skinny'
25
+ gem.add_dependency 'skinny', '>=0.1.2'
26
+ gem.add_dependency 'sinatra'
26
27
  gem.add_dependency 'haml'
27
28
  gem.add_dependency 'json'
28
29
  end
@@ -40,4 +41,4 @@ Rake::RDocTask.new do |rdoc|
40
41
  rdoc.rdoc_files.include('README*')
41
42
  rdoc.rdoc_files.include('lib/*.rb')
42
43
  rdoc.rdoc_files.include('lib/**/*.rb')
43
- end
44
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.2
@@ -5,7 +5,7 @@ require 'pathname'
5
5
  require 'skinny'
6
6
 
7
7
  class Sinatra::Request
8
- include Skinny::RequestHelpers
8
+ include Skinny::Helpers
9
9
  end
10
10
 
11
11
  module MailCatcher
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Samuel Cochran
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-28 00:00:00 +08:00
17
+ date: 2010-11-04 00:00:00 +08:00
18
18
  default_executable: mailcatcher
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -92,11 +92,13 @@ dependencies:
92
92
  - !ruby/object:Gem::Version
93
93
  segments:
94
94
  - 0
95
- version: "0"
95
+ - 1
96
+ - 2
97
+ version: 0.1.2
96
98
  type: :runtime
97
99
  version_requirements: *id006
98
100
  - !ruby/object:Gem::Dependency
99
- name: haml
101
+ name: sinatra
100
102
  prerelease: false
101
103
  requirement: &id007 !ruby/object:Gem::Requirement
102
104
  none: false
@@ -109,7 +111,7 @@ dependencies:
109
111
  type: :runtime
110
112
  version_requirements: *id007
111
113
  - !ruby/object:Gem::Dependency
112
- name: json
114
+ name: haml
113
115
  prerelease: false
114
116
  requirement: &id008 !ruby/object:Gem::Requirement
115
117
  none: false
@@ -121,6 +123,19 @@ dependencies:
121
123
  version: "0"
122
124
  type: :runtime
123
125
  version_requirements: *id008
126
+ - !ruby/object:Gem::Dependency
127
+ name: json
128
+ prerelease: false
129
+ requirement: &id009 !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ segments:
135
+ - 0
136
+ version: "0"
137
+ type: :runtime
138
+ version_requirements: *id009
124
139
  description: " MailCatcher runs a super simple SMTP server which catches any\n message sent to it to display in a web interface. Run\n mailcatcher, set your favourite app to deliver to\n smtp://127.0.0.1:1025 instead of your default SMTP server,\n then check out http://127.0.0.1:1080 to see the mail.\n"
125
140
  email: sj26@sj26.com
126
141
  executables: