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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2e16e8914f679acb64fd2832699c439c6878eb0d
4
- data.tar.gz: e0ed46dbce520e13f945b24fb2426a71845a6580
2
+ SHA256:
3
+ metadata.gz: 9b412b710e8b195929b61cf40d579433fc8375ad0238d6cecf3bbdc7cbe8aa81
4
+ data.tar.gz: 96b44343578bd4ab5987a14c6bdbad571b54c100ed30a322e2cb61000ab3cd44
5
5
  SHA512:
6
- metadata.gz: 4a7bfcdbed0582d77d103bb9de8ac428b12bca2f6e93b5d89a22916d294a894c566824d63d8a6f8149070c20795763b2d3ed7d23cc1daa9a814a5edd70a10edb
7
- data.tar.gz: 6e48300dd255c950dc2bef186e86afa67ffbbbdd42c2cff751b42df6492e0b4ff037db7a81bebd1881689057225d1ad85b9178bcaf52bfee8962f72843e78417
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.3)
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.1.6)
11
- actionpack (= 4.1.6)
12
- actionview (= 4.1.6)
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
- actionpack (4.1.6)
15
- actionview (= 4.1.6)
16
- activesupport (= 4.1.6)
17
- rack (~> 1.5.2)
18
- rack-test (~> 0.6.2)
19
- actionview (4.1.6)
20
- activesupport (= 4.1.6)
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
- erubis (~> 2.7.0)
23
- activemodel (4.1.6)
24
- activesupport (= 4.1.6)
25
- builder (~> 3.1)
26
- activerecord (4.1.6)
27
- activemodel (= 4.1.6)
28
- activesupport (= 4.1.6)
29
- arel (~> 5.0.0)
30
- activesupport (4.1.6)
31
- i18n (~> 0.6, >= 0.6.9)
32
- json (~> 1.7, >= 1.7.7)
33
- minitest (~> 5.1)
34
- thread_safe (~> 0.1)
35
- tzinfo (~> 1.1)
36
- addressable (2.3.6)
37
- ansi (1.4.3)
38
- app_monit (0.0.7)
39
- arel (5.0.1.20140414130214)
40
- builder (3.2.2)
41
- capybara (2.4.4)
42
- mime-types (>= 1.16)
43
- nokogiri (>= 1.3.3)
44
- rack (>= 1.0.0)
45
- rack-test (>= 0.5.4)
46
- xpath (~> 2.0)
47
- celluloid (0.16.0)
48
- timers (~> 4.0.0)
49
- coderay (1.1.0)
50
- crack (0.4.2)
51
- safe_yaml (~> 1.0.0)
52
- diff-lcs (1.2.5)
53
- docile (1.1.5)
54
- erubis (2.7.0)
55
- ffi (1.9.6)
56
- formatador (0.2.5)
57
- guard (2.6.1)
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 (~> 2.7)
60
- lumberjack (~> 1.0)
61
- pry (>= 0.9.12)
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-minitest (2.3.2)
64
- guard (~> 2.0)
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
- rspec (>= 2.14, < 4.0)
69
- hike (1.2.3)
70
- hitimes (1.2.2)
71
- i18n (0.6.11)
72
- json (1.8.1)
73
- listen (2.7.11)
74
- celluloid (>= 0.15.2)
75
- rb-fsevent (>= 0.9.3)
76
- rb-inotify (>= 0.9)
77
- lumberjack (1.0.9)
78
- mail (2.6.1)
79
- mime-types (>= 1.16, < 3)
80
- method_source (0.8.2)
81
- mime-types (2.4.3)
82
- mini_portile (0.6.0)
83
- minitest (5.4.2)
84
- minitest-reporters (1.0.6)
85
- ansi
86
- builder
87
- minitest (>= 5.0)
88
- ruby-progressbar
89
- multi_json (1.10.1)
90
- nokogiri (1.6.3.1)
91
- mini_portile (= 0.6.0)
92
- pry (0.10.1)
93
- coderay (~> 1.1.0)
94
- method_source (~> 0.8.1)
95
- slop (~> 3.4)
96
- rack (1.5.2)
97
- rack-test (0.6.2)
98
- rack (>= 1.0)
99
- rails (4.1.6)
100
- actionmailer (= 4.1.6)
101
- actionpack (= 4.1.6)
102
- actionview (= 4.1.6)
103
- activemodel (= 4.1.6)
104
- activerecord (= 4.1.6)
105
- activesupport (= 4.1.6)
106
- bundler (>= 1.3.0, < 2.0)
107
- railties (= 4.1.6)
108
- sprockets-rails (~> 2.0)
109
- railties (4.1.6)
110
- actionpack (= 4.1.6)
111
- activesupport (= 4.1.6)
112
- rake (>= 0.8.7)
113
- thor (>= 0.18.1, < 2.0)
114
- rake (10.3.2)
115
- rb-fsevent (0.9.4)
116
- rb-inotify (0.9.5)
117
- ffi (>= 0.5.0)
118
- rspec (3.1.0)
119
- rspec-core (~> 3.1.0)
120
- rspec-expectations (~> 3.1.0)
121
- rspec-mocks (~> 3.1.0)
122
- rspec-core (3.1.7)
123
- rspec-support (~> 3.1.0)
124
- rspec-expectations (3.1.2)
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.1.0)
127
- rspec-mocks (3.1.3)
128
- rspec-support (~> 3.1.0)
129
- rspec-rails (3.1.0)
130
- actionpack (>= 3.0)
131
- activesupport (>= 3.0)
132
- railties (>= 3.0)
133
- rspec-core (~> 3.1.0)
134
- rspec-expectations (~> 3.1.0)
135
- rspec-mocks (~> 3.1.0)
136
- rspec-support (~> 3.1.0)
137
- rspec-support (3.1.2)
138
- ruby-progressbar (1.6.0)
139
- safe_yaml (1.0.4)
140
- simplecov (0.9.1)
141
- docile (~> 1.1.0)
142
- multi_json (~> 1.0)
143
- simplecov-html (~> 0.8.0)
144
- simplecov-html (0.8.0)
145
- slop (3.6.0)
146
- sprockets (2.11.0)
147
- hike (~> 1.2)
148
- multi_json (~> 1.0)
149
- rack (~> 1.0)
150
- tilt (~> 1.1, != 1.3.0)
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
- xpath (2.0.0)
167
- 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)
168
239
 
169
240
  PLATFORMS
170
241
  ruby
171
242
 
172
243
  DEPENDENCIES
173
244
  app_monit_rails!
174
- bundler (>= 1.5.0)
245
+ bundler
175
246
  capybara
176
- guard-minitest
177
247
  guard-rspec
178
- minitest (>= 5.2.2)
179
- minitest-reporters
180
- rails (>= 4.1)
248
+ rails
181
249
  rake
182
250
  rspec-rails
183
251
  simplecov
184
252
  sqlite3
185
- 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
@@ -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 != "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
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]
@@ -1,5 +1,5 @@
1
1
  module AppMonit
2
2
  module Rails
3
- VERSION = "0.0.4"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -50,6 +50,10 @@ class PostsController < ApplicationController
50
50
  raise 'Exception'
51
51
  end
52
52
 
53
+ def skipped
54
+ render plain: 'skipped'
55
+ end
56
+
53
57
  private
54
58
  # Use callbacks to share common setup or constraints between actions.
55
59
  def set_post
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!