delayed_mailhopper 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +77 -0
- data/Rakefile +4 -29
- data/lib/delayed_mailhopper/version.rb +1 -1
- metadata +67 -171
- data/README.rdoc +0 -35
- data/test/delayed_mailhopper_test.rb +0 -7
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -9
- data/test/dummy/app/assets/stylesheets/application.css +0 -7
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/mailers/sample_mailer.rb +0 -8
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/sample_mailer/hello.text.erb +0 -1
- data/test/dummy/config/application.rb +0 -42
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -27
- data/test/dummy/config/environments/production.rb +0 -51
- data/test/dummy/config/environments/test.rb +0 -39
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/dummy/config/initializers/mailhopper.rb +0 -3
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -12
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20110804223859_create_emails.rb +0 -21
- data/test/dummy/db/migrate/20110804224806_create_delayed_jobs.rb +0 -21
- data/test/dummy/db/schema.rb +0 -43
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -18
- data/test/dummy/log/test.log +0 -1571
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -26
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/delayed_job +0 -5
- data/test/dummy/script/rails +0 -6
- data/test/integration/navigation_test.rb +0 -10
- data/test/test_helper.rb +0 -14
- data/test/unit/email_test.rb +0 -67
data/README.md
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# DelayedMailhopper [![Build Status](https://secure.travis-ci.org/cerebris/delayed_mailhopper.png)](http://travis-ci.org/cerebris/delayed_mailhopper)
|
2
|
+
|
3
|
+
DelayedMailhopper provides a simple solution to queue, deliver and archive emails in Rails apps. It extends Mailhopper and uses DelayedJob to queue delivery jobs asynchronously.
|
4
|
+
|
5
|
+
## Requirements
|
6
|
+
|
7
|
+
* Rails 3.1+
|
8
|
+
* DelayedJob
|
9
|
+
* Mailhopper
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add to your project's Gemfile:
|
14
|
+
|
15
|
+
```
|
16
|
+
gem 'delayed_mailhopper'
|
17
|
+
```
|
18
|
+
|
19
|
+
Install with bundler (note: also installs dependencies such as DelayedJob and Mailhopper):
|
20
|
+
|
21
|
+
```
|
22
|
+
bundle install
|
23
|
+
```
|
24
|
+
|
25
|
+
## Configure Mailhopper
|
26
|
+
|
27
|
+
If you haven't already, you'll need to run generators for Mailhopper and then migrate your database.
|
28
|
+
|
29
|
+
```
|
30
|
+
rails g mailhopper
|
31
|
+
rake db:migrate
|
32
|
+
```
|
33
|
+
|
34
|
+
## Configure DelayedJob
|
35
|
+
|
36
|
+
### ActiveRecord Backend
|
37
|
+
|
38
|
+
Add the gem to your Gemfile:
|
39
|
+
|
40
|
+
```
|
41
|
+
gem 'delayed_job_active_record'
|
42
|
+
```
|
43
|
+
|
44
|
+
Run the generator to create the migration for the delayed_job table.
|
45
|
+
|
46
|
+
```
|
47
|
+
rails g delayed_job:active_record
|
48
|
+
rake db:migrate
|
49
|
+
```
|
50
|
+
|
51
|
+
see the README: https://github.com/collectiveidea/delayed_job_active_record
|
52
|
+
|
53
|
+
### Mongoid backend
|
54
|
+
|
55
|
+
Add the gem to your Gemfile:
|
56
|
+
|
57
|
+
```
|
58
|
+
gem 'delayed_job_mongoid'
|
59
|
+
```
|
60
|
+
|
61
|
+
Create the indexes (and don't forget to do this on your production database):
|
62
|
+
|
63
|
+
```
|
64
|
+
script/rails runner 'Delayed::Backend::Mongoid::Job.create_indexes'
|
65
|
+
```
|
66
|
+
|
67
|
+
see the README: https://github.com/collectiveidea/delayed_job_mongoid
|
68
|
+
|
69
|
+
## References
|
70
|
+
|
71
|
+
Please see the README for Mailhopper: https://github.com/cerebris/mailhopper
|
72
|
+
|
73
|
+
And for DelayedJob: https://github.com/collectiveidea/delayed_job/
|
74
|
+
|
75
|
+
## Copyright
|
76
|
+
|
77
|
+
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 = 'DelayedMailhopper'
|
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("../
|
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
|
-
|
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
|
metadata
CHANGED
@@ -1,91 +1,79 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_mailhopper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
version: 0.0.2
|
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
|
-
|
19
|
-
|
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: mailhopper
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70244152766360 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 29
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 0
|
33
|
-
- 1
|
20
|
+
- !ruby/object:Gem::Version
|
34
21
|
version: 0.0.1
|
35
22
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: delayed_job
|
39
23
|
prerelease: false
|
40
|
-
|
24
|
+
version_requirements: *70244152766360
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: delayed_job
|
27
|
+
requirement: &70244152765800 !ruby/object:Gem::Requirement
|
41
28
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
49
33
|
type: :runtime
|
50
|
-
|
51
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70244152765800
|
36
|
+
- !ruby/object:Gem::Dependency
|
52
37
|
name: sqlite3
|
38
|
+
requirement: &70244152755020 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.3.4
|
44
|
+
type: :development
|
53
45
|
prerelease: false
|
54
|
-
|
46
|
+
version_requirements: *70244152755020
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec-rails
|
49
|
+
requirement: &70244152754600 !ruby/object:Gem::Requirement
|
55
50
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
63
55
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: shoulda
|
67
56
|
prerelease: false
|
68
|
-
|
57
|
+
version_requirements: *70244152754600
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: delayed_job_active_record
|
60
|
+
requirement: &70244152754120 !ruby/object:Gem::Requirement
|
69
61
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
77
66
|
type: :development
|
78
|
-
|
79
|
-
|
80
|
-
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70244152754120
|
69
|
+
description: DelayedMailhopper extends Mailhopper to deliver emails asynchronously
|
70
|
+
with DelayedJob.
|
71
|
+
email:
|
81
72
|
- support@cerebris.com
|
82
73
|
executables: []
|
83
|
-
|
84
74
|
extensions: []
|
85
|
-
|
86
75
|
extra_rdoc_files: []
|
87
|
-
|
88
|
-
files:
|
76
|
+
files:
|
89
77
|
- app/models/delayed_mailhopper/email.rb
|
90
78
|
- app/models/delayed_mailhopper/send_job.rb
|
91
79
|
- config/routes.rb
|
@@ -95,123 +83,31 @@ files:
|
|
95
83
|
- lib/tasks/delayed_mailhopper_tasks.rake
|
96
84
|
- MIT-LICENSE
|
97
85
|
- Rakefile
|
98
|
-
- README.
|
99
|
-
- test/delayed_mailhopper_test.rb
|
100
|
-
- test/dummy/app/assets/javascripts/application.js
|
101
|
-
- test/dummy/app/assets/stylesheets/application.css
|
102
|
-
- test/dummy/app/controllers/application_controller.rb
|
103
|
-
- test/dummy/app/helpers/application_helper.rb
|
104
|
-
- test/dummy/app/mailers/sample_mailer.rb
|
105
|
-
- test/dummy/app/views/layouts/application.html.erb
|
106
|
-
- test/dummy/app/views/sample_mailer/hello.text.erb
|
107
|
-
- test/dummy/config/application.rb
|
108
|
-
- test/dummy/config/boot.rb
|
109
|
-
- test/dummy/config/database.yml
|
110
|
-
- test/dummy/config/environment.rb
|
111
|
-
- test/dummy/config/environments/development.rb
|
112
|
-
- test/dummy/config/environments/production.rb
|
113
|
-
- test/dummy/config/environments/test.rb
|
114
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
115
|
-
- test/dummy/config/initializers/inflections.rb
|
116
|
-
- test/dummy/config/initializers/mailhopper.rb
|
117
|
-
- test/dummy/config/initializers/mime_types.rb
|
118
|
-
- test/dummy/config/initializers/secret_token.rb
|
119
|
-
- test/dummy/config/initializers/session_store.rb
|
120
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
121
|
-
- test/dummy/config/locales/en.yml
|
122
|
-
- test/dummy/config/routes.rb
|
123
|
-
- test/dummy/config.ru
|
124
|
-
- test/dummy/db/development.sqlite3
|
125
|
-
- test/dummy/db/migrate/20110804223859_create_emails.rb
|
126
|
-
- test/dummy/db/migrate/20110804224806_create_delayed_jobs.rb
|
127
|
-
- test/dummy/db/schema.rb
|
128
|
-
- test/dummy/db/test.sqlite3
|
129
|
-
- test/dummy/log/development.log
|
130
|
-
- test/dummy/log/test.log
|
131
|
-
- test/dummy/public/404.html
|
132
|
-
- test/dummy/public/422.html
|
133
|
-
- test/dummy/public/500.html
|
134
|
-
- test/dummy/public/favicon.ico
|
135
|
-
- test/dummy/Rakefile
|
136
|
-
- test/dummy/script/delayed_job
|
137
|
-
- test/dummy/script/rails
|
138
|
-
- test/integration/navigation_test.rb
|
139
|
-
- test/test_helper.rb
|
140
|
-
- test/unit/email_test.rb
|
141
|
-
has_rdoc: true
|
86
|
+
- README.md
|
142
87
|
homepage: https://github.com/cerebris/delayed_mailhopper
|
143
88
|
licenses: []
|
144
|
-
|
145
89
|
post_install_message:
|
146
90
|
rdoc_options: []
|
147
|
-
|
148
|
-
require_paths:
|
91
|
+
require_paths:
|
149
92
|
- lib
|
150
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
94
|
none: false
|
152
|
-
requirements:
|
153
|
-
- -
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
|
156
|
-
|
157
|
-
- 0
|
158
|
-
version: "0"
|
159
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
100
|
none: false
|
161
|
-
requirements:
|
162
|
-
- -
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
|
165
|
-
segments:
|
166
|
-
- 0
|
167
|
-
version: "0"
|
101
|
+
requirements:
|
102
|
+
- - ! '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
168
105
|
requirements: []
|
169
|
-
|
170
106
|
rubyforge_project:
|
171
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.8.10
|
172
108
|
signing_key:
|
173
109
|
specification_version: 3
|
174
|
-
summary: A simple solution that uses ActiveRecord and DelayedJob to queue, deliver
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
- test/dummy/app/assets/stylesheets/application.css
|
179
|
-
- test/dummy/app/controllers/application_controller.rb
|
180
|
-
- test/dummy/app/helpers/application_helper.rb
|
181
|
-
- test/dummy/app/mailers/sample_mailer.rb
|
182
|
-
- test/dummy/app/views/layouts/application.html.erb
|
183
|
-
- test/dummy/app/views/sample_mailer/hello.text.erb
|
184
|
-
- test/dummy/config/application.rb
|
185
|
-
- test/dummy/config/boot.rb
|
186
|
-
- test/dummy/config/database.yml
|
187
|
-
- test/dummy/config/environment.rb
|
188
|
-
- test/dummy/config/environments/development.rb
|
189
|
-
- test/dummy/config/environments/production.rb
|
190
|
-
- test/dummy/config/environments/test.rb
|
191
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
192
|
-
- test/dummy/config/initializers/inflections.rb
|
193
|
-
- test/dummy/config/initializers/mailhopper.rb
|
194
|
-
- test/dummy/config/initializers/mime_types.rb
|
195
|
-
- test/dummy/config/initializers/secret_token.rb
|
196
|
-
- test/dummy/config/initializers/session_store.rb
|
197
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
198
|
-
- test/dummy/config/locales/en.yml
|
199
|
-
- test/dummy/config/routes.rb
|
200
|
-
- test/dummy/config.ru
|
201
|
-
- test/dummy/db/development.sqlite3
|
202
|
-
- test/dummy/db/migrate/20110804223859_create_emails.rb
|
203
|
-
- test/dummy/db/migrate/20110804224806_create_delayed_jobs.rb
|
204
|
-
- test/dummy/db/schema.rb
|
205
|
-
- test/dummy/db/test.sqlite3
|
206
|
-
- test/dummy/log/development.log
|
207
|
-
- test/dummy/log/test.log
|
208
|
-
- test/dummy/public/404.html
|
209
|
-
- test/dummy/public/422.html
|
210
|
-
- test/dummy/public/500.html
|
211
|
-
- test/dummy/public/favicon.ico
|
212
|
-
- test/dummy/Rakefile
|
213
|
-
- test/dummy/script/delayed_job
|
214
|
-
- test/dummy/script/rails
|
215
|
-
- test/integration/navigation_test.rb
|
216
|
-
- test/test_helper.rb
|
217
|
-
- test/unit/email_test.rb
|
110
|
+
summary: A simple solution that uses ActiveRecord and DelayedJob to queue, deliver
|
111
|
+
and archive emails in Rails apps.
|
112
|
+
test_files: []
|
113
|
+
has_rdoc:
|
data/README.rdoc
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
= DelayedMailhopper
|
2
|
-
|
3
|
-
DelayedMailhopper provides a simple solution to queue, deliver and archive emails in Rails apps. It extends Mailhopper and uses DelayedJob to queue delivery jobs asynchronously.
|
4
|
-
|
5
|
-
== Requirements
|
6
|
-
|
7
|
-
Rails 3.1+
|
8
|
-
DelayedJob
|
9
|
-
Mailhopper
|
10
|
-
|
11
|
-
== Installation
|
12
|
-
|
13
|
-
Add to your project's Gemfile:
|
14
|
-
|
15
|
-
gem 'delayed_mailhopper'
|
16
|
-
|
17
|
-
Install with bundler (note: also installs dependencies such as DelayedJob and Mailhopper):
|
18
|
-
|
19
|
-
bundle install
|
20
|
-
|
21
|
-
== Install and Configure Mailhopper and DelayedJob
|
22
|
-
|
23
|
-
If you haven't already, you'll need to run generators for both Mailhopper and DelayedJob and then migrate your database.
|
24
|
-
|
25
|
-
rails g mailhopper
|
26
|
-
rails g delayed_job
|
27
|
-
rake db:migrate
|
28
|
-
|
29
|
-
Please see the README for Mailhopper: https://github.com/cerebris/mailhopper
|
30
|
-
|
31
|
-
And for DelayedJob: https://github.com/collectiveidea/delayed_job/
|
32
|
-
|
33
|
-
== Copyright
|
34
|
-
|
35
|
-
Copyright (c) 2011 Cerebris Corporation. This is free software released under the MIT License (see MIT-LICENSE for details).
|
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 +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 "delayed_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
|
-
|
data/test/dummy/config/boot.rb
DELETED
@@ -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,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
|