app_monit_rails 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9ec408175c3dca1c53ce46e3ff69eea8ad95eada
4
- data.tar.gz: 76ee03315b394803a49f9e98268c197366000f90
2
+ SHA256:
3
+ metadata.gz: 9b412b710e8b195929b61cf40d579433fc8375ad0238d6cecf3bbdc7cbe8aa81
4
+ data.tar.gz: 96b44343578bd4ab5987a14c6bdbad571b54c100ed30a322e2cb61000ab3cd44
5
5
  SHA512:
6
- metadata.gz: 735ea037097a656b6feb264fbe7f25bc7398e64433bb7b25268cff28b53ed04c554844f532672f41a35ab5f130fead71095c944af41ef8c0cb20361625ca4b0f
7
- data.tar.gz: 14885b4f5fa7c57667273f176ee7087f581d3b4a03d8c7a45af3aea909d93a28916eca667447606ce96afdabf5360f776c2b584c597f85329efebbeb85c7181d
6
+ metadata.gz: b2ead782e5f39108485a1e6a4b01eca1680106451eebcd30bf8dea68d9a7626de9980e3f5703a7e3b009ead05a8ec82ca2c9c18c3d2cba9de313b209b005ea78
7
+ data.tar.gz: 5e3ce814e9c3becc00faf09adec4f24e79a4d0f5a0ed0a7790bc7cf1cb8f68c80747e591f8cc61e61a988c2a78c925331ac1be5947a372c2ea3a4ff79acdfdd0
data/Gemfile.lock CHANGED
@@ -1,218 +1,256 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_monit_rails (0.0.6)
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
- actionmailer (4.2.0)
11
- actionpack (= 4.2.0)
12
- actionview (= 4.2.0)
13
- activejob (= 4.2.0)
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)
14
30
  mail (~> 2.5, >= 2.5.4)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.0)
17
- actionview (= 4.2.0)
18
- activesupport (= 4.2.0)
19
- rack (~> 1.6.0)
20
- rack-test (~> 0.6.2)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
- actionview (4.2.0)
24
- activesupport (= 4.2.0)
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)
25
51
  builder (~> 3.1)
26
- erubis (~> 2.7.0)
27
- rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
29
- activejob (4.2.0)
30
- activesupport (= 4.2.0)
31
- globalid (>= 0.3.0)
32
- activemodel (4.2.0)
33
- activesupport (= 4.2.0)
34
- builder (~> 3.1)
35
- activerecord (4.2.0)
36
- activemodel (= 4.2.0)
37
- activesupport (= 4.2.0)
38
- arel (~> 6.0)
39
- activesupport (4.2.0)
40
- i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
- minitest (~> 5.1)
43
- thread_safe (~> 0.3, >= 0.3.4)
44
- tzinfo (~> 1.1)
45
- addressable (2.3.7)
46
- ansi (1.5.0)
47
- app_monit (0.0.9)
48
- arel (6.0.0)
49
- builder (3.2.2)
50
- capybara (2.4.4)
51
- mime-types (>= 1.16)
52
- nokogiri (>= 1.3.3)
53
- rack (>= 1.0.0)
54
- rack-test (>= 0.5.4)
55
- xpath (~> 2.0)
56
- celluloid (0.16.0)
57
- timers (~> 4.0.0)
58
- coderay (1.1.0)
59
- crack (0.4.2)
60
- safe_yaml (~> 1.0.0)
61
- diff-lcs (1.2.5)
62
- docile (1.1.5)
63
- erubis (2.7.0)
64
- ffi (1.9.6)
65
- formatador (0.2.5)
66
- globalid (0.3.3)
67
- activesupport (>= 4.1.0)
68
- guard (2.12.4)
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)
69
102
  formatador (>= 0.2.4)
70
- listen (~> 2.7)
71
- lumberjack (~> 1.0)
103
+ listen (>= 2.7, < 4.0)
104
+ lumberjack (>= 1.0.12, < 2.0)
72
105
  nenv (~> 0.1)
73
106
  notiffany (~> 0.0)
74
- pry (>= 0.9.12)
107
+ pry (>= 0.13.0)
75
108
  shellany (~> 0.0)
76
109
  thor (>= 0.18.1)
77
110
  guard-compat (1.2.1)
78
- guard-minitest (2.4.4)
79
- guard-compat (~> 1.2)
80
- minitest (>= 3.0)
81
- guard-rspec (4.5.0)
111
+ guard-rspec (4.7.3)
82
112
  guard (~> 2.1)
