hephaestus 0.7.2.2 → 0.7.2.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: aa434c3350cbeb0ba0f33457265f2f191196762b7b29d0857ed974cee9f8c008
4
- data.tar.gz: 1ac324371d86e09c465918289d7ab64024d35ab3b3331de831816f37d150c6b8
3
+ metadata.gz: 9a36275ab8b96791877c84c79337f5a2b059cb9e3d23e7596872b1cd5fe73f4a
4
+ data.tar.gz: da5dbdce2df2a9ae89276ceb952a46ddb722bc85d719fc70fae03c8e547dc84c
5
5
  SHA512:
6
- metadata.gz: 16c8f996fffbbda083c2c399e17691566a3b7a57ae83cf3f2653c7f8b01be60add0da975c47b99d5c7ce0ee3989dc92edab07396b320bf498fb29dc02d5eabb8
7
- data.tar.gz: 7fac9568440247732d5c8f946f1992639d428c02424613e84a7be9f5b8f887cc17f6cd0598d1bd406d5fd4331c2078b2a187e7eff3fd6b99463b24565f761f66
6
+ metadata.gz: 7d1cd204b5e69fe476ac2f8dc9078a1f1c19114d9a05137f108a62315cfffaa9c405ec6663065e287bf7b463c254be62dac84835453b344c292ff4b91d86e97b
7
+ data.tar.gz: 3f6e1ff14ebec10daf227013e74ee0af44aa356bd70575bc0c2152271ee55aa020de9bf61b5b45f2d1d93c046678e38120424d37338cad7d1b1c6126e7cc0e26
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [v0.7.2.3] - 18-11-2024
2
+ ## What's Changed
3
+ * Remove package task by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/35
4
+
5
+
6
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.2.2...v0.7.2.3
1
7
  # [v0.7.2.2] - 16-11-2024
2
8
  ## What's Changed
3
9
  * is not yet available by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/33
@@ -2,20 +2,18 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  def fetch_plug_env_secret(label:, default:)
5
- case ENV["RAILS_ENV"]
6
- when "production", "staging"
5
+ if productionish?
7
6
  op_read("op://Plug-#{plug_name}/#{ENV["RAILS_ENV"].capitalize}/#{label}")
8
7
  else
9
- ENV.fetch(label.to_s, default)
8
+ ENV.fetch(label.to_s, default.is_a?(Pathname) ? default.read : default)
10
9
  end
11
10
  end
12
11
 
13
12
  def fetch_infra_secret(label:, default:)
14
- case ENV["RAILS_ENV"]
15
- when "production", "staging"
13
+ if productionish?
16
14
  op_read("op://Infra/Global Secrets/#{label}")
17
15
  else
18
- ENV.fetch(label.to_s, default)
16
+ ENV.fetch(label.to_s, default.is_a?(Pathname) ? default.read : default)
19
17
  end
20
18
  end
21
19
 
@@ -86,7 +84,7 @@ module Hephaestus
86
84
  YETTO_REDIRECT_URL = productionish? ? "#{PROTOCOL}#{YETTO_URL}" : "#{PROTOCOL}127.0.0.1:3000"
87
85
 
88
86
  # Every plug has these secrets
89
- YETTO_PLUG_PEM = fetch_plug_env_secret(label: "YETTO_PLUG_PEM", default: Rails.root.join("test/fixtures/files/fake_pem_file/fake.pem").read)
87
+ YETTO_PLUG_PEM = fetch_plug_env_secret(label: "YETTO_PLUG_PEM", default: Rails.root.join("test/fixtures/files/fake_pem_file/fake.pem"))
90
88
  YETTO_SIGNING_SECRET = fetch_plug_env_secret(label: "YETTO_SIGNING_SECRET", default: "super-secret")
91
89
  YETTO_PLUG_ID = fetch_plug_env_secret(label: "YETTO_PLUG_ID", default: "plug-id")
92
90
  end
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.7.2.2"
5
+ VERSION = "0.7.2.3"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2.2
4
+ version: 0.7.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-16 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap
@@ -477,7 +477,6 @@ files:
477
477
  - lib/hephaestus/test_helper.rb
478
478
  - lib/hephaestus/version.rb
479
479
  - lib/tasks/hephaestus_tasks.rake
480
- - lib/tasks/package.rake
481
480
  - lib/tasks/rubocop.rake
482
481
  - lib/version.rb
483
482
  - templates/Dockerfile
@@ -1,9 +0,0 @@
1
- # typed: false
2
- # frozen_string_literal: true
3
-
4
- require "rubygems/package_task"
5
-
6
- GEMSPEC = Bundler.load_gemspec(File.join(__dir__, "..", "..", "hephaestus.gemspec")) unless defined?(GEMSPEC)
7
- gem_path = Gem::PackageTask.new(GEMSPEC).define
8
- desc "Package the ruby gem"
9
- task "package" => [gem_path]