app_monit_rails 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +229 -158
- data/appmonit_rails_gem.gemspec +3 -6
- data/lib/app_monit/rails/config.rb +13 -3
- data/lib/app_monit/rails/subscriber.rb +3 -0
- data/lib/app_monit/rails/version.rb +1 -1
- data/spec/dummy/app/controllers/posts_controller.rb +4 -0
- data/spec/dummy/bin/rails +3 -3
- data/spec/dummy/bin/rake +2 -2
- data/spec/dummy/bin/setup +33 -0
- data/spec/dummy/config/application.rb +21 -15
- data/spec/dummy/config/boot.rb +2 -4
- data/spec/dummy/config/environment.rb +2 -2
- data/spec/dummy/config/environments/development.rb +47 -11
- data/spec/dummy/config/environments/production.rb +37 -38
- data/spec/dummy/config/environments/test.rb +33 -12
- data/spec/dummy/config/initializers/content_security_policy.rb +26 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -2
- data/spec/dummy/config/initializers/inflections.rb +4 -4
- data/spec/dummy/config/initializers/new_framework_defaults_7_0.rb +117 -0
- data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
- data/spec/dummy/config/routes.rb +4 -1
- data/spec/dummy/db/migrate/20130719074144_create_posts.rb +1 -1
- data/spec/dummy/db/schema.rb +11 -13
- data/spec/features/trigger_events_spec.rb +5 -2
- metadata +17 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9b412b710e8b195929b61cf40d579433fc8375ad0238d6cecf3bbdc7cbe8aa81
|
4
|
+
data.tar.gz: 96b44343578bd4ab5987a14c6bdbad571b54c100ed30a322e2cb61000ab3cd44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2ead782e5f39108485a1e6a4b01eca1680106451eebcd30bf8dea68d9a7626de9980e3f5703a7e3b009ead05a8ec82ca2c9c18c3d2cba9de313b209b005ea78
|
7
|
+
data.tar.gz: 5e3ce814e9c3becc00faf09adec4f24e79a4d0f5a0ed0a7790bc7cf1cb8f68c80747e591f8cc61e61a988c2a78c925331ac1be5947a372c2ea3a4ff79acdfdd0
|
data/Gemfile.lock
CHANGED
@@ -1,185 +1,256 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
app_monit_rails (0.0
|
4
|
+
app_monit_rails (0.1.0)
|
5
5
|
app_monit (>= 0.0.7)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
actionpack (=
|
12
|
-
|
10
|
+
actioncable (7.0.2.3)
|
11
|
+
actionpack (= 7.0.2.3)
|
12
|
+
activesupport (= 7.0.2.3)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
actionmailbox (7.0.2.3)
|
16
|
+
actionpack (= 7.0.2.3)
|
17
|
+
activejob (= 7.0.2.3)
|
18
|
+
activerecord (= 7.0.2.3)
|
19
|
+
activestorage (= 7.0.2.3)
|
20
|
+
activesupport (= 7.0.2.3)
|
21
|
+
mail (>= 2.7.1)
|
22
|
+
net-imap
|
23
|
+
net-pop
|
24
|
+
net-smtp
|
25
|
+
actionmailer (7.0.2.3)
|
26
|
+
actionpack (= 7.0.2.3)
|
27
|
+
actionview (= 7.0.2.3)
|
28
|
+
activejob (= 7.0.2.3)
|
29
|
+
activesupport (= 7.0.2.3)
|
13
30
|
mail (~> 2.5, >= 2.5.4)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
activesupport (=
|
31
|
+
net-imap
|
32
|
+
net-pop
|
33
|
+
net-smtp
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
|
+
actionpack (7.0.2.3)
|
36
|
+
actionview (= 7.0.2.3)
|
37
|
+
activesupport (= 7.0.2.3)
|
38
|
+
rack (~> 2.0, >= 2.2.0)
|
39
|
+
rack-test (>= 0.6.3)
|
40
|
+
rails-dom-testing (~> 2.0)
|
41
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
42
|
+
actiontext (7.0.2.3)
|
43
|
+
actionpack (= 7.0.2.3)
|
44
|
+
activerecord (= 7.0.2.3)
|
45
|
+
activestorage (= 7.0.2.3)
|
46
|
+
activesupport (= 7.0.2.3)
|
47
|
+
globalid (>= 0.6.0)
|
48
|
+
nokogiri (>= 1.8.5)
|
49
|
+
actionview (7.0.2.3)
|
50
|
+
activesupport (= 7.0.2.3)
|
21
51
|
builder (~> 3.1)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
erubi (~> 1.4)
|
53
|
+
rails-dom-testing (~> 2.0)
|
54
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
55
|
+
activejob (7.0.2.3)
|
56
|
+
activesupport (= 7.0.2.3)
|
57
|
+
globalid (>= 0.3.6)
|
58
|
+
activemodel (7.0.2.3)
|
59
|
+
activesupport (= 7.0.2.3)
|
60
|
+
activerecord (7.0.2.3)
|
61
|
+
activemodel (= 7.0.2.3)
|
62
|
+
activesupport (= 7.0.2.3)
|
63
|
+
activestorage (7.0.2.3)
|
64
|
+
actionpack (= 7.0.2.3)
|
65
|
+
activejob (= 7.0.2.3)
|
66
|
+
activerecord (= 7.0.2.3)
|
67
|
+
activesupport (= 7.0.2.3)
|
68
|
+
marcel (~> 1.0)
|
69
|
+
mini_mime (>= 1.1.0)
|
70
|
+
activesupport (7.0.2.3)
|
71
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
72
|
+
i18n (>= 1.6, < 2)
|
73
|
+
minitest (>= 5.1)
|
74
|
+
tzinfo (~> 2.0)
|
75
|
+
addressable (2.8.0)
|
76
|
+
public_suffix (>= 2.0.2, < 5.0)
|
77
|
+
app_monit (0.0.11)
|
78
|
+
builder (3.2.4)
|
79
|
+
capybara (3.36.0)
|
80
|
+
addressable
|
81
|
+
matrix
|
82
|
+
mini_mime (>= 0.1.3)
|
83
|
+
nokogiri (~> 1.8)
|
84
|
+
rack (>= 1.6.0)
|
85
|
+
rack-test (>= 0.6.3)
|
86
|
+
regexp_parser (>= 1.5, < 3.0)
|
87
|
+
xpath (~> 3.2)
|
88
|
+
coderay (1.1.3)
|
89
|
+
concurrent-ruby (1.1.10)
|
90
|
+
crack (0.4.5)
|
91
|
+
rexml
|
92
|
+
crass (1.0.6)
|
93
|
+
diff-lcs (1.5.0)
|
94
|
+
digest (3.1.0)
|
95
|
+
docile (1.4.0)
|
96
|
+
erubi (1.10.0)
|
97
|
+
ffi (1.15.5)
|
98
|
+
formatador (1.1.0)
|
99
|
+
globalid (1.0.0)
|
100
|
+
activesupport (>= 5.0)
|
101
|
+
guard (2.18.0)
|
58
102
|
formatador (>= 0.2.4)
|
59
|
-
listen (
|
60
|
-
lumberjack (
|
61
|
-
|
103
|
+
listen (>= 2.7, < 4.0)
|
104
|
+
lumberjack (>= 1.0.12, < 2.0)
|
105
|
+
nenv (~> 0.1)
|
106
|
+
notiffany (~> 0.0)
|
107
|
+
pry (>= 0.13.0)
|
108
|
+
shellany (~> 0.0)
|
62
109
|
thor (>= 0.18.1)
|
63
|
-
guard-
|
64
|
-
|
65
|
-
minitest (>= 3.0)
|
66
|
-
guard-rspec (4.3.1)
|
110
|
+
guard-compat (1.2.1)
|
111
|
+
guard-rspec (4.7.3)
|
67
112
|
guard (~> 2.1)
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
i18n (
|
72
|
-
|
73
|
-
listen (
|
74
|
-
|
75
|
-
rb-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
113
|
+
guard-compat (~> 1.1)
|
114
|
+
rspec (>= 2.99.0, < 4.0)
|
115
|
+
hashdiff (1.0.1)
|
116
|
+
i18n (1.10.0)
|
117
|
+
concurrent-ruby (~> 1.0)
|
118
|
+
listen (3.7.1)
|
119
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
120
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
121
|
+
loofah (2.16.0)
|
122
|
+
crass (~> 1.0.2)
|
123
|
+
nokogiri (>= 1.5.9)
|
124
|
+
lumberjack (1.2.8)
|
125
|
+
mail (2.7.1)
|
126
|
+
mini_mime (>= 0.1.1)
|
127
|
+
marcel (1.0.2)
|
128
|
+
matrix (0.4.2)
|
129
|
+
method_source (1.0.0)
|
130
|
+
mini_mime (1.1.2)
|
131
|
+
mini_portile2 (2.8.0)
|
132
|
+
minitest (5.15.0)
|
133
|
+
nenv (0.3.0)
|
134
|
+
net-imap (0.2.3)
|
135
|
+
digest
|
136
|
+
net-protocol
|
137
|
+
strscan
|
138
|
+
net-pop (0.1.1)
|
139
|
+
digest
|
140
|
+
net-protocol
|
141
|
+
timeout
|
142
|
+
net-protocol (0.1.3)
|
143
|
+
timeout
|
144
|
+
net-smtp (0.3.1)
|
145
|
+
digest
|
146
|
+
net-protocol
|
147
|
+
timeout
|
148
|
+
nio4r (2.5.8)
|
149
|
+
nokogiri (1.13.4)
|
150
|
+
mini_portile2 (~> 2.8.0)
|
151
|
+
racc (~> 1.4)
|
152
|
+
notiffany (0.1.3)
|
153
|
+
nenv (~> 0.1)
|
154
|
+
shellany (~> 0.0)
|
155
|
+
pry (0.14.1)
|
156
|
+
coderay (~> 1.1)
|
157
|
+
method_source (~> 1.0)
|
158
|
+
public_suffix (4.0.7)
|
159
|
+
racc (1.6.0)
|
160
|
+
rack (2.2.3)
|
161
|
+
rack-test (1.1.0)
|
162
|
+
rack (>= 1.0, < 3)
|
163
|
+
rails (7.0.2.3)
|
164
|
+
actioncable (= 7.0.2.3)
|
165
|
+
actionmailbox (= 7.0.2.3)
|
166
|
+
actionmailer (= 7.0.2.3)
|
167
|
+
actionpack (= 7.0.2.3)
|
168
|
+
actiontext (= 7.0.2.3)
|
169
|
+
actionview (= 7.0.2.3)
|
170
|
+
activejob (= 7.0.2.3)
|
171
|
+
activemodel (= 7.0.2.3)
|
172
|
+
activerecord (= 7.0.2.3)
|
173
|
+
activestorage (= 7.0.2.3)
|
174
|
+
activesupport (= 7.0.2.3)
|
175
|
+
bundler (>= 1.15.0)
|
176
|
+
railties (= 7.0.2.3)
|
177
|
+
rails-dom-testing (2.0.3)
|
178
|
+
activesupport (>= 4.2.0)
|
179
|
+
nokogiri (>= 1.6)
|
180
|
+
rails-html-sanitizer (1.4.2)
|
181
|
+
loofah (~> 2.3)
|
182
|
+
railties (7.0.2.3)
|
183
|
+
actionpack (= 7.0.2.3)
|
184
|
+
activesupport (= 7.0.2.3)
|
185
|
+
method_source
|
186
|
+
rake (>= 12.2)
|
187
|
+
thor (~> 1.0)
|
188
|
+
zeitwerk (~> 2.5)
|
189
|
+
rake (13.0.6)
|
190
|
+
rb-fsevent (0.11.1)
|
191
|
+
rb-inotify (0.10.1)
|
192
|
+
ffi (~> 1.0)
|
193
|
+
regexp_parser (2.3.0)
|
194
|
+
rexml (3.2.5)
|
195
|
+
rspec (3.11.0)
|
196
|
+
rspec-core (~> 3.11.0)
|
197
|
+
rspec-expectations (~> 3.11.0)
|
198
|
+
rspec-mocks (~> 3.11.0)
|
199
|
+
rspec-core (3.11.0)
|
200
|
+
rspec-support (~> 3.11.0)
|
201
|
+
rspec-expectations (3.11.0)
|
202
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
203
|
+
rspec-support (~> 3.11.0)
|
204
|
+
rspec-mocks (3.11.1)
|
125
205
|
diff-lcs (>= 1.2.0, < 2.0)
|
126
|
-
rspec-support (~> 3.
|
127
|
-
rspec-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
rspec-
|
134
|
-
rspec-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
sprockets-rails (2.2.0)
|
152
|
-
actionpack (>= 3.0)
|
153
|
-
activesupport (>= 3.0)
|
154
|
-
sprockets (>= 2.8, < 4.0)
|
155
|
-
sqlite3 (1.3.7)
|
156
|
-
thor (0.19.1)
|
157
|
-
thread_safe (0.3.4)
|
158
|
-
tilt (1.4.1)
|
159
|
-
timers (4.0.1)
|
160
|
-
hitimes
|
161
|
-
tzinfo (1.2.2)
|
162
|
-
thread_safe (~> 0.1)
|
163
|
-
webmock (1.20.0)
|
164
|
-
addressable (>= 2.3.6)
|
206
|
+
rspec-support (~> 3.11.0)
|
207
|
+
rspec-rails (5.1.1)
|
208
|
+
actionpack (>= 5.2)
|
209
|
+
activesupport (>= 5.2)
|
210
|
+
railties (>= 5.2)
|
211
|
+
rspec-core (~> 3.10)
|
212
|
+
rspec-expectations (~> 3.10)
|
213
|
+
rspec-mocks (~> 3.10)
|
214
|
+
rspec-support (~> 3.10)
|
215
|
+
rspec-support (3.11.0)
|
216
|
+
shellany (0.0.1)
|
217
|
+
simplecov (0.21.2)
|
218
|
+
docile (~> 1.1)
|
219
|
+
simplecov-html (~> 0.11)
|
220
|
+
simplecov_json_formatter (~> 0.1)
|
221
|
+
simplecov-html (0.12.3)
|
222
|
+
simplecov_json_formatter (0.1.4)
|
223
|
+
sqlite3 (1.4.2)
|
224
|
+
strscan (3.0.1)
|
225
|
+
thor (1.2.1)
|
226
|
+
timeout (0.2.0)
|
227
|
+
tzinfo (2.0.4)
|
228
|
+
concurrent-ruby (~> 1.0)
|
229
|
+
webmock (3.14.0)
|
230
|
+
addressable (>= 2.8.0)
|
165
231
|
crack (>= 0.3.2)
|
166
|
-
|
167
|
-
|
232
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
233
|
+
websocket-driver (0.7.5)
|
234
|
+
websocket-extensions (>= 0.1.0)
|
235
|
+
websocket-extensions (0.1.5)
|
236
|
+
xpath (3.2.0)
|
237
|
+
nokogiri (~> 1.8)
|
238
|
+
zeitwerk (2.5.4)
|
168
239
|
|
169
240
|
PLATFORMS
|
170
241
|
ruby
|
171
242
|
|
172
243
|
DEPENDENCIES
|
173
244
|
app_monit_rails!
|
174
|
-
bundler
|
245
|
+
bundler
|
175
246
|
capybara
|
176
|
-
guard-minitest
|
177
247
|
guard-rspec
|
178
|
-
|
179
|
-
minitest-reporters
|
180
|
-
rails (>= 4.1)
|
248
|
+
rails
|
181
249
|
rake
|
182
250
|
rspec-rails
|
183
251
|
simplecov
|
184
252
|
sqlite3
|
185
|
-
webmock
|
253
|
+
webmock
|
254
|
+
|
255
|
+
BUNDLED WITH
|
256
|
+
2.3.7
|
data/appmonit_rails_gem.gemspec
CHANGED
@@ -20,11 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency "app_monit", ">= 0.0.7"
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "bundler"
|
24
24
|
spec.add_development_dependency "rake"
|
25
|
-
spec.add_development_dependency "
|
26
|
-
spec.add_development_dependency "
|
27
|
-
spec.add_development_dependency "webmock", ">= 1.17.1"
|
28
|
-
spec.add_development_dependency "rails", ">= 4.1"
|
29
|
-
spec.add_development_dependency "guard-minitest" if RUBY_PLATFORM =~ /darwin/
|
25
|
+
spec.add_development_dependency "webmock"
|
26
|
+
spec.add_development_dependency "rails"
|
30
27
|
end
|
@@ -2,14 +2,24 @@ module AppMonit
|
|
2
2
|
module Rails
|
3
3
|
class Config
|
4
4
|
class << self
|
5
|
-
attr_writer :enabled
|
5
|
+
attr_writer :enabled, :name, :skipped_endpoints
|
6
6
|
|
7
7
|
def enabled?
|
8
|
-
@enabled.nil? ? ::Rails.env !=
|
8
|
+
@enabled.nil? ? ::Rails.env != 'test' : @enabled
|
9
9
|
end
|
10
10
|
|
11
11
|
def name
|
12
|
-
|
12
|
+
module_parent_name = if ::Rails::VERSION::MAJOR >= 6
|
13
|
+
::Rails.application.class.module_parent_name
|
14
|
+
else
|
15
|
+
::Rails.application.class.parent_name
|
16
|
+
end
|
17
|
+
|
18
|
+
@name.nil? ? module_parent_name : @name
|
19
|
+
end
|
20
|
+
|
21
|
+
def skipped_endpoints
|
22
|
+
@skipped_endpoints ||= []
|
13
23
|
end
|
14
24
|
end
|
15
25
|
end
|
@@ -13,6 +13,9 @@ module AppMonit
|
|
13
13
|
|
14
14
|
payload = event.payload
|
15
15
|
endpoint = "#{payload[:controller]}##{payload[:action]}"
|
16
|
+
|
17
|
+
return if AppMonit::Rails::Config.skipped_endpoints.include?(endpoint)
|
18
|
+
|
16
19
|
minute = event.time.to_i - (event.time.to_i % 60)
|
17
20
|
|
18
21
|
if payload[:exception]
|
data/spec/dummy/bin/rails
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
APP_PATH = File.expand_path(
|
3
|
-
require_relative
|
4
|
-
require
|
2
|
+
APP_PATH = File.expand_path("../config/application", __dir__)
|
3
|
+
require_relative "../config/boot"
|
4
|
+
require "rails/commands"
|
data/spec/dummy/bin/rake
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require "fileutils"
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = File.expand_path("..", __dir__)
|
6
|
+
|
7
|
+
def system!(*args)
|
8
|
+
system(*args) || abort("\n== Command #{args} failed ==")
|
9
|
+
end
|
10
|
+
|
11
|
+
FileUtils.chdir APP_ROOT do
|
12
|
+
# This script is a way to set up or update your development environment automatically.
|
13
|
+
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
14
|
+
# Add necessary setup steps to this file.
|
15
|
+
|
16
|
+
puts "== Installing dependencies =="
|
17
|
+
system! "gem install bundler --conservative"
|
18
|
+
system("bundle check") || system!("bundle install")
|
19
|
+
|
20
|
+
# puts "\n== Copying sample files =="
|
21
|
+
# unless File.exist?("config/database.yml")
|
22
|
+
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
|
23
|
+
# end
|
24
|
+
|
25
|
+
puts "\n== Preparing database =="
|
26
|
+
system! "bin/rails db:prepare"
|
27
|
+
|
28
|
+
puts "\n== Removing old logs and tempfiles =="
|
29
|
+
system! "bin/rails log:clear tmp:clear"
|
30
|
+
|
31
|
+
puts "\n== Restarting application server =="
|
32
|
+
system! "bin/rails restart"
|
33
|
+
end
|
@@ -1,28 +1,34 @@
|
|
1
|
-
|
1
|
+
require_relative "boot"
|
2
2
|
|
3
|
+
require "rails"
|
3
4
|
# Pick the frameworks you want:
|
5
|
+
require "active_model/railtie"
|
6
|
+
require "active_job/railtie"
|
4
7
|
require "active_record/railtie"
|
8
|
+
# require "active_storage/engine"
|
5
9
|
require "action_controller/railtie"
|
6
10
|
require "action_mailer/railtie"
|
7
|
-
require "
|
8
|
-
# require "
|
11
|
+
# require "action_mailbox/engine"
|
12
|
+
# require "action_text/engine"
|
13
|
+
require "action_view/railtie"
|
14
|
+
# require "action_cable/engine"
|
15
|
+
require "rails/test_unit/railtie"
|
9
16
|
|
17
|
+
# Require the gems listed in Gemfile, including any gems
|
18
|
+
# you've limited to :test, :development, or :production.
|
10
19
|
Bundler.require(*Rails.groups)
|
11
|
-
require "app_monit_rails"
|
12
20
|
|
13
21
|
module Dummy
|
14
22
|
class Application < Rails::Application
|
15
|
-
#
|
16
|
-
|
17
|
-
# -- all .rb files in that directory are automatically loaded.
|
23
|
+
# Initialize configuration defaults for originally generated Rails version.
|
24
|
+
config.load_defaults 5.0
|
18
25
|
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
|
23
|
-
#
|
24
|
-
# config.
|
25
|
-
# config.
|
26
|
+
# Configuration for the application, engines, and railties goes here.
|
27
|
+
#
|
28
|
+
# These settings can be overridden in specific environments using the files
|
29
|
+
# in config/environments, which are processed later.
|
30
|
+
#
|
31
|
+
# config.time_zone = "Central Time (US & Canada)"
|
32
|
+
# config.eager_load_paths << Rails.root.join("extras")
|
26
33
|
end
|
27
34
|
end
|
28
|
-
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
1
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
3
2
|
|
4
|
-
require
|
5
|
-
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
3
|
+
require "bundler/setup" # Set up gems listed in the Gemfile.
|