mailhopper 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/{README.rdoc → README.md} +43 -31
  2. data/Rakefile +4 -29
  3. data/lib/mailhopper/version.rb +1 -1
  4. metadata +49 -157
  5. data/test/dummy/Rakefile +0 -7
  6. data/test/dummy/app/assets/javascripts/application.js +0 -9
  7. data/test/dummy/app/assets/stylesheets/application.css +0 -7
  8. data/test/dummy/app/controllers/application_controller.rb +0 -3
  9. data/test/dummy/app/helpers/application_helper.rb +0 -2
  10. data/test/dummy/app/mailers/sample_mailer.rb +0 -8
  11. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  12. data/test/dummy/app/views/sample_mailer/hello.text.erb +0 -1
  13. data/test/dummy/config/application.rb +0 -42
  14. data/test/dummy/config/boot.rb +0 -10
  15. data/test/dummy/config/database.yml +0 -25
  16. data/test/dummy/config/environment.rb +0 -5
  17. data/test/dummy/config/environments/development.rb +0 -27
  18. data/test/dummy/config/environments/production.rb +0 -51
  19. data/test/dummy/config/environments/test.rb +0 -39
  20. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  21. data/test/dummy/config/initializers/inflections.rb +0 -10
  22. data/test/dummy/config/initializers/mailhopper.rb +0 -3
  23. data/test/dummy/config/initializers/mime_types.rb +0 -5
  24. data/test/dummy/config/initializers/secret_token.rb +0 -7
  25. data/test/dummy/config/initializers/session_store.rb +0 -8
  26. data/test/dummy/config/initializers/wrap_parameters.rb +0 -12
  27. data/test/dummy/config/locales/en.yml +0 -5
  28. data/test/dummy/config/routes.rb +0 -58
  29. data/test/dummy/config.ru +0 -4
  30. data/test/dummy/db/development.sqlite3 +0 -0
  31. data/test/dummy/db/migrate/20110916191655_create_emails.rb +0 -29
  32. data/test/dummy/db/schema.rb +0 -28
  33. data/test/dummy/db/test.sqlite3 +0 -0
  34. data/test/dummy/log/development.log +0 -63
  35. data/test/dummy/log/test.log +0 -2142
  36. data/test/dummy/public/404.html +0 -26
  37. data/test/dummy/public/422.html +0 -26
  38. data/test/dummy/public/500.html +0 -26
  39. data/test/dummy/public/favicon.ico +0 -0
  40. data/test/dummy/script/rails +0 -6
  41. data/test/integration/navigation_test.rb +0 -10
  42. data/test/mailhopper_test.rb +0 -7
  43. data/test/test_helper.rb +0 -14
  44. data/test/unit/email_test.rb +0 -91
@@ -1,11 +1,12 @@
1
- = Mailhopper
1
+ # Mailhopper [![Build Status](https://secure.travis-ci.org/cerebris/mailhopper.png)](http://travis-ci.org/cerebris/mailhopper)
2
2
 
3
3
  Mailhopper provides a simple ActiveRecord-based queue for asynchronous delivery of email in Rails apps.
4
4
 
5
5
  Why use Mailhopper to queue your email?
6
- * Mailhopper captures the full content and headers of emails at their time of creation. It can handle multiple MIME types and attachments.
7
- * If email can't be delivered from your queue (e.g. your smtp server is down), you can retry delivery until successful.
8
- * Emails can be accessed at any time, even after they've been sent.
6
+
7
+ * Mailhopper captures the full content and headers of emails at their time of creation. It can handle multiple MIME types and attachments.
8
+ * If email can't be delivered from your queue (e.g. your smtp server is down), you can retry delivery until successful.
9
+ * Emails can be accessed at any time, even after they've been sent.
9
10
 
10
11
  The complete rationale is explained in this blog post: http://www.cerebris.com/blog/2011/09/07/tame-rails-email-dragons-with-mailhopper/
11
12
 
@@ -13,61 +14,72 @@ Mailhopper is intended to be used along with a delivery agent such as DelayedMai
13
14
 
14
15
  DelayedMailhopper can be found here: https://github.com/cerebris/delayed_mailhopper
15
16
 
16
- == Requirements
17
+ ## Requirements
17
18
 
18
19
  Rails 3.1+
19
20
 
20
- == Installation
21
+ ## Installation
21
22
 
22
23
  Add to your project's Gemfile:
24
+ ```
25
+ gem 'mailhopper'
26
+ ```
23
27
 
24
- gem 'mailhopper'
25
-
26
28
  Install with bundler:
29
+ ```
30
+ bundle install
31
+ ```
27
32
 
28
- bundle install
29
-
30
33
  Generate default initializer and migration files:
34
+ ```
35
+ rails generate mailhopper
36
+ ```
31
37
 
32
- rails generate mailhopper
33
-
34
38
  Migrate your database:
35
39
 
36
- rake db:migrate
40
+ ```
41
+ rake db:migrate
42
+ ```
37
43
 
38
44
  Don't forget to also install a delivery agent, such as DelayedMailhopper, so that emails will be delivered from your queue !!!
39
45
 
40
- == Configuration
46
+ ## Configuration
41
47
 
42
48
  If you want all of your application's email to be queued with Mailhopper, configure mailers either in application.rb or your application's environment-specific configuration files:
43
49
 
44
- MyApp::Application.configure do
45
- config.action_mailer.delivery_method = :mailhopper
46
- end
50
+ ```
51
+ MyApp::Application.configure do
52
+ config.action_mailer.delivery_method = :mailhopper
53
+ end
54
+ ```
47
55
 
48
56
  Alternatively, or additionally, configure individual mailers to use Mailhopper:
49
57
 
50
- class MyMailer < ActionMailer::Base
51
- ActionMailer::Base.delivery_method = :mailhopper
52
- end
58
+ ```
59
+ class MyMailer < ActionMailer::Base
60
+ ActionMailer::Base.delivery_method = :mailhopper
61
+ end
62
+ ```
53
63
 
54
- == Options
64
+ ## Options
55
65
 
56
66
  The following options can be configured in your initializer (config/initializers/mailhopper):
57
67
 
58
- Mailhopper::Base.setup do |config|
59
- # The base email class used by Mailhopper
60
- config.email_class = Mailhopper::Email
68
+ ```
69
+ Mailhopper::Base.setup do |config|
70
+ # The base email class used by Mailhopper
71
+ config.email_class = Mailhopper::Email
72
+
73
+ # The base mailer class used by Mailhopper
74
+ config.mailer_class = Mailhopper::Mailer
61
75
 
62
- # The base mailer class used by Mailhopper
63
- config.mailer_class = Mailhopper::Mailer
64
-
65
- # The method used by the delivery agent to deliver emails from your queue
66
- config.default_delivery_method = :smtp
67
- end
76
+ # The method used by the delivery agent to deliver emails from your queue
77
+ config.default_delivery_method = :smtp
78
+ end
79
+ ```
68
80
 
69
81
  It's preferable to leave these options out of your initializer if the defaults, shown above, are acceptable. Delivery agents may override some defaults (e.g. DelayedMailhopper sets email_class = DelayedMailhopper::Email).
70
82
 
71
- == Copyright
83
+ ## Copyright
72
84
 
73
85
  Copyright (c) 2011 Cerebris Corporation. This is free software released under the MIT License (see MIT-LICENSE for details).
data/Rakefile CHANGED
@@ -5,36 +5,11 @@ begin
5
5
  rescue LoadError
6
6
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
7
  end
8
- begin
9
- require 'rdoc/task'
10
- rescue LoadError
11
- require 'rdoc/rdoc'
12
- require 'rake/rdoctask'
13
- RDoc::Task = Rake::RDocTask
14
- end
15
-
16
- RDoc::Task.new(:rdoc) do |rdoc|
17
- rdoc.rdoc_dir = 'rdoc'
18
- rdoc.title = 'Mailhopper'
19
- rdoc.options << '--line-numbers'
20
- rdoc.rdoc_files.include('README.rdoc')
21
- rdoc.rdoc_files.include('lib/**/*.rb')
22
- end
23
8
 
24
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
9
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
25
10
  load 'rails/tasks/engine.rake'
26
11
 
12
+ require 'rspec/core/rake_task'
13
+ RSpec::Core::RakeTask.new(:spec)
27
14
 
28
- Bundler::GemHelper.install_tasks
29
-
30
- require 'rake/testtask'
31
-
32
- Rake::TestTask.new(:test) do |t|
33
- t.libs << 'lib'
34
- t.libs << 'test'
35
- t.pattern = 'test/**/*_test.rb'
36
- t.verbose = false
37
- end
38
-
39
-
40
- task :default => :test
15
+ task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module Mailhopper
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,77 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mailhopper
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dan Gebhardt
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-25 00:00:00 -05:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rails
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70247081310640 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 3
32
- - 1
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 3.1.0
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: sqlite3
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70247081310640
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &70247081310060 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 1.3.4
49
33
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: shoulda
53
34
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70247081310060
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec-rails
38
+ requirement: &70247081309400 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
63
44
  type: :development
