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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f6d590d1b812ab56310014c2d5dce0dab26312642dc18498b5072079b41832b
4
- data.tar.gz: 33300d06a7022b8f956ea9b02e67a6d055557d77966a01f16c04cb3055ed4e25
3
+ metadata.gz: d7f1fb3a9cdf370e9ad3e756ae008da75fdb68214c0c3261fb4ddb18ca1b277b
4
+ data.tar.gz: 37023803d5bef1d0911e504713127e17329001cfb3ba0be3b18aa816f7ee2979
5
5
  SHA512:
6
- metadata.gz: 4d513159020c0dd6cedde3191a8a19f6029b8e8faa20e573a3bd03619a04e744bc5174895229173ff1413e9d26997a2488ded1ff94451f7b6938627e3dca42b4
7
- data.tar.gz: f6ce068108d4c1a5006483fa886cebe33cbe95c377f68f361da76009b56cd0c230aa356166f28f0276a9c67cd1b5bbff92886917d76f82a2e1e2dee12d2f3845
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: "<%= fetch_infra_secret(label: 'DATABASE_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: "<%= fetch_infra_secret(label: 'DATABASE_URL') %>"
61
+ url: <%= ENV["DATABASE_URL"] %>
62
62
  migrations_paths: db/queue_migrate
@@ -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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.7.1"
5
+ VERSION = "0.8.7.3"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7.1
4
+ version: 0.8.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian