hephaestus 0.8.3 → 0.8.3.2

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: ed93f514ac91692c68eaac49059790dc4a3a391e6040449279d76acff1416e14
4
- data.tar.gz: 547f7f2a54db6489684616b5f54fa900f1aa93c47d81a8606355f9d7f1f549de
3
+ metadata.gz: f8da2ce61468a298f561ac34ad705930465faf5f207a228a79c97a4e2a81dfab
4
+ data.tar.gz: 69d0c330a1c83e6b0744dfe3eb6020fb582fad4ab915d921813d7ae9e09da15b
5
5
  SHA512:
6
- metadata.gz: c39f56ef20d9be6f04b04e7a6e3db474346c788fa1c1fd5fe7ef7fd989cfdd21a09e80745cec4032e3df7469908f3b5abc6ec97448411d710e52335117a426a8
7
- data.tar.gz: 39e3eda1114b13ad074cae157cb824946d2ab10b4fb682c45fff6cd8c551e2f3e8445534b629de1510101b1191d837b1a3531178eda3a1e5bc11101fbda9797a
6
+ metadata.gz: 3054abd8a1b93e36b75a96585a21d97d01a44d502f273123fd37df9aee8f4e7edb6300e853e51de8fc655b3777ace767c284e060899d06f961b9272c4e357e02
7
+ data.tar.gz: 3b4ae9002b2e8a92ffbfc8eb5b8928cd4cd09f11b67fdc135d20f2a03d94daa61a615e1148d3eb20c98c8ff8060cdb5e4a106545700a52f9feb2d25c11a096e9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [v0.8.3.2] - 26-11-2024
2
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.3.1...v0.8.3.2
3
+ # [v0.8.3.1] - 26-11-2024
4
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.3...v0.8.3.1
1
5
  # [v0.8.3] - 26-11-2024
2
6
  **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.2...v0.8.3
3
7
  # [v0.8.2] - 25-11-2024
@@ -12,7 +12,8 @@ def fetch_vault_secret(label:, default:)
12
12
  end
13
13
 
14
14
  def op_load_vault_into_env(vault:, tag:)
15
- %x(#{include_sudo?}op item list --vault #{vault} --tags #{tag} --format json | #{include_sudo?}op item get - --reveal --format=json).tap do
15
+ include_sudo = !Rails.env.local? ? "sudo -E " : ""
16
+ %x(#{include_sudo}op item list --vault #{vault} --tags #{tag} --format json | #{include_sudo}op item get - --reveal --format=json).tap do
16
17
  raise "Failed to fetch value `#{vault}` for `#{tag}` from 1Password" unless $CHILD_STATUS.success?
17
18
  end
18
19
  end
@@ -65,10 +65,10 @@ module Hephaestus
65
65
  # we need to check if the 1Password CLI is installed and load it ASAP,
66
66
  # because it contains all the secrets
67
67
  def fetch_infra_secret(label:, default:)
68
- if productionish?
69
- op_read("op://Infra/Global Secrets/#{label}")
70
- else
68
+ if Rails.env.local?
71
69
  ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
70
+ else
71
+ op_read("op://Infra/Global Secrets/#{label}")
72
72
  end
73
73
  end
74
74
  end
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.3"
5
+ VERSION = "0.8.3.2"
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.3
4
+ version: 0.8.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian