Skip to content

Commit 3e4a190

Browse files
committed
Fix for Dotenv 3.1.5
In Dotenv 3.1.5, `Dotenv.parse` no longer returns values that are already in the environment. See bkeepers/dotenv#518 We can get the values though by setting overwrite: true, which works with both 3.1.4 and 3.1.5.
1 parent d9c2553 commit 3e4a190

File tree

2 files changed

+53
-50
lines changed

2 files changed

+53
-50
lines changed

Gemfile.lock

Lines changed: 52 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,35 @@ PATH
1616
GEM
1717
remote: https://rubygems.org/
1818
specs:
19-
actionpack (7.1.5.1)
20-
actionview (= 7.1.5.1)
21-
activesupport (= 7.1.5.1)
19+
actionpack (8.0.0.1)
20+
actionview (= 8.0.0.1)
21+
activesupport (= 8.0.0.1)
2222
nokogiri (>= 1.8.5)
23-
racc
2423
rack (>= 2.2.4)
2524
rack-session (>= 1.0.1)
2625
rack-test (>= 0.6.3)
2726
rails-dom-testing (~> 2.2)
2827
rails-html-sanitizer (~> 1.6)
29-
actionview (7.1.5.1)
30-
activesupport (= 7.1.5.1)
28+
useragent (~> 0.16)
29+
actionview (8.0.0.1)
30+
activesupport (= 8.0.0.1)
3131
builder (~> 3.1)
3232
erubi (~> 1.11)
3333
rails-dom-testing (~> 2.2)
3434
rails-html-sanitizer (~> 1.6)
35-
activesupport (7.1.5.1)
35+
activesupport (8.0.0.1)
3636
base64
3737
benchmark (>= 0.3)
3838
bigdecimal
39-
concurrent-ruby (~> 1.0, >= 1.0.2)
39+
concurrent-ruby (~> 1.0, >= 1.3.1)
4040
connection_pool (>= 2.2.5)
4141
drb
4242
i18n (>= 1.6, < 2)
4343
logger (>= 1.4.2)
4444
minitest (>= 5.1)
45-
mutex_m
4645
securerandom (>= 0.3)
47-
tzinfo (~> 2.0)
46+
tzinfo (~> 2.0, >= 2.0.5)
47+
uri (>= 0.13.1)
4848
ast (2.4.2)
4949
base64 (0.2.0)
5050
bcrypt_pbkdf (1.1.1)
@@ -56,101 +56,100 @@ GEM
5656
concurrent-ruby (1.3.4)
5757
connection_pool (2.4.1)
5858
crass (1.0.6)
59+
date (3.4.1)
5960
debug (1.9.2)
6061
irb (~> 1.10)
6162
reline (>= 0.3.8)
62-
dotenv (3.1.2)
63+
dotenv (3.1.5)
6364
drb (2.2.1)
6465
ed25519 (1.3.0)
6566
erubi (1.13.0)
6667
i18n (1.14.6)
6768
concurrent-ruby (~> 1.0)
68-
io-console (0.7.2)
69-
irb (1.14.0)
69+
io-console (0.8.0)
70+
irb (1.14.2)
7071
rdoc (>= 4.0.0)
7172
reline (>= 0.4.2)
72-
json (2.7.2)
73+
json (2.9.0)
7374
language_server-protocol (3.17.0.3)
74-
logger (1.6.2)
75+
logger (1.6.3)
7576
loofah (2.23.1)
7677
crass (~> 1.0.2)
7778
nokogiri (>= 1.12.0)
7879
minitest (5.25.4)
79-
mocha (2.4.5)
80+
mocha (2.7.1)
8081
ruby2_keywords (>= 0.0.5)
81-
mutex_m (0.3.0)
8282
net-scp (4.0.0)
8383
net-ssh (>= 2.6.5, < 8.0.0)
8484
net-sftp (4.0.0)
8585
net-ssh (>= 5.0.0, < 8.0.0)
8686
net-ssh (7.3.0)
87-
nokogiri (1.17.1-arm64-darwin)
87+
nokogiri (1.17.2-arm64-darwin)
8888
racc (~> 1.4)
89-
nokogiri (1.17.1-x86_64-darwin)
89+
nokogiri (1.17.2-x86_64-darwin)
9090
racc (~> 1.4)
91-
nokogiri (1.17.1-x86_64-linux)
91+
nokogiri (1.17.2-x86_64-linux)
9292
racc (~> 1.4)
93-
parallel (1.25.1)
94-
parser (3.3.4.0)
93+
ostruct (0.6.1)
94+
parallel (1.26.3)
95+
parser (3.3.6.0)
9596
ast (~> 2.4.1)
9697
racc
97-
psych (5.1.2)
98+
psych (5.2.1)
99+
date
98100
stringio
99101
racc (1.8.1)
100102
rack (3.1.8)
101103
rack-session (2.0.0)
102104
rack (>= 3.0.0)
103105
rack-test (2.1.0)
104106
rack (>= 1.3)
105-
rackup (2.1.0)
107+
rackup (2.2.1)
106108
rack (>= 3)
107-
webrick (~> 1.8)
108109
rails-dom-testing (2.2.0)
109110
activesupport (>= 5.0.0)
110111
minitest
111112
nokogiri (>= 1.6)
112-
rails-html-sanitizer (1.6.1)
113+
rails-html-sanitizer (1.6.2)
113114
loofah (~> 2.21)
114115
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
115-
railties (7.1.5.1)
116-
actionpack (= 7.1.5.1)
117-
activesupport (= 7.1.5.1)
118-
irb
116+
railties (8.0.0.1)
117+
actionpack (= 8.0.0.1)
118+
activesupport (= 8.0.0.1)
119+
irb (~> 1.13)
119120
rackup (>= 1.0.0)
120121
rake (>= 12.2)
121122
thor (~> 1.0, >= 1.2.2)
122123
zeitwerk (~> 2.6)
123124
rainbow (3.1.1)
124125
rake (13.2.1)
125-
rdoc (6.7.0)
126+
rdoc (6.8.1)
126127
psych (>= 4.0.0)
127-
regexp_parser (2.9.2)
128-
reline (0.5.9)
128+
regexp_parser (2.9.3)
129+
reline (0.5.12)
129130
io-console (~> 0.5)
130-
rexml (3.3.9)
131-
rubocop (1.65.1)
131+
rubocop (1.69.2)
132132
json (~> 2.3)
133133
language_server-protocol (>= 3.17.0)
134134
parallel (~> 1.10)
135135
parser (>= 3.3.0.2)
136136
rainbow (>= 2.2.2, < 4.0)
137-
regexp_parser (>= 2.4, < 3.0)
138-
rexml (>= 3.2.5, < 4.0)
139-
rubocop-ast (>= 1.31.1, < 2.0)
137+
regexp_parser (>= 2.9.3, < 3.0)
138+
rubocop-ast (>= 1.36.2, < 2.0)
140139
ruby-progressbar (~> 1.7)
141-
unicode-display_width (>= 2.4.0, < 3.0)
142-
rubocop-ast (1.32.0)
140+
unicode-display_width (>= 2.4.0, < 4.0)
141+
rubocop-ast (1.36.2)
143142
parser (>= 3.3.1.0)
144-
rubocop-minitest (0.35.1)
143+
rubocop-minitest (0.36.0)
145144
rubocop (>= 1.61, < 2.0)
146145
rubocop-ast (>= 1.31.1, < 2.0)
147-
rubocop-performance (1.21.1)
146+
rubocop-performance (1.23.0)
148147
rubocop (>= 1.48.1, < 2.0)
149148
rubocop-ast (>= 1.31.1, < 2.0)
150-
rubocop-rails (2.25.1)
149+
rubocop-rails (2.27.0)
151150
activesupport (>= 4.2.0)
152151
rack (>= 1.1)
153-
rubocop (>= 1.33.0, < 2.0)
152+
rubocop (>= 1.52.0, < 2.0)
154153
rubocop-ast (>= 1.31.1, < 2.0)
155154
rubocop-rails-omakase (1.0.0)
156155
rubocop
@@ -160,17 +159,21 @@ GEM
160159
ruby-progressbar (1.13.0)
161160
ruby2_keywords (0.0.5)
162161
securerandom (0.4.0)
163-
sshkit (1.23.0)
162+
sshkit (1.23.2)
164163
base64
165164
net-scp (>= 1.1.2)
166165
net-sftp (>= 2.1.2)
167166
net-ssh (>= 2.8.0)
168-
stringio (3.1.1)
169-
thor (1.3.1)
167+
ostruct
168+
stringio (3.1.2)
169+
thor (1.3.2)
170170
tzinfo (2.0.6)
171171
concurrent-ruby (~> 1.0)
172-
unicode-display_width (2.5.0)
173-
webrick (1.8.2)
172+
unicode-display_width (3.1.2)
173+
unicode-emoji (~> 4.0, >= 4.0.4)
174+
unicode-emoji (4.0.4)
175+
uri (1.0.2)
176+
useragent (0.16.11)
174177
zeitwerk (2.7.1)
175178

176179
PLATFORMS

lib/kamal/secrets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def secrets_files
3232
private
3333
def secrets
3434
@secrets ||= secrets_files.inject({}) do |secrets, secrets_file|
35-
secrets.merge!(::Dotenv.parse(secrets_file))
35+
secrets.merge!(::Dotenv.parse(secrets_file, overwrite: true))
3636
end
3737
end
3838

0 commit comments

Comments
 (0)