hephaestus 0.8.21 → 0.8.22.1

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: ff85095b28dd317366e31d4a27335a18a69dd8d56f50d8b0528024ab1967f948
4
- data.tar.gz: 38e0995783957661d1475f99c9ba22a9fdc1d512ca32917e3cfd48b912e1fc84
3
+ metadata.gz: d5b4ca95eb5c3d37230345f2eb437caa07cda0c73b1a71a586731039c119eae3
4
+ data.tar.gz: ffe0445e8a72761a85e190ab72910e181b1eaec7bc4b4127365a9da312460c86
5
5
  SHA512:
6
- metadata.gz: 68ae814bf3df3e3e94a6238c55885e9a98a8a45e82925fdeb73cdb2f277028f4cb8e00b8edfde953f8616a1dec7afa1f0ce4ebf6d9358a799d3723031779fd8d
7
- data.tar.gz: 3d526424e3c31748a9ffa26634cdf06b758fe16cb04b6649c35657ee2bf955e76965e39b8944e6b9fc2bac2dd783ea836b9fcc17cb6ba9bbf798ce4bc0a411d1
6
+ metadata.gz: 50f7c10df070ad29e581cd0bfc06abe1a0392c0642452395b4f01e155766ad30a24406ad0078837bb49f1f30646a7858a0d9217322ed870b6af1d2e8b4b48ef9
7
+ data.tar.gz: 1620a666d30dd1cf8eeb3e7f6e8a2b923c5781f2a7e8341a8283a4d7b041dfe567d8ea62688447d8f6170555ad590f39dc415e2ba7e76f0aad6d66e75d5ff79f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [v0.8.22.1] - 04-07-2025
2
+ ## What's Changed
3
+ * Revert bad lint by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/133
4
+
5
+
6
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.22...v0.8.22.1
7
+ # [v0.8.22] - 02-07-2025
8
+ ## What's Changed
9
+ * change plugs to use solstice dependabot updates by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/130
10
+
11
+
12
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.21...v0.8.22
1
13
  # [v0.8.21] - 02-07-2025
2
14
  ## What's Changed
3
15
  * Dashes instead of dots in hostnames by @balevine in https://github.com/yettoapp/hephaestus/pull/128
@@ -21,7 +21,7 @@ module Hephaestus
21
21
  end
22
22
 
23
23
  def set_step
24
- @step = params.fetch(:step, 1).to_i || 1
24
+ @step = params.fetch(:step, 1).to_i
25
25
  end
26
26
  end
27
27
  end
@@ -21,7 +21,7 @@ module Hephaestus
21
21
 
22
22
  class << self
23
23
  def yetto_client
24
- @yetto_client ||= Httpsensible::Client.new(user_agent: "#{Rails.application.class.module_parent.name}/#{Hephaestus::Engine::GIT_SHA}")
24
+ Thread.current[:yetto_client] ||= Httpsensible::Client.new(user_agent: "#{Rails.application.class.module_parent.name}/#{Hephaestus::Engine::GIT_SHA}")
25
25
  end
26
26
 
27
27
  def encoded_jwt
@@ -9,7 +9,7 @@ Rails.application.config.after_initialize do
9
9
  class LogSubscriber < ActiveSupport::LogSubscriber
10
10
  alias_method :original_format, :format
11
11
 
12
- private define_method(:format) do |arg|
12
+ private def format(arg)
13
13
  if arg.is_a?(Hash)
14
14
  parameter_filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)
15
15
  parameter_filter.filter(arg.transform_values { |value| original_format(value) })
@@ -75,7 +75,7 @@ module Hephaestus
75
75
 
76
76
  def op_read(label)
77
77
  if within_op_rate_limit?
