Skip to content

Commit

Permalink
Some minor housecleaning [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudomuto committed Feb 24, 2018
1 parent def4b97 commit ab50ad0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

### Removed

* The dependency on the asset pipeline. Good news for API-only apps and people that don't use Sprockets! [#83](https://github.com/fgrehm/letter_opener_web/pull/82)
* The dependency on the asset pipeline. Good news for API-only apps and people that don't use Sprockets! [#83](https://github.com/fgrehm/letter_opener_web/pull/83)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
@@ -1,4 +1,4 @@
Copyright (c) 2013-2014 Fabio Rehm
Copyright (c) 2013-2018 Fabio Rehm

MIT License

Expand Down
12 changes: 6 additions & 6 deletions README.md
@@ -1,6 +1,8 @@
# letter_opener_web

[![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) [![Gitter chat](https://badges.gitter.im/fgrehm/letter_opener_web.png)](https://gitter.im/fgrehm/letter_opener_web)
[![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)

Gives [letter_opener](https://github.com/ryanb/letter_opener) an interface for
browsing sent emails.
Expand All @@ -13,7 +15,7 @@ First add the gem to your development environment and run the `bundle` command t

```ruby
group :development do
gem 'letter_opener_web'
gem 'letter_opener_web', '~> 1.0'
end
```

Expand All @@ -23,9 +25,7 @@ Add to your routes.rb:

```ruby
Your::Application.routes.draw do
if Rails.env.development?
mount LetterOpenerWeb::Engine, at: "/letter_opener"
end
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
end
```

Expand Down Expand Up @@ -69,7 +69,7 @@ Some people use this gem on staging environments on Heroku and to set that up
is just a matter of moving the gem out of the `development` group and enabling
the route for all environments on your `routes.rb`.

In order words, your `Gemfile` will have:
In other words, your `Gemfile` will have:

```ruby
gem 'letter_opener_web'
Expand Down
11 changes: 0 additions & 11 deletions bin/rails

This file was deleted.

8 changes: 4 additions & 4 deletions config/routes.rb
@@ -1,9 +1,9 @@
# frozen_string_literal: true

LetterOpenerWeb::Engine.routes.draw do
delete 'clear' => 'letters#clear', :as => :clear_letters
delete ':id' => 'letters#destroy', :as => :delete_letter
get '/' => 'letters#index', :as => :letters
get ':id(/:style)' => 'letters#show', :as => :letter
delete 'clear' => 'letters#clear', as: :clear_letters
delete ':id' => 'letters#destroy', as: :delete_letter
get '/' => 'letters#index', as: :letters
get ':id(/:style)' => 'letters#show', as: :letter
get ':id/attachments/:file' => 'letters#attachment'
end
4 changes: 2 additions & 2 deletions letter_opener_web.gemspec
Expand Up @@ -7,8 +7,8 @@ require 'letter_opener_web/version'
Gem::Specification.new do |gem|
gem.name = 'letter_opener_web'
gem.version = LetterOpenerWeb::VERSION
gem.authors = ['Fabio Rehm']
gem.email = ['fgrehm@gmail.com']
gem.authors = ['Fabio Rehm', 'David Muto']
gem.email = ['fgrehm@gmail.com', 'david.muto@gmail.com']
gem.description = 'Gives letter_opener an interface for browsing sent emails'
gem.summary = gem.description
gem.homepage = 'https://github.com/fgrehm/letter_opener_web'
Expand Down

0 comments on commit ab50ad0

Please sign in to comment.