83
113
  guard-compat (~> 1.1)
84
114
  rspec (>= 2.99.0, < 4.0)
85
- hike (1.2.3)
86
- hitimes (1.2.2)
87
- i18n (0.7.0)
88
- json (1.8.2)
89
- listen (2.8.5)
90
- celluloid (>= 0.15.2)
91
- rb-fsevent (>= 0.9.3)
92
- rb-inotify (>= 0.9)
93
- loofah (2.0.1)
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)
94
123
  nokogiri (>= 1.5.9)
95
- lumberjack (1.0.9)
96
- mail (2.6.3)
97
- mime-types (>= 1.16, < 3)
98
- method_source (0.8.2)
99
- mime-types (2.4.3)
100
- mini_portile (0.6.2)
101
- minitest (5.5.1)
102
- minitest-reporters (1.0.11)
103
- ansi
104
- builder
105
- minitest (>= 5.0)
106
- ruby-progressbar
107
- multi_json (1.10.1)
108
- nenv (0.2.0)
109
- nokogiri (1.6.6.2)
110
- mini_portile (~> 0.6.0)
111
- notiffany (0.0.6)
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)
112
153
  nenv (~> 0.1)
113
154
  shellany (~> 0.0)
114
- pry (0.10.1)
115
- coderay (~> 1.1.0)
116
- method_source (~> 0.8.1)
117
- slop (~> 3.4)
118
- rack (1.6.0)
119
- rack-test (0.6.3)
120
- rack (>= 1.0)
121
- rails (4.2.0)
122
- actionmailer (= 4.2.0)
123
- actionpack (= 4.2.0)
124
- actionview (= 4.2.0)
125
- activejob (= 4.2.0)
126
- activemodel (= 4.2.0)
127
- activerecord (= 4.2.0)
128
- activesupport (= 4.2.0)
129
- bundler (>= 1.3.0, < 2.0)
130
- railties (= 4.2.0)
131
- sprockets-rails
132
- rails-deprecated_sanitizer (1.0.3)
133
- activesupport (>= 4.2.0.alpha)
134
- rails-dom-testing (1.0.5)
135
- activesupport (>= 4.2.0.beta, < 5.0)
136
- nokogiri (~> 1.6.0)
137
- rails-deprecated_sanitizer (>= 1.0.1)
138
- rails-html-sanitizer (1.0.1)
139
- loofah (~> 2.0)
140
- railties (4.2.0)
141
- actionpack (= 4.2.0)
142
- activesupport (= 4.2.0)
143
- rake (>= 0.8.7)
144
- thor (>= 0.18.1, < 2.0)
145
- rake (10.4.2)
146
- rb-fsevent (0.9.4)
147
- rb-inotify (0.9.5)
148
- ffi (>= 0.5.0)
149
- rspec (3.2.0)
150
- rspec-core (~> 3.2.0)
151
- rspec-expectations (~> 3.2.0)
152
- rspec-mocks (~> 3.2.0)
153
- rspec-core (3.2.1)
154
- rspec-support (~> 3.2.0)
155
- rspec-expectations (3.2.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)
156
202
  diff-lcs (>= 1.2.0, < 2.0)
157
- rspec-support (~> 3.2.0)
158
- rspec-mocks (3.2.1)
203
+ rspec-support (~> 3.11.0)
204
+ rspec-mocks (3.11.1)
159
205
  diff-lcs (>= 1.2.0, < 2.0)
160
- rspec-support (~> 3.2.0)
161
- rspec-rails (3.2.1)
162
- actionpack (>= 3.0, < 4.3)
163
- activesupport (>= 3.0, < 4.3)
164
- railties (>= 3.0, < 4.3)
165
- rspec-core (~> 3.2.0)
166
- rspec-expectations (~> 3.2.0)
167
- rspec-mocks (~> 3.2.0)
168
- rspec-support (~> 3.2.0)
169
- rspec-support (3.2.2)
170
- ruby-progressbar (1.7.1)
171
- safe_yaml (1.0.4)
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)
172
216
  shellany (0.0.1)
