hephaestus 0.8.20.2 → 0.8.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5857f087515872eb0d81bd356d7a7ed7624cafcdc945da2ab24f670e44306556
4
- data.tar.gz: 9d3771f96a72285b1395b14ccf0e8a086699eb3d15b171fe71a001708167603f
3
+ metadata.gz: 53416bfb62985d1d007171eaa75e37bb5f515c8b4a72ce3f01973a616882b9d6
4
+ data.tar.gz: 9d17c563b01088561e63d79c9130e8490002f442e9e257a2b705d690d9651fc7
5
5
  SHA512:
6
- metadata.gz: 2f81b6695e92491a180ef15336ffcfa381d18e4c60426d7d49db794c2cbd737b033fd1955efe30d9eb20c6f752a867209d0e480d39640fa831970969e4a875e0
7
- data.tar.gz: a0c430ec9d95897f879b914f6c4df26224233f283b9512f04df1c5f64444d48da277a7f97078ada4347d61bbaac527e8974f2afee78b1efc12274d8665a060a0
6
+ metadata.gz: 22f602cdf989439edfdcf2844a6477be03aeaa620120c27882966a698ecaa4f5cb1f9c95c713db2aee3b44b2982e041961c525053b718bbabfc4dc9bbff06f20
7
+ data.tar.gz: 94cfafad858c244394907fed6939c38592f6f8bd4a5cff767cefc1538dd07c0195134155961186112303b0ce34c2339b9adc0be265775fec09ff0cc43629dde4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ # [v0.8.20.3] - 10-04-2025
2
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.20.2...v0.8.20.3
1
3
  # [v0.8.20.2] - 10-04-2025
2
4
  **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.20.1...v0.8.20.2
3
5
  # [v0.8.20.1] - 10-04-2025
@@ -5,7 +5,7 @@ OP_VAULT_SECRETS = {}
5
5
  OP_INFRA_SECRETS = {}
6
6
 
7
7
  def fetch_vault_secret(label:, default: "")
8
- if productionish?
8
+ if productionish? && !compiling_assets?
9
9
  OP_VAULT_SECRETS.delete(label) || Rails.logger.error("Secret `#{label}` not found in 1Password")
10
10
  else
11
11
  ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
@@ -13,7 +13,7 @@ def fetch_vault_secret(label:, default: "")
13
13
  end
14
14
 
15
15
  def fetch_infra_secret(label:, default: "")
16
- if productionish?
16
+ if productionish? && !compiling_assets?
17
17
  OP_INFRA_SECRETS.delete(label) || Rails.logger.error("Secret `#{label}` not found in 1Password")
18
18
  else
19
19
  ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
@@ -40,6 +40,10 @@ def productionish?
40
40
  Rails.env.production? || Rails.env.staging?
41
41
  end
42
42
 
43
+ def compiling_assets?
44
+ ENV.fetch("PRECOMPILING", nil).present?
45
+ end
46
+
43
47
  def print_user_api_errors?
44
48
  (Rails.env.development? || Rails.env.staging?) || ENV.fetch("DEBUG", false)
45
49
  end
@@ -106,7 +110,7 @@ module Hephaestus
106
110
 
107
111
  # Every plug has secrets; to reduce the amount of API calls to 1Password,
108
112
  # we can grab one document that contains all the secrets we need
109
- if productionish?
113
+ if productionish? && !compiling_assets?
110
114
  res = JSON.parse(op_load_vault_into_env(vault: "Plug-#{plug_name}", tag: ENV["RAILS_ENV"]))
111
115
  ["Common", "Unique", "Yetto"].each do |section_label|
112
116
  res["fields"].select { |f| f["section"] && f["section"]["label"] }.each do |field|
@@ -5,6 +5,8 @@
5
5
  return if Rails.env.development?
6
6
  return if defined?(Rails::Console)
7
7
 
8
+ return if compiling_assets?
9
+
8
10
  # establish the environment for OTEL
9
11
  ENV["OTEL_EXPORTER_OTLP_ENDPOINT"] = "http://service-otelcol-#{Rails.env}.internal:4318"
10
12
  ENV["OTEL_EXPORTER_OTLP_HEADERS"] = "x-honeycomb-dataset=plug-#{plug_shortname}-#{Rails.env}"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.20.2"
5
+ VERSION = "0.8.20.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.20.2
4
+ version: 0.8.20.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian