letter_opener 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +5 -4
  2. data/lib/letter_opener.rb +1 -0
  3. metadata +7 -7
@@ -1,6 +1,7 @@
1
1
  = Letter Opener
2
2
 
3
- Preview mail in your browser instead of sending it. When using the included delivery method, any sent mail will open automatically into the browser.
3
+ Preview email in the browser instead of sending it. This means you do not need to set up email delivery in your development environment, and you no longer need to worry about accidentally sending a test email to someone else's address.
4
+
4
5
 
5
6
  == Rails Setup
6
7
 
@@ -12,12 +13,12 @@ Then set the delivery method in <tt>config/environments/development.rb</tt>
12
13
 
13
14
  config.action_mailer.delivery_method = :letter_opener
14
15
 
15
- Now any delivered mail will pop up in your browser. The messages are stored in <tt>tmp/letter_opener</tt>.
16
+ Now any email will pop up in your browser instead of being sent. The messages are stored in <tt>tmp/letter_opener</tt>.
16
17
 
17
18
 
18
- == Other Setup
19
+ == Non Rails Setup
19
20
 
20
- This can be used with anything that uses the Mail gem. Simply set the delivery method when configuring Mail and specify a location.
21
+ If you aren't using Rails, this can be easily set up with the Mail gem. Just set the delivery method when configuring Mail and specify a location.
21
22
 
22
23
  require "letter_opener"
23
24
  Mail.defaults do
@@ -1,6 +1,7 @@
1
1
  require "fileutils"
2
2
  require "digest/sha1"
3
3
  require "cgi"
4
+ require "launchy"
4
5
 
5
6
  require "letter_opener/message"
6
7
  require "letter_opener/delivery_method"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letter_opener
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: launchy
17
- requirement: &2161172040 !ruby/object:Gem::Requirement
17
+ requirement: &2152659820 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2161172040
25
+ version_requirements: *2152659820
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &2161171520 !ruby/object:Gem::Requirement
28
+ requirement: &2152659300 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 2.6.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2161171520
36
+ version_requirements: *2152659300
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: mail
39
- requirement: &2161171020 !ruby/object:Gem::Requirement
39
+ requirement: &2152658800 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 2.3.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2161171020
47
+ version_requirements: *2152658800
48
48
  description: When mail is sent from your application, Letter Opener will open a preview
49
49
  in the browser instead of sending.
50
50
  email: ryan@railscasts.com