173
- simplecov (0.9.2)
174
- docile (~> 1.1.0)
175
- multi_json (~> 1.0)
176
- simplecov-html (~> 0.9.0)
177
- simplecov-html (0.9.0)
178
- slop (3.6.0)
179
- sprockets (2.12.3)
180
- hike (~> 1.2)
181
- multi_json (~> 1.0)
182
- rack (~> 1.0)
183
- tilt (~> 1.1, != 1.3.0)
184
- sprockets-rails (2.2.4)
185
- actionpack (>= 3.0)
186
- activesupport (>= 3.0)
187
- sprockets (>= 2.8, < 4.0)
188
- sqlite3 (1.3.10)
189
- thor (0.19.1)
190
- thread_safe (0.3.4)
191
- tilt (1.4.1)
192
- timers (4.0.1)
193
- hitimes
194
- tzinfo (1.2.2)
195
- thread_safe (~> 0.1)
196
- webmock (1.20.4)
197
- addressable (>= 2.3.6)
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)
198
231
  crack (>= 0.3.2)
199
- xpath (2.0.0)
200
- nokogiri (~> 1.3)
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)
201
239
 
202
240
  PLATFORMS
203
241
  ruby
204
242
 
205
243
  DEPENDENCIES
206
244
  app_monit_rails!
207
- bundler (>= 1.5.0)
245
+ bundler
208
246
  capybara
209
- guard-minitest
210
247
  guard-rspec
211
- minitest (>= 5.2.2)
212
- minitest-reporters
213
- rails (>= 4.1)
248
+ rails
214
249
  rake
215
250
  rspec-rails
216
251
  simplecov
217
252
  sqlite3
218
- webmock (>= 1.17.1)
253
+ webmock
254
+
255
+ BUNDLED WITH
256
+ 2.3.7
@@ -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", ">= 1.5.0"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake"
25
- spec.add_development_dependency "minitest", ">= 5.2.2"
26
- spec.add_development_dependency "minitest-reporters"
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
@@ -5,11 +5,17 @@ module AppMonit
5
5
  attr_writer :enabled, :name, :skipped_endpoints
6
6
 
7
7
  def enabled?
8
- @enabled.nil? ? ::Rails.env != "test" : @enabled
8
+ @enabled.nil? ? ::Rails.env != 'test' : @enabled
9
9
  end
10
10
 
11
11
  def name
12
- @name.nil? ? ::Rails.application.class.parent_name : @name
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
13
19
  end
14
20
 
15
21
  def skipped_endpoints
@@ -1,5 +1,5 @@
1
1
  module AppMonit
2
2
  module Rails
3
- VERSION = "0.0.6"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -121,11 +121,8 @@ module AppMonit
121
121
  AppMonit::Rails.logger.debug "Sending to collector"
122
122
 
123
123
  if events.any?
124
- begin
125
- AppMonit::Http.post('/v1/events', event: events)
126
- rescue Net::ReadTimeout
127
- AppMonit::Rails.logger.debug "Response took to longer than #{AppMonit::Config.timeout} second(s), but we assume it's been send"
128
- end
124
+ AppMonit::Http.post('/v1/events', event: events)
125
+
129
126
  @requests.clear
130
127
  @errors.clear
131
128
  end
@@ -51,7 +51,7 @@ class PostsController < ApplicationController
51
51
  end
52
52
 
53
53
  def skipped
54
- render text: 'skipped'
54
+ render plain: 'skipped'
55
55
  end
56
56
 
57
57
  private
data/spec/dummy/bin/rails CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
2
+ APP_PATH = File.expand_path("../config/application", __dir__)
3
+ require_relative "../config/boot"
4
+ require "rails/commands"
data/spec/dummy/bin/rake CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
2
+ require_relative "../config/boot"
3
+ require "rake"
4
4
  Rake.application.run
@@ -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
- require File.expand_path('../boot', __FILE__)
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 "sprockets/railtie"
8
- # require "rails/test_unit/railtie"
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
- # Settings in config/environments/* take precedence over those specified here.
16
- # Application configuration should go into files in config/initializers
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
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
20
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
21
- # config.time_zone = 'Central Time (US & Canada)'
22
-
23
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
24
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
25
- # config.i18n.default_locale = :de
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
-
@@ -1,5 +1,3 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
1
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
3
2
 
4
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
3
+ require "bundler/setup" # Set up gems listed in the Gemfile.
@@ -1,5 +1,5 @@
1
1
  # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
2
+ require_relative "application"
3
3
 
4
4
  # Initialize the Rails application.
5
- Dummy::Application.initialize!
5
+ Rails.application.initialize!