letter_opener_web 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +34 -6
- data/app/views/layouts/letter_opener_web/application.html.erb +1 -1
- data/lib/letter_opener_web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98d4caac460b92b595077684bae612441ea70dd3
|
4
|
+
data.tar.gz: 0ea38b2b8dfc113727e8df0cf649d765479b101a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd2bf222d5ef28727a1d3cb095ef851fae3660f7dc4c9b850c3a10bf485f898bb410c1ffbb834eb5b24d050b319b86567690500bcc50bc9c0252f289010a734a
|
7
|
+
data.tar.gz: 73388d0752883b524228fc74287f9a62e1495779ab591dc53f7a3099ee1df04cb1abf7ac8862cbd4b455da27891cb91d52bc5f86e3fdacbe76da1ffcd3b2fc96
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [1.2.3](https://github.com/fgrehm/letter_opener_web/compare/v1.2.2...v1.2.3) (Sep 12, 2014)
|
2
|
+
|
3
|
+
- Fix exception with `sprockets-rails` >= `2.1.4` [#32](https://github.com/fgrehm/letter_opener_web/issues/32) / [#33](https://github.com/fgrehm/letter_opener_web/pull/33)
|
4
|
+
|
1
5
|
## [1.2.2](https://github.com/fgrehm/letter_opener_web/compare/v1.2.1...v1.2.2) (Jul 17, 2014)
|
2
6
|
|
3
7
|
- Precompile glyphicons [#30](https://github.com/fgrehm/letter_opener_web/pull/30)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# letter_opener_web
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/fgrehm/letter_opener_web.png?branch=master)](https://travis-ci.org/fgrehm/letter_opener_web) [![Gem Version](https://badge.fury.io/rb/letter_opener_web.png)](http://badge.fury.io/rb/letter_opener_web) [![Code Climate](https://codeclimate.com/github/fgrehm/letter_opener_web.png)](https://codeclimate.com/github/fgrehm/letter_opener_web) [![Gittip](http://img.shields.io/gittip/fgrehm.svg)](https://www.gittip.com/fgrehm/)
|
3
|
+
[![Build Status](https://travis-ci.org/fgrehm/letter_opener_web.png?branch=master)](https://travis-ci.org/fgrehm/letter_opener_web) [![Gem Version](https://badge.fury.io/rb/letter_opener_web.png)](http://badge.fury.io/rb/letter_opener_web) [![Code Climate](https://codeclimate.com/github/fgrehm/letter_opener_web.png)](https://codeclimate.com/github/fgrehm/letter_opener_web) [![Gittip](http://img.shields.io/gittip/fgrehm.svg)](https://www.gittip.com/fgrehm/) [![Gitter chat](https://badges.gitter.im/fgrehm/letter_opener_web.png)](https://gitter.im/fgrehm/letter_opener_web)
|
4
4
|
|
5
5
|
Gives [letter_opener](https://github.com/ryanb/letter_opener) an interface for
|
6
6
|
browsing sent emails.
|
@@ -11,7 +11,9 @@ Check out http://letter-opener-web.herokuapp.com to see it in action.
|
|
11
11
|
|
12
12
|
First add the gem to your development environment and run the `bundle` command to install it.
|
13
13
|
|
14
|
-
|
14
|
+
```ruby
|
15
|
+
gem 'letter_opener_web', '~> 1.2.0', :group => :development
|
16
|
+
```
|
15
17
|
|
16
18
|
## Usage
|
17
19
|
|
@@ -25,7 +27,11 @@ Your::Application.routes.draw do
|
|
25
27
|
end
|
26
28
|
```
|
27
29
|
|
28
|
-
|
30
|
+
And make sure you have [`:letter_opener` delivery method](https://github.com/ryanb/letter_opener#rails-setup)
|
31
|
+
configured for your app. Then visit `http://localhost:3000/letter_opener` after
|
32
|
+
sending an email and have fun.
|
33
|
+
|
34
|
+
If you are running the app from a [Vagrant](http://vagrantup.com) machine, you
|
29
35
|
might want to skip `letter_opener`'s `launchy` calls and avoid messages like these:
|
30
36
|
|
31
37
|
```terminal
|
@@ -40,12 +46,34 @@ can set `:letter_opener_web` as your delivery method on your
|
|
40
46
|
`config/environments/development.rb`:
|
41
47
|
|
42
48
|
```ruby
|
43
|
-
|
49
|
+
config.action_mailer.delivery_method = :letter_opener_web
|
50
|
+
|
51
|
+
# If not everyone on the team is using vagrant
|
52
|
+
config.action_mailer.delivery_method = ENV['USER'] == 'vagrant' ? :letter_opener_web : :letter_opener
|
53
|
+
```
|
54
|
+
|
55
|
+
## Usage on Heroku
|
56
|
+
|
57
|
+
Some people use this gem on staging environments on Heroku and to set that up
|
58
|
+
is just a matter of moving the gem out of the `development` group and enabling
|
59
|
+
the route for all environments on your `routes.rb`.
|
60
|
+
|
61
|
+
In order words, your `Gemfile` will have:
|
44
62
|
|
45
|
-
|
46
|
-
|
63
|
+
```ruby
|
64
|
+
gem 'letter_opener_web', '~> 1.2.0'
|
65
|
+
```
|
66
|
+
|
67
|
+
And your `routes.rb`:
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
Your::Application.routes.draw do
|
71
|
+
mount LetterOpenerWeb::Engine, at: "/letter_opener"
|
72
|
+
end
|
47
73
|
```
|
48
74
|
|
75
|
+
You might also want to have a look at the sources for the [demo](http://letter-opener-web.herokuapp.com)
|
76
|
+
available at https://github.com/fgrehm/letter_opener_web_demo.
|
49
77
|
|
50
78
|
## Acknowledgements
|
51
79
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<title>LetterOpenerWeb</title>
|
5
5
|
<%= stylesheet_link_tag "letter_opener_web/application", :media => "all" %>
|
6
6
|
<%= javascript_include_tag "letter_opener_web/application" %>
|
7
|
-
<%= favicon_link_tag
|
7
|
+
<%= favicon_link_tag "letter_opener_web/blue-dot.ico", :rel => "icon" %>
|
8
8
|
<%= csrf_meta_tags %>
|
9
9
|
</head>
|
10
10
|
<body>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: letter_opener_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Rehm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|