1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

replace letter_opener by MailCatcher

This commit is contained in:
Sylvain 2017-03-02 10:29:17 +01:00
parent f5ac9b1913
commit daefe626db
6 changed files with 28 additions and 7 deletions

View File

@ -5,6 +5,7 @@
- Ability to create, manage and reserve spaces
- Improved admin's interface to create availabilities
- Complete rewrote of the reservation cart functionality with improved stability, performance and sustainability
- Replaced letter_opener by MailCatcher to preview e-mails in development environments
- Fix a bug: trainings reservations are not shown in the admin's calendar
- Fix a bug: unable to delete an administrator from the system
- Fix a bug: unable to delete an event with a linked custom price (#61)

View File

@ -40,7 +40,7 @@ end
group :development do
# Preview mail in the browser
gem 'letter_opener'
gem 'mailcatcher'
gem 'awesome_print'
gem "puma"

View File

@ -128,6 +128,7 @@ GEM
tins (>= 1.6.0, < 2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
daemons (1.2.4)
database_cleaner (1.4.1)
debug_inspector (0.0.2)
descendants_tracker (0.0.4)
@ -166,6 +167,7 @@ GEM
multi_json
equalizer (0.0.11)
erubis (2.7.0)
eventmachine (1.0.9.1)
execjs (2.7.0)
faker (1.4.3)
i18n (~> 0.5)
@ -217,15 +219,19 @@ GEM
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.9.3)
launchy (2.4.3)
addressable (~> 2.3)
letter_opener (1.3.0)
launchy (~> 2.2)
libv8 (3.16.14.11)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mailcatcher (0.6.5)
eventmachine (= 1.0.9.1)
mail (~> 2.3)
rack (~> 1.5)
sinatra (~> 1.2)
skinny (~> 0.2.3)
sqlite3 (~> 1.3)
thin (~> 1.5.0)
memoizable (0.4.2)
thread_safe (~> 0.3, >= 0.3.1)
message_format (0.0.3)
@ -391,6 +397,9 @@ GEM
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
skinny (0.2.4)
eventmachine (~> 1.0.0)
thin (>= 1.5, < 1.7)
spring (1.3.5)
sprockets (2.12.4)
hike (~> 1.2)
@ -401,6 +410,7 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.13)
stripe (1.30.2)
json (~> 1.8.1)
rest-client (~> 1.4)
@ -411,6 +421,10 @@ GEM
therubyracer (0.12.0)
libv8 (~> 3.16.14.0)
ref
thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
@ -505,7 +519,7 @@ DEPENDENCIES
jbuilder_cache_multi
jquery-rails
kaminari
letter_opener
mailcatcher
message_format
mini_magick
minitest-reporters

View File

@ -1,2 +1,3 @@
web: bundle exec rails server puma -p $PORT -b0.0.0.0
worker: bundle exec sidekiq -C ./config/sidekiq.yml
mail: bundle exec mailcatcher --foreground

View File

@ -148,6 +148,9 @@ In you only intend to run fab-manager on your local machine for testing purposes
- user: admin@fab-manager.com
- password: adminadmin
13. Email notifications will be caught by MailCatcher.
To see the emails sent by the platform, open your web browser at `http://localhost:1080` to access the MailCatcher interface.
<a name="environment-configuration"></a>
### Environment Configuration

View File

@ -39,7 +39,9 @@ Rails.application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { :address => '127.0.0.1', :port => 1025 }
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options = { :host => 'localhost:5000' }
config.log_level = Rails.application.secrets.log_level || :debug