64
- version_requirements: *id003
65
- description: Mailhopper stores your application's emails in an ActiveRecord queue for asynchronous delivery. Use Mailhopper in combination with a delivery agent such as DelayedMailhopper.
66
- email:
45
+ prerelease: false
46
+ version_requirements: *70247081309400
47
+ description: Mailhopper stores your application's emails in an ActiveRecord queue
48
+ for asynchronous delivery. Use Mailhopper in combination with a delivery agent such
49
+ as DelayedMailhopper.
50
+ email:
67
51
  - support@cerebris.com
68
52
  executables: []
69
-
70
53
  extensions: []
71
-
72
54
  extra_rdoc_files: []
73
-
74
- files:
55
+ files:
75
56
  - app/mailers/mailhopper/mailer.rb
76
57
  - app/models/mailhopper/email.rb
77
58
  - config/routes.rb
@@ -87,119 +68,30 @@ files:
87
68
  - lib/tasks/mailhopper_tasks.rake
88
69
  - MIT-LICENSE
89
70
  - Rakefile
90
- - README.rdoc
91
- - test/dummy/app/assets/javascripts/application.js
92
- - test/dummy/app/assets/stylesheets/application.css
93
- - test/dummy/app/controllers/application_controller.rb
94
- - test/dummy/app/helpers/application_helper.rb
95
- - test/dummy/app/mailers/sample_mailer.rb
96
- - test/dummy/app/views/layouts/application.html.erb
97
- - test/dummy/app/views/sample_mailer/hello.text.erb
98
- - test/dummy/config/application.rb
99
- - test/dummy/config/boot.rb
100
- - test/dummy/config/database.yml
101
- - test/dummy/config/environment.rb
102
- - test/dummy/config/environments/development.rb
103
- - test/dummy/config/environments/production.rb
104
- - test/dummy/config/environments/test.rb
105
- - test/dummy/config/initializers/backtrace_silencers.rb
106
- - test/dummy/config/initializers/inflections.rb
107
- - test/dummy/config/initializers/mailhopper.rb
108
- - test/dummy/config/initializers/mime_types.rb
109
- - test/dummy/config/initializers/secret_token.rb
110
- - test/dummy/config/initializers/session_store.rb
111
- - test/dummy/config/initializers/wrap_parameters.rb
112
- - test/dummy/config/locales/en.yml
113
- - test/dummy/config/routes.rb
114
- - test/dummy/config.ru
115
- - test/dummy/db/development.sqlite3
116
- - test/dummy/db/migrate/20110916191655_create_emails.rb
117
- - test/dummy/db/schema.rb
118
- - test/dummy/db/test.sqlite3
119
- - test/dummy/log/development.log
120
- - test/dummy/log/test.log
121
- - test/dummy/public/404.html
122
- - test/dummy/public/422.html
123
- - test/dummy/public/500.html
124
- - test/dummy/public/favicon.ico
125
- - test/dummy/Rakefile
126
- - test/dummy/script/rails
127
- - test/integration/navigation_test.rb
128
- - test/mailhopper_test.rb
129
- - test/test_helper.rb
130
- - test/unit/email_test.rb
131
- has_rdoc: true
71
+ - README.md
132
72
  homepage: https://github.com/cerebris/mailhopper
133
73
  licenses: []
134
-
135
74
  post_install_message:
136
75
  rdoc_options: []
137
-
138
- require_paths:
76
+ require_paths:
139
77
  - lib
140
- required_ruby_version: !ruby/object:Gem::Requirement
78
+ required_ruby_version: !ruby/object:Gem::Requirement
141
79
  none: false
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- hash: 3
146
- segments:
147
- - 0
148
- version: "0"
149
- required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
85
  none: false
151
- requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- hash: 3
155
- segments:
156
- - 0
157
- version: "0"
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
158
90
  requirements: []
159
-
160
91
  rubyforge_project:
161
- rubygems_version: 1.4.2
92
+ rubygems_version: 1.8.10
162
93
  signing_key:
163
94
  specification_version: 3
164
95
  summary: A simple ActiveRecord-based email queue for Rails apps.
