hephaestus 0.8.7.5 → 0.8.8

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: c17f79baf188c20673d1d1c59299f22b36a4378d42546cda2d8b4aeddcb9e5c7
4
- data.tar.gz: bfd2576c4e5652ee59215ba39d2e5f0afb80134e94502b5b3669dfd3f4baf903
3
+ metadata.gz: 147a21893659ce7204805de5c82711196fbe1b7e3fce13bbeddb049e9cd151b3
4
+ data.tar.gz: fb39e4f9a955ae1d5925e53aaf68d3eb660d5d8858b5e49bfb9c5e9ea321b719
5
5
  SHA512:
6
- metadata.gz: b3d0d5d1ddb364b1fbf4fffa76cd43e8a5eb51586512b9d27edd883107fcf3a056cd248185955b1dd1ea6e8cd90dd9a2c777fd25d6ed62c85c75e9d03ea55837
7
- data.tar.gz: 7f54fec794443f83bda7367a31296edcb519a0c32a54fa0a6bee250ef764db587edfb2c481d98612272827d21c1a14bdae05c1d049d8cff1588f84f89e0b5b70
6
+ metadata.gz: 219a46bf7606c484fd297fe8563e3122edb33af266c4b566024f67269abd5f41a09b4aa1cdb445de827865457c66f0741843fd779cda2c812d1466cf6690f2c5
7
+ data.tar.gz: '049ed8fa2d285ac0c018d3a856b9d60de42be83efb25a490643aa47ac09742fd8dd94208491ae19911c563d25f0cd5ef606de914b7358de1dcfcc176d74a2165'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [v0.8.8] - 09-12-2024
2
+ ## What's Changed
3
+ * Filter parameter logging in jobs by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/84
4
+
5
+
6
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7.5...v0.8.8
1
7
  # [v0.8.7.5] - 05-12-2024
2
8
  **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7.4...v0.8.7.5
3
9
  # [v0.8.7.4] - 05-12-2024
@@ -0,0 +1,22 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+ # ActiveJob logs the arguments passed to the job. This initializer filters out sensitive information from the logs.
5
+ # cf. https://github.com/rails/rails/pull/34438#issuecomment-2336749226
6
+ Rails.application.config.after_initialize do
7
+ require "active_job/log_subscriber"
8
+ module ActiveJob
9
+ class LogSubscriber < ActiveSupport::LogSubscriber
10
+ alias_method :original_format, :format
11
+
12
+ private def format(arg)
13
+ if arg.is_a?(Hash)
14
+ parameter_filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)
15
+ parameter_filter.filter(arg.transform_values { |value| original_format(value) })
16
+ else
17
+ original_format(arg)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.7.5"
5
+ VERSION = "0.8.8"
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.8.7.5
4
+ version: 0.8.8
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-12-05 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap
@@ -436,6 +436,7 @@ files:
436
436
  - config/initializers/application.rb
437
437
  - config/initializers/cors.rb
438
438
  - config/initializers/environment.rb
439
+ - config/initializers/filter_job_params.rb
439
440
  - config/initializers/filter_parameter_logging.rb
440
441
  - config/initializers/inflections.rb
441
442
  - config/initializers/lograge.rb