hephaestus 0.7.2.2 → 0.7.2.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 +6 -0
- data/config/initializers/environment.rb +5 -7
- data/lib/hephaestus/version.rb +1 -1
- metadata +2 -3
- data/lib/tasks/package.rake +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a36275ab8b96791877c84c79337f5a2b059cb9e3d23e7596872b1cd5fe73f4a
|
4
|
+
data.tar.gz: da5dbdce2df2a9ae89276ceb952a46ddb722bc85d719fc70fae03c8e547dc84c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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")
|
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
|
data/lib/hephaestus/version.rb
CHANGED
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.
|
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-
|
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
|
data/lib/tasks/package.rake
DELETED
@@ -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]
|