Skip to content

Commit 5e8a09d

Browse files
committed
add dotfile for console env var
1 parent b4cedfc commit 5e8a09d

File tree

3 files changed

+57
-5
lines changed

3 files changed

+57
-5
lines changed

Gemfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@ gem "bootsnap", require: false
4747
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
4848
# gem "image_processing", "~> 1.2"
4949

50+
gem "simple_form", "~> 5.3"
51+
gem "devise", "~> 4.9"
52+
53+
5054
group :development, :test do
5155
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
5256
gem "debug", platforms: %i[ mri windows ]
57+
gem "dotenv", "~> 3.1"
5358
end
5459

5560
group :development do
@@ -68,7 +73,3 @@ group :test do
6873
gem "capybara"
6974
gem "selenium-webdriver"
7075
end
71-
72-
gem "simple_form", "~> 5.3"
73-
74-
gem "devise", "~> 4.9"

Gemfile.lock

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ GEM
7777
tzinfo (~> 2.0)
7878
addressable (2.8.7)
7979
public_suffix (>= 2.0.2, < 7.0)
80+
ast (2.4.2)
8081
base64 (0.2.0)
8182
bcrypt (3.1.20)
8283
bigdecimal (3.1.8)
@@ -108,6 +109,7 @@ GEM
108109
railties (>= 4.1.0)
109110
responders
110111
warden (~> 1.2.3)
112+
dotenv (3.1.2)
111113
drb (2.2.1)
112114
erubi (1.13.0)
113115
globalid (1.2.1)
@@ -123,6 +125,9 @@ GEM
123125
activesupport (>= 5.0.0)
124126
jsbundling-rails (1.3.0)
125127
railties (>= 6.0.0)
128+
json (2.7.2)
129+
language_server-protocol (3.17.0.3)
130+
lint_roller (1.1.0)
126131
logger (1.6.0)
127132
loofah (2.22.0)
128133
crass (~> 1.0.2)
@@ -161,6 +166,10 @@ GEM
161166
nokogiri (1.16.6-x86_64-linux)
162167
racc (~> 1.4)
163168
orm_adapter (0.5.0)
169+
parallel (1.25.1)
170+
parser (3.3.3.0)
171+
ast (~> 2.4.1)
172+
racc
164173
pg (1.5.6)
165174
psych (5.1.2)
166175
stringio
@@ -205,6 +214,7 @@ GEM
205214
rake (>= 12.2)
206215
thor (~> 1.0, >= 1.2.2)
207216
zeitwerk (~> 2.6)
217+
rainbow (3.1.1)
208218
rake (13.2.1)
209219
rdoc (6.7.0)
210220
psych (>= 4.0.0)
@@ -220,6 +230,28 @@ GEM
220230
railties (>= 5.2)
221231
rexml (3.3.1)
222232
strscan
233+
rubocop (1.64.1)
234+
json (~> 2.3)
235+
language_server-protocol (>= 3.17.0)
236+
parallel (~> 1.10)
237+
parser (>= 3.3.0.2)
238+
rainbow (>= 2.2.2, < 4.0)
239+
regexp_parser (>= 1.8, < 3.0)
240+
rexml (>= 3.2.5, < 4.0)
241+
rubocop-ast (>= 1.31.1, < 2.0)
242+
ruby-progressbar (~> 1.7)
243+
unicode-display_width (>= 2.4.0, < 3.0)
244+
rubocop-ast (1.31.3)
245+
parser (>= 3.3.1.0)
246+
rubocop-performance (1.21.1)
247+
rubocop (>= 1.48.1, < 2.0)
248+
rubocop-ast (>= 1.31.1, < 2.0)
249+
rubocop-rails (2.25.1)
250+
activesupport (>= 4.2.0)
251+
rack (>= 1.1)
252+
rubocop (>= 1.33.0, < 2.0)
253+
rubocop-ast (>= 1.31.1, < 2.0)
254+
ruby-progressbar (1.13.0)
223255
rubyzip (2.3.2)
224256
selenium-webdriver (4.22.0)
225257
base64 (~> 0.2)
@@ -237,6 +269,21 @@ GEM
237269
actionpack (>= 6.1)
238270
activesupport (>= 6.1)
239271
sprockets (>= 3.0.0)
272+
standard (1.39.1)
273+
language_server-protocol (~> 3.17.0.2)
274+
lint_roller (~> 1.0)
275+
rubocop (~> 1.64.0)
276+
standard-custom (~> 1.0.0)
277+
standard-performance (~> 1.4)
278+
standard-custom (1.0.2)
279+
lint_roller (~> 1.0)
280+
rubocop (~> 1.50)
281+
standard-performance (1.4.0)
282+
lint_roller (~> 1.1)
283+
rubocop-performance (~> 1.21.0)
284+
standard-rails (1.1.0)
285+
lint_roller (~> 1.0)
286+
rubocop-rails (~> 2.25.0)
240287
stimulus-rails (1.3.3)
241288
railties (>= 6.0.0)
242289
stringio (3.1.1)
@@ -249,6 +296,7 @@ GEM
249296
railties (>= 6.0.0)
250297
tzinfo (2.0.6)
251298
concurrent-ruby (~> 1.0)
299+
unicode-display_width (2.5.0)
252300
warden (1.2.9)
253301
rack (>= 2.0.9)
254302
web-console (4.2.1)
@@ -279,6 +327,7 @@ DEPENDENCIES
279327
cssbundling-rails
280328
debug
281329
devise (~> 4.9)
330+
dotenv (~> 3.1)
282331
jbuilder
283332
jsbundling-rails
284333
pg (~> 1.1)
@@ -288,6 +337,8 @@ DEPENDENCIES
288337
selenium-webdriver
289338
simple_form (~> 5.3)
290339
sprockets-rails
340+
standard (~> 1.39)
341+
standard-rails
291342
stimulus-rails
292343
turbo-rails
293344
tzinfo-data

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<%= render "layouts/flash" %>
1717
</div>
1818
<%= yield %>
19-
<% console if Rails.env == 'development' %>
19+
<% console if Rails.env == 'development' && ENV["WEB_CONSOLE"] %>
2020
</body>
2121
</html>

0 commit comments

Comments
 (0)