165
- test_files:
166
- - test/dummy/app/assets/javascripts/application.js
167
- - test/dummy/app/assets/stylesheets/application.css
168
- - test/dummy/app/controllers/application_controller.rb
169
- - test/dummy/app/helpers/application_helper.rb
170
- - test/dummy/app/mailers/sample_mailer.rb
171
- - test/dummy/app/views/layouts/application.html.erb
172
- - test/dummy/app/views/sample_mailer/hello.text.erb
173
- - test/dummy/config/application.rb
174
- - test/dummy/config/boot.rb
175
- - test/dummy/config/database.yml
176
- - test/dummy/config/environment.rb
177
- - test/dummy/config/environments/development.rb
178
- - test/dummy/config/environments/production.rb
179
- - test/dummy/config/environments/test.rb
180
- - test/dummy/config/initializers/backtrace_silencers.rb
181
- - test/dummy/config/initializers/inflections.rb
182
- - test/dummy/config/initializers/mailhopper.rb
183
- - test/dummy/config/initializers/mime_types.rb
184
- - test/dummy/config/initializers/secret_token.rb
185
- - test/dummy/config/initializers/session_store.rb
186
- - test/dummy/config/initializers/wrap_parameters.rb
187
- - test/dummy/config/locales/en.yml
188
- - test/dummy/config/routes.rb
189
- - test/dummy/config.ru
190
- - test/dummy/db/development.sqlite3
191
- - test/dummy/db/migrate/20110916191655_create_emails.rb
192
- - test/dummy/db/schema.rb
193
- - test/dummy/db/test.sqlite3
194
- - test/dummy/log/development.log
195
- - test/dummy/log/test.log
196
- - test/dummy/public/404.html
197
- - test/dummy/public/422.html
198
- - test/dummy/public/500.html
199
- - test/dummy/public/favicon.ico
200
- - test/dummy/Rakefile
201
- - test/dummy/script/rails
202
- - test/integration/navigation_test.rb
203
- - test/mailhopper_test.rb
204
- - test/test_helper.rb
205
- - test/unit/email_test.rb
96
+ test_files: []
97
+ has_rdoc:
data/test/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
@@ -1,9 +0,0 @@
1
- // This is a manifest file that'll be compiled into including all the files listed below.
2
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
- // be included in the compiled file accessible from http://example.com/assets/application.js
4
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
- // the compiled file.
6
- //
7
- //= require jquery
8
- //= require jquery_ujs
9
- //= require_tree .
@@ -1,7 +0,0 @@
1
- /*
2
- * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
- * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
- * the top of the compiled file, but it's generally better to create a new file per style scope.
5
- *= require_self
6
- *= require_tree .
7
- */
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,8 +0,0 @@
1
- class SampleMailer < ActionMailer::Base
2
- ActionMailer::Base.delivery_method = :mailhopper
3
-
4
- def hello(headers, content)
5
- @content = content
6
- mail(headers)
7
- end
8
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag "application" %>
6
- <%= javascript_include_tag "application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1 +0,0 @@
1
- <%= @content %>
@@ -1,42 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require
6
- require "mailhopper"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Custom directories with classes and modules you want to be autoloadable.
15
- # config.autoload_paths += %W(#{config.root}/extras)
16
-
17
- # Only load the plugins named here, in the order given (default is alphabetical).
18
- # :all can be used as a placeholder for all plugins not explicitly named.
19
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
-
21
- # Activate observers that should always be running.
22
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
-
24
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
- # config.time_zone = 'Central Time (US & Canada)'
27
-
28
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
- # config.i18n.default_locale = :de
31
-
32
- # Configure the default encoding used in templates for Ruby 1.9.
33
- config.encoding = "utf-8"
34
-
35
- # Configure sensitive parameters which will be filtered from the log file.
36
- config.filter_parameters += [:password]
37
-
38
- # Enable the asset pipeline
39
- config.assets.enabled = true
40
- end
41
- end
42
-
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,27 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger
20
- config.active_support.deprecation = :log
21
-
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
24
-
25
- # Do not compress assets
26
- config.assets.compress = false
27
- end
@@ -1,51 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Full error reports are disabled and caching is turned on
8
- config.consider_all_requests_local = false
9
- config.action_controller.perform_caching = true
10
-
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
13
-
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
16
-
17
- # Specifies the header that your server uses for sending files
18
- # (comment out if your front-end server doesn't support this)
19
- config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx
20
-
21
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
22
- # config.force_ssl = true
23
-
24
- # See everything in the log (default is :info)
25
- # config.log_level = :debug
26
-
27
- # Use a different logger for distributed setups
28
- # config.logger = SyslogLogger.new
29
-
30
- # Use a different cache store in production
31
- # config.cache_store = :mem_cache_store
32
-
33
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
34
- # config.action_controller.asset_host = "http://assets.example.com"
35
-
36
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
37
- # config.assets.precompile += %w( search.js )
38
-
39
- # Disable delivery errors, bad email addresses will be ignored
40
- # config.action_mailer.raise_delivery_errors = false
41
-
42
- # Enable threaded mode
43
- # config.threadsafe!
44
-
45
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
46
- # the I18n.default_locale when a translation can not be found)
47
- config.i18n.fallbacks = true
48
-
49
- # Send deprecation notices to registered listeners
50
- config.active_support.deprecation = :notify
51
- end