hephaestus 0.7.4.1 → 0.7.5

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: e09dcaf26ab6d05ecbbd6c0267d04627c7d7feb5ae9fd9980a38fbcfb330b581
4
- data.tar.gz: af11a10a7586fbc3efc76c4c264e9127b6fe6b716d8ca07c2f8809814ef5614d
3
+ metadata.gz: 3cd0baba4158ddab44fe1aff04d5e606b419a5882f05764efedeb5c9ec5a5916
4
+ data.tar.gz: d5fcc05a6f058e03a73659b5cd4f41890d70cb470164af73ea5ae803e1b92a32
5
5
  SHA512:
6
- metadata.gz: 297107d7b5c075c827de3a40ac09b8827181ee6fc2ef6a0b049410ad4a4df8d344dccbd2caa9767fbb46d630901872c69c3c8fcdca69e82abd4d1a1759272702
7
- data.tar.gz: 9d1e28ec978bebb330c8355af3b004b59674d36a4c9c9362b9de63391a8d138d99f640aacb6b1a32e70975002f6c1334f467f0f13269a7a0ab11958381231ed4
6
+ metadata.gz: 154445c0b91ff0c7d32bf0c0997d9440d8ef634c49dfa8d8009ec4124d5377974e4f0f092daa4eb3ee2c47eaac151290a7a62b281e8a4b0099cfa14a00c46272
7
+ data.tar.gz: 2894735072d816b7848920b934e69b3f9d56067a533ccb5360c9ab4e6d94f6f9782ca4ba307128284ba972314fcbe538e95bfa95341e287cf19bae7fcc9bedc4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [v0.7.5] - 20-11-2024
2
+ ## What's Changed
3
+ * No do by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/49
4
+
5
+
6
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.4.2...v0.7.5
7
+ # [v0.7.4.2] - 20-11-2024
8
+ ## What's Changed
9
+ * tuck rubocop task in a check by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/47
10
+
11
+
12
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.4.1...v0.7.4.2
1
13
  # [v0.7.4.1] - 19-11-2024
2
14
  **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.4...v0.7.4.1
3
15
  # [v0.7.4] - 19-11-2024
@@ -26,14 +26,18 @@ def fetch_document_secret(document_secrets, label:, default:)
26
26
  end
27
27
 
28
28
  def op_read(label)
29
- %x(op read "#{label}").chomp
29
+ %x(#{include_sudo?}op read "#{label}").chomp
30
30
  end
31
31
 
32
32
  # technically, this gets every secret, including ones UNIQUE
33
33
  # to the platform, but we're not using those yet. feels "better"
34
34
  # to have the plugs manage those on their own
35
35
  def op_get_secrets(vault:, tag:)
36
- %x(op item list --vault #{vault} --tags #{tag} --format json | op item get - --reveal --format=json)
36
+ %x(#{include_sudo?}op item list --vault #{vault} --tags #{tag} --format json | op item get - --reveal --format=json)
37
+ end
38
+
39
+ def include_sudo?
40
+ productionish? ? "sudo -E " : ""
37
41
  end
38
42
 
39
43
  def productionish?
@@ -4,20 +4,18 @@
4
4
  require "slack_webhook_logger"
5
5
 
6
6
  Rails.application.configure do
7
- config.after_initialize do
8
- SlackWebhookLogger.setup do |config|
9
- # Webhook URL
10
- #
11
- # The URL where messages will be sent.
12
- config.webhook_url = Hephaestus::SLACK_LOG_URL
7
+ SlackWebhookLogger.setup do |config|
8
+ # Webhook URL
9
+ #
10
+ # The URL where messages will be sent.
11
+ config.webhook_url = Hephaestus::SLACK_LOG_URL
13
12
 
14
- # The minimum error level to see in Slack.
15
- #
16
- # All log levels are supported, but don't do anything less then :warn since Slack only allows one message
17
- # per minute.
18
- config.level = :WARN
13
+ # The minimum error level to see in Slack.
14
+ #
15
+ # All log levels are supported, but don't do anything less then :warn since Slack only allows one message
16
+ # per minute.
17
+ config.level = :WARN
19
18
 
20
- config.ignore_patterns = [/Can't verify CSRF token authenticity/, /is not a valid MIME type/]
21
- end
19
+ config.ignore_patterns = [/Can't verify CSRF token authenticity/, /is not a valid MIME type/]
22
20
  end
23
21
  end
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.7.4.1"
5
+ VERSION = "0.7.5"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
@@ -1,6 +1,12 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
- require "rubocop/rake_task"
4
+ if Rails.env.local?
5
+ begin
6
+ require "rubocop/rake_task"
5
7
 
6
- RuboCop::RakeTask.new
8
+ RuboCop::RakeTask.new(:rubocop)
9
+ rescue LoadError => e
10
+ warn("WARNING: rubocop is not available in this environment: #{e}")
11
+ end
12
+ end
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.4.1
4
+ version: 0.7.5
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-19 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap
@@ -264,21 +264,6 @@ dependencies:
264
264
  - !ruby/object:Gem::Version
265
265
  version: '3.1'
266
266
  force_ruby_platform: false
267
- - !ruby/object:Gem::Dependency
268
- name: sidekiq
269
- requirement: !ruby/object:Gem::Requirement
270
- requirements:
271
- - - "~>"
272
- - !ruby/object:Gem::Version
273
- version: '7.2'
274
- type: :runtime
275
- prerelease: false
276
- version_requirements: !ruby/object:Gem::Requirement
277
- requirements:
278
- - - "~>"
279
- - !ruby/object:Gem::Version
280
- version: '7.2'
281
- force_ruby_platform: false
282
267
  - !ruby/object:Gem::Dependency
283
268
  name: slack_webhook_logger
284
269
  requirement: !ruby/object:Gem::Requirement
@@ -456,7 +441,6 @@ files:
456
441
  - config/initializers/litestream.rb
457
442
  - config/initializers/lograge.rb
458
443
  - config/initializers/opentelemetry.rb
459
- - config/initializers/sidekiq.rb
460
444
  - config/initializers/slack_webhook_logger.rb
461
445
  - config/litestream.yml
462
446
  - config/puma.rb
@@ -1,13 +0,0 @@
1
- # typed: false
2
- # frozen_string_literal: true
3
-
4
- require "sidekiq"
5
-
6
- Sidekiq.configure_server do |config|
7
- config.logger = Sidekiq::Logger.new($stdout)
8
- config.redis = { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/1") }
9
- end
10
- Sidekiq.configure_client do |config|
11
- config.logger = Sidekiq::Logger.new($stdout)
12
- config.redis = { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/1") }
13
- end