78
- %x(#{include_sudo?}op read "#{label}").chomp.tap do
78
+ %x(#{sudo_ish}op read "#{label}").chomp.tap do
79
79
  Rails.logger.error("Failed to fetch `#{label}` from 1Password") && return unless $CHILD_STATUS.success?
80
80
  end
81
81
  end
@@ -85,7 +85,7 @@ module Hephaestus
85
85
  # skip this unless we're in a Docker container
86
86
  return true unless ENV.fetch("DOCKER", "0") == "1"
87
87
 
88
- results = %x(#{include_sudo?}op service-account ratelimit --format=json).chomp.tap do |_result|
88
+ results = %x(#{sudo_ish}op service-account ratelimit --format=json).chomp.tap do |_result|
89
89
  unless $CHILD_STATUS.success?
90
90
  Rails.logger.error("Failed to retrieve rate limits")
91
91
  return false
@@ -107,7 +107,7 @@ module Hephaestus
107
107
  end
108
108
 
109
109
  def cli_installed?
110
- %x(#{include_sudo?}op --version 2> /dev/null)
110
+ %x(#{sudo_ish}op --version 2> /dev/null)
111
111
  $CHILD_STATUS.success?
112
112
  end
113
113
 
@@ -115,7 +115,7 @@ module Hephaestus
115
115
  ENV.fetch("PRECOMPILING", nil).present?
116
116
  end
117
117
 
118
- def include_sudo?
118
+ def sudo_ish
119
119
  ENV.fetch("DOCKER", false) == "1" ? "sudo -E " : ""
120
120
  end
121
121
 
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.21"
5
+ VERSION = "0.8.22.1"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
@@ -8,7 +8,7 @@ class SettingsController < ApplicationController
8
8
 
9
9
  sig { void }
10
10
  def edit
11
- @step = params.fetch(:step, 1).to_i || 1
11
+ @step = params.fetch(:step, 1).to_i
12
12
 
13
13
  plug_installation_id = params[:plug_installation_id]
14
14
  response = ::Hephaestus::YettoService.get_plug_installation(plug_installation_id)
data/templates/bin/bundle CHANGED
@@ -13,15 +13,15 @@ require "rubygems"
13
13
  m = Module.new do
14
14
  module_function
15
15
 
16
- define_method(:invoked_as_script?) do
16
+ def invoked_as_script?
17
17
  File.expand_path($PROGRAM_NAME) == File.expand_path(__FILE__)
18
18
  end
19
19
 
20
- define_method(:env_var_version) do
20
+ def env_var_version
21
21
  ENV["BUNDLER_VERSION"]
22
22
  end
23
23
 
24
- define_method(:cli_arg_version) do
24
+ def cli_arg_version
25
25
  return unless invoked_as_script? # don't want to hijack other binstubs
26
26
  return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
27
 
@@ -39,14 +39,14 @@ m = Module.new do
39
39
  bundler_version
40
40
  end
41
41
 
42
- define_method(:gemfile) do
42
+ def gemfile
43
43
  gemfile = ENV["BUNDLE_GEMFILE"]
44
44
  return gemfile if gemfile && !gemfile.empty? # rubocop:disable Rails/Present
45
45
 
46
46
  File.expand_path("../Gemfile", __dir__)
47
47
  end
48
48
 
49
- define_method(:lockfile) do
49
+ def lockfile
50
50
  lockfile =
51
51
  case File.basename(gemfile)
52
52
  when "gems.rb" then gemfile.sub(/\.rb$/, ".locked")
@@ -55,7 +55,7 @@ m = Module.new do
55
55
  File.expand_path(lockfile)
56
56
  end
57
57
 
58
- define_method(:lockfile_version) do
58
+ def lockfile_version
59
59
  return unless File.file?(lockfile)
60
60
 
61
61
  lockfile_contents = File.read(lockfile)
@@ -64,14 +64,16 @@ m = Module.new do
64
64
  Regexp.last_match(1)
65
65
  end
66
66
 
67
- define_method(:bundler_requirement) do
67
+ # rubocop:disable ThreadSafety/ClassInstanceVariable
68
+ def bundler_requirement
68
69
  @bundler_requirement ||=
69
70
  env_var_version ||
70
71
  cli_arg_version ||
71
72
  bundler_requirement_for(lockfile_version)
72
73
  end
74
+ # rubocop:enable ThreadSafety/ClassInstanceVariable
73
75
 
74
- define_method(:bundler_requirement_for) do |version|
76
+ def bundler_requirement_for(version)
75
77
  return "#{Gem::Requirement.default}.a" unless version
76
78
 
77
79
  bundler_gem_version = Gem::Version.new(version)
@@ -79,13 +81,13 @@ m = Module.new do
79
81
  bundler_gem_version.approximate_recommendation
80
82
  end
81
83
 
82
- define_method(:load_bundler!) do
84
+ def load_bundler!
83
85
  ENV["BUNDLE_GEMFILE"] ||= gemfile
84
86
 
85
87
  activate_bundler
86
88
  end
87
89
 
88
- define_method(:activate_bundler) do
90
+ def activate_bundler
89
91
  gem_error = activation_error_handling do
90
92
  gem("bundler", bundler_requirement)
91
93
  end
@@ -100,7 +102,7 @@ m = Module.new do
100
102
  exit(42)
101
103
  end
102
104
 
103
- define_method(:activation_error_handling) do
105
+ def activation_error_handling
104
106
  yield
105
107
  nil
106
108
  rescue StandardError, LoadError => e
@@ -16,9 +16,8 @@ updates:
16
16
  - package-ecosystem: bundler
17
17
  directory: "/"
18
18
  schedule:
19
- interval: monthly
20
- day: monday
21
- time: "09:00"
19
+ interval: cron
20
+ cronjob: "0 0 21 3,6,9,12 *"
22
21
  timezone: "Etc/UTC"
23
22
  open-pull-requests-limit: 10
24
23
  groups:
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.8.21
4
+ version: 0.8.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-02 00:00:00.000000000 Z
11
+ date: 2025-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap