hephaestus 0.8.7.1 → 0.8.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/config/database.yml +2 -2
- data/lib/hephaestus/engine.rb +14 -0
- data/lib/hephaestus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7f1fb3a9cdf370e9ad3e756ae008da75fdb68214c0c3261fb4ddb18ca1b277b
|
4
|
+
data.tar.gz: 37023803d5bef1d0911e504713127e17329001cfb3ba0be3b18aa816f7ee2979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9904110800094806cbdec666a076e9df54e1abea841de0aa76590d41d58dae7c40dffe37b3484442be7f7dbd220e780f7d4e75aa1c465b11a01df8bfadb585
|
7
|
+
data.tar.gz: 346432f6710572a9a080c2dec3d89aa8f4d036f21b5083cd1ac8a07852388f61f6cf71fe652d9bfa7164320ccaea70330baa01c0fa560a1861e76181cddd1370
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# [v0.8.7.3] - 04-12-2024
|
2
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7.2...v0.8.7.3
|
3
|
+
# [v0.8.7.2] - 04-12-2024
|
4
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7.1...v0.8.7.2
|
1
5
|
# [v0.8.7.1] - 04-12-2024
|
2
6
|
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7...v0.8.7.1
|
3
7
|
# [v0.8.7] - 04-12-2024
|
data/config/database.yml
CHANGED
@@ -49,7 +49,7 @@ staging:
|
|
49
49
|
# url: <%= ENV["DATABASE_URL"] %>
|
50
50
|
queue:
|
51
51
|
<<: *default_productionish
|
52
|
-
url:
|
52
|
+
url: <%= ENV["DATABASE_URL"] %>
|
53
53
|
migrations_paths: db/queue_migrate
|
54
54
|
|
55
55
|
production:
|
@@ -58,5 +58,5 @@ production:
|
|
58
58
|
# url: <%= ENV["DATABASE_URL"] %>
|
59
59
|
queue:
|
60
60
|
<<: *default_productionish
|
61
|
-
url:
|
61
|
+
url: <%= ENV["DATABASE_URL"] %>
|
62
62
|
migrations_paths: db/queue_migrate
|
data/lib/hephaestus/engine.rb
CHANGED
@@ -60,6 +60,18 @@ module Hephaestus
|
|
60
60
|
match("/*unmatched_route", to: "application#not_found", via: :all)
|
61
61
|
end
|
62
62
|
end
|
63
|
+
|
64
|
+
def load_environment
|
65
|
+
unless Rails.env.local?
|
66
|
+
ENV["DATABASE_URL"] = op_read("op://Infra/Plug #{Rails.env.capitalize} Secrets/Common/DATABASE_URL")
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def op_read(label)
|
72
|
+
%x(#{include_sudo?}op read "#{label}").chomp.tap do
|
73
|
+
raise "Failed to fetch `#{label}` from 1Password" unless $CHILD_STATUS.success?
|
74
|
+
end
|
63
75
|
end
|
64
76
|
|
65
77
|
def check_dependencies!
|
@@ -75,6 +87,8 @@ module Hephaestus
|
|
75
87
|
ENV.fetch("DOCKER", false) == "1" ? "sudo -E " : ""
|
76
88
|
end
|
77
89
|
|
90
|
+
# we need to check if the 1Password CLI is installed and load it ASAP,
|
91
|
+
# because it contains all the secrets
|
78
92
|
check_dependencies! unless Rails.env.local?
|
79
93
|
end
|
80
94
|
end
|
data/lib/hephaestus/version.rb
CHANGED