mongoid-auditor 0.1.1 → 0.2.0

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: 2aa7ebf81ba4781aef853bf48e5fa096de08e532df7744c0bb2de5084e9b9bfb
4
- data.tar.gz: 75f6100cf88e0490121e6758c08c690685136da4a0c7d96ab1f39055bccef9e7
3
+ metadata.gz: 12346b391a9f93fae93802b2d9c07851f8819b45e3de9d9070d961545f047db9
4
+ data.tar.gz: 72e0f459222889480beb69dbce73beac063d2bb980bea02158c6f717e4503939
5
5
  SHA512:
6
- metadata.gz: e92739869c96d293ed5a8faa1ec7089546a4a4975e5e645dad1cf3451d1722299a438619e4b3e6617b375f60248a92b77e9b0738b37419b797b634697f906f86
7
- data.tar.gz: ef29f674dd7d5a5a43ff289709f715e8b386131d405311cf0bd33818bcd3c9343dd204a0d87e3a52118341c0050d774656e167ea0b2c2dbccdca37d3252fc108
6
+ metadata.gz: cae1d1ba09fc35e240921421d0bf4ffb59e9f7f0622ab2ce9c73d2c31e89dd42e6e0bd240614c01644df38490dabdc0b8551ea416109bba3251a555546aaa43d
7
+ data.tar.gz: d5cd0b73820b3452133ac5f1cfb1b98a051ada0e56805730a622bf79149f2ae9c9741c89d2830898716ca134fd7cb4fcab3b65ef1c7b8f6d6e8d493da9f1f9e6
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ versioning-strategy: lockfile-only
data/CHANGELOG.md CHANGED
@@ -1,4 +1,3 @@
1
- ## [Unreleased]
2
1
 
3
2
  ## [0.1.0] - 2025-12-24
4
3
 
@@ -7,3 +6,39 @@
7
6
  ## [0.1.1] - 2025-12-25
8
7
  ### Fix
9
8
  - Avoided method name collision with Mongoid/ActiveModel by renaming auditor `errors` helper to `audit_errors`.
9
+
10
+ ## [0.1.2] - 2026-03-28
11
+ ### Fix
12
+ - Fixed `NoMethodError` when `configure` is never called
13
+ - Fixed ActiveJob key serialization breaking error audit entries
14
+ - Fixed `queue_name` config option being ignored
15
+ - Fixed event validation rejecting `perform`, `index`, and `show` events
16
+ - Fixed `error_summary` methods loading all records into memory
17
+ - Fixed `fallback_model_type` crash on nil controller name
18
+ - Fixed stale `today_time` memoization on long-lived objects
19
+
20
+ ### Changed
21
+ - Optimized indexes for better query coverage
22
+
23
+ ## [0.2.0] - 2026-11-20
24
+ ### Changed
25
+ - Model audits are buffered per request/job in `Current.audit_logs` and enqueued once when it ends
26
+ (one `AuditorJob` per `audit_batch_size` entries, via `ActiveJob.perform_all_later`), instead of one
27
+ `AuditorJob` per create/update/destroy. Removes the N+1 of queue inserts (e.g. `solid_queue_jobs`)
28
+ on every mutating request. If `Current.path` is set without a buffer (custom code filling `Current`
29
+ itself), each write still enqueues its own `:model` job, as before.
30
+ - `AuditorJob` handles a new `:models` state that bulk-inserts entries; `:model` is still accepted, so jobs
31
+ queued by older versions before a deploy are still processed.
32
+ - New `audit_batch_size` config option (default 100).
33
+
34
+ ### Fix
35
+ - `InitJobAuditLog` called `Current.reset_all`, which Rails 8.1 removed; every audited job raised
36
+ `NoMethodError` before performing. Uses `Current.reset` now.
37
+ - Looking up a job's `RequestContext` raised `Mongoid::Errors::DocumentNotFound` with Mongoid's default
38
+ `raise_not_found_error: true` when the job had none (e.g. `perform_now`).
39
+ - Controller errors raised in custom actions (anything other than `create`, `update`, `destroy`, `index`,
40
+ `show`) were never stored: the action name is used as the log's `event` and failed the inclusion
41
+ validation. Error logs (`has_error: true`) now accept any event; regular entries are still restricted.
42
+ A side effect: a model entry with an invalid event is now stored as an error log instead of vanishing.
43
+ - An audit entry holding a value ActiveJob cannot serialize (`Set`, `BSON::Decimal128`, `Regexp`, ...)
44
+ no longer takes the rest of its request's batch with it: the batch is re-enqueued without that entry.
data/README.md CHANGED
@@ -69,6 +69,12 @@ end
69
69
 
70
70
  This ensures that all mutations to models are automatically recorded in `AuditLog`.
71
71
 
72
+ Inside a request (`InitAuditLog`) or job (`InitJobAuditLog`) the entries are collected in
73
+ `Mongoid::Auditor::Current.audit_logs` and enqueued together when the request/job finishes (also when it
74
+ raises), so a request that writes 20 documents enqueues one `AuditorJob` instead of 20. Batches are split
75
+ by `config.audit_batch_size` (default 100). If `Current.path` is set without that setup (custom code that fills
76
+ `Current` itself), each write still enqueues its own job; writes with no `Current.path` (console, rake) are not audited.
77
+
72
78
  **Note:** GET requests are not recorded. If a POST behaves like a GET, add this to your controller:
73
79
 
74
80
  ```ruby
@@ -132,7 +138,7 @@ The `Mongoid::Auditor::AuditLog` model stores audit entries with the following a
132
138
  * `path` — Controller action or job name.
133
139
  * `model_type` — Class of the audited model (e.g., `Product`).
134
140
  * `model_id` — ID of the audited model.
135
- * `event` — `create`, `update`, `destroy`, or `error`.
141
+ * `event` — `create`, `update`, `destroy`, `error`, `perform`, `index`, or `show`. Error logs (`has_error: true`) written for a failed controller action keep that action's name instead (e.g. `close`).
136
142
  * `dirties` — Before/after attribute snapshots (hash with `attribute: [before_value, after_value]` format).
137
143
  * `sequence` — Incremental sequence number for ordering events within a request.
138
144
  * `error` — Contains class, message and backtrace of the error (when `has_error` is true).
@@ -157,7 +163,7 @@ The `Mongoid::Auditor::RequestContext` model stores context information for requ
157
163
  `RequestContext` allows the auditor to link audit logs to a specific request or background job, making it easier to
158
164
  trace changes and errors back to the original operation.
159
165
 
160
- **NOTE:** The `RequestContext` data is automatically deleted after 24 hours (via TTL index) and also cleaned up when jobs complete to prevent unbounded growth and minimize database usage. This ensures the audit system remains efficient and does not consume unnecessary space.
166
+ > `RequestContext` records auto-expire after 24 hours (TTL index) and are cleaned up on job completion.
161
167
  ---
162
168
 
163
169
  ### Mongoid::Auditor::Current
@@ -170,7 +176,7 @@ trace changes and errors back to the original operation.
170
176
  * `actor_id` — ID of the user or system performing the action.
171
177
  * `path` — Controller action name or job name being executed.
172
178
  * `request_params` — Parameters of the current request.
173
- * `audit_logs` — Collection of `AuditLog` entries accumulated during the request.
179
+ * `audit_logs` — Model audit entries buffered during the request/job; flushed as one `AuditorJob` when it ends.
174
180
  * `audit_sequence` — Incremental sequence number used to order audit events for the current request.
175
181
 
176
182
  **Usage:**
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'active_support/core_ext/hash/indifferent_access'
4
+
3
5
  module Mongoid
4
6
  module Auditor
5
7
  class Audit
@@ -13,28 +15,58 @@ module Mongoid
13
15
  log_error(e, entry)
14
16
  end
15
17
 
18
+ def log_many(entries)
19
+ entries = Array(entries).grep(Hash)
20
+ valid, invalid = entries.partition { |entry| valid_log?(entry) }
21
+ inserted = insert_many(valid)
22
+ (valid.drop(inserted) + invalid).each { |entry| log(entry) }
23
+ end
24
+
16
25
  def logger
17
26
  defined?(Rails) ? Rails.logger : nil
18
27
  end
19
28
 
20
29
  private
21
30
 
31
+ def valid_log?(entry)
32
+ ::Mongoid::Auditor::AuditLog.new(entry).valid?
33
+ rescue StandardError
34
+ false
35
+ end
36
+
37
+ def insert_many(entries)
38
+ return 0 if entries.empty?
39
+
40
+ now = Time.now.utc
41
+ docs = entries.map do |entry|
42
+ ::Mongoid::Auditor::AuditLog.new(entry).tap { |doc| doc.created_at = doc.updated_at = now }.as_document
43
+ end
44
+ ::Mongoid::Auditor::AuditLog.collection.insert_many(docs, ordered: true)
45
+ entries.size
46
+ rescue StandardError => e
47
+ logger&.error("Auditor::Audit.log_many insert failed: #{e.class} #{e.message}")
48
+ inserted_before_failure(e)
49
+ end
50
+
51
+ def inserted_before_failure(error)
52
+ result = error.respond_to?(:result) ? error.result : nil
53
+ result.respond_to?(:[]) ? result['n_inserted'].to_i : 0
54
+ end
55
+
22
56
  def log_error(err, entry)
23
- ::Mongoid::Auditor::AuditLog.create!(
24
- request_id: entry[:request_id],
25
- actor: entry[:actor],
26
- path: entry[:path],
27
- params: entry[:params],
28
- model_type: entry[:model_type],
29
- model_id: entry[:model_id],
57
+ ::Mongoid::Auditor::AuditLog.create!(error_log_attributes(err, entry))
58
+ rescue StandardError => e
59
+ logger&.error("Auditor::Audit.log failed to persist error: #{e.class} #{e.message}\n#{e.backtrace&.take(5)&.join("\n")}")
60
+ end
61
+
62
+ def error_log_attributes(err, entry)
63
+ entry = entry.is_a?(Hash) ? entry.with_indifferent_access : {}
64
+ %i[request_id actor path params model_type model_id sequence].index_with { |key| entry[key] }.merge(
30
65
  has_error: true,
31
66
  event: entry[:event] || 'error',
32
67
  dirties: entry[:dirties] || {},
33
- sequence: entry[:sequence],
34
68
  error: error_data(err)
35
69
  )
36
- rescue StandardError => e
37
- logger&.error("Auditor::Audit.log failed to persist error: #{e.class} #{e.message}\n#{e.backtrace&.take(5)&.join("\n")}")
38
70
  end
39
71
 
40
72
  def error_data(err)
@@ -0,0 +1,89 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Mongoid
4
+ module Auditor
5
+ module AuditBuffer
6
+ MODELS_AUDIT = :models
7
+
8
+ class << self
9
+ def active?
10
+ ::Mongoid::Auditor::Current.audit_logs.is_a?(Array)
11
+ end
12
+
13
+ def push(entry)
14
+ ::Mongoid::Auditor::Current.audit_logs << entry
15
+ end
16
+
17
+ def flush
18
+ entries = ::Mongoid::Auditor::Current.audit_logs
19
+ return if entries.blank?
20
+
21
+ ::Mongoid::Auditor::Current.audit_logs = []
22
+ enqueue(entries)
23
+ rescue StandardError => e
24
+ logger&.error("Mongoid::Auditor::AuditBuffer.flush failed: #{e.class} #{e.message}")
25
+ end
26
+
27
+ private
28
+
29
+ def enqueue(entries)
30
+ jobs = entries.each_slice(batch_size).map { |batch| build_job(batch) }
31
+
32
+ if jobs.one? || !ActiveJob.respond_to?(:perform_all_later)
33
+ jobs.each { |job| enqueue_job(job) }
34
+ else
35
+ enqueue_all(jobs)
36
+ end
37
+ end
38
+
39
+ def build_job(batch)
40
+ ::Mongoid::Auditor::AuditorJob.new(MODELS_AUDIT, nil, batch)
41
+ end
42
+
43
+ def enqueue_all(jobs)
44
+ ActiveJob.perform_all_later(jobs)
45
+ rescue StandardError
46
+ # None or only some of the jobs were queued; send the others one by one
47
+ jobs.reject(&:successfully_enqueued?).each { |job| enqueue_job(job) }
48
+ end
49
+
50
+ # A value ActiveJob cannot serialize costs that entry only, never the rest of its batch
51
+ def enqueue_job(job)
52
+ job.enqueue
53
+ rescue StandardError => e
54
+ enqueue_serializable_entries(job.arguments.last, e)
55
+ end
56
+
57
+ def enqueue_serializable_entries(batch, error)
58
+ kept = batch.select { |entry| serializable?(entry) }
59
+ dropped = batch.size - kept.size
60
+ logger&.error(
61
+ "Mongoid::Auditor::AuditBuffer could not enqueue #{batch.size} audit entries, " \
62
+ "#{dropped} of them cannot be serialized and will be dropped: #{error.class} #{error.message}"
63
+ )
64
+ return if dropped.zero? || kept.empty?
65
+
66
+ build_job(kept).enqueue
67
+ rescue StandardError => e
68
+ logger&.error("Mongoid::Auditor::AuditBuffer retry failed: #{e.class} #{e.message}")
69
+ end
70
+
71
+ def serializable?(entry)
72
+ JSON.generate(::ActiveJob::Arguments.serialize([entry]))
73
+ true
74
+ rescue StandardError
75
+ false
76
+ end
77
+
78
+ def batch_size
79
+ size = ::Mongoid::Auditor.config.audit_batch_size.to_i
80
+ size.positive? ? size : Configuration::DEFAULT_AUDIT_BATCH_SIZE
81
+ end
82
+
83
+ def logger
84
+ defined?(Rails) ? Rails.logger : nil
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
@@ -3,7 +3,10 @@
3
3
  module Mongoid
4
4
  module Auditor
5
5
  class Configuration
6
- attr_accessor :enabled, :log_models, :log_controllers, :queue_name, :skip_password_fields
6
+ DEFAULT_AUDIT_BATCH_SIZE = 100
7
+
8
+ attr_accessor :enabled, :log_models, :log_controllers, :queue_name, :skip_password_fields,
9
+ :audit_batch_size
7
10
 
8
11
  def initialize
9
12
  @enabled = true
@@ -11,6 +14,7 @@ module Mongoid
11
14
  @log_controllers = true
12
15
  @queue_name = :default
13
16
  @skip_password_fields = %w[password password_confirmation token secret api_key]
17
+ @audit_batch_size = DEFAULT_AUDIT_BATCH_SIZE
14
18
  end
15
19
 
16
20
  # Helper method to check if auditing should be skipped for a specific environment
@@ -63,6 +63,8 @@ module Mongoid
63
63
  end
64
64
 
65
65
  def fallback_model_type(controller_name)
66
+ return 'UnresolvedController' if controller_name.nil?
67
+
66
68
  controller_name.split('/').last.singularize.camelize
67
69
  end
68
70
 
@@ -8,9 +8,16 @@ module Mongoid
8
8
  MUTATION_METHODS = %w[POST PUT PATCH DELETE].freeze
9
9
  included do
10
10
  prepend_before_action :init_audit_store, if: -> { MUTATION_METHODS.include?(request.method) }
11
+ prepend_around_action :flush_audit_logs
11
12
  include ControllerAuditHelper
12
13
  end
13
14
 
15
+ def flush_audit_logs
16
+ yield
17
+ ensure
18
+ ::Mongoid::Auditor::AuditBuffer.flush
19
+ end
20
+
14
21
  def init_audit_store
15
22
  return unless ::Mongoid::Auditor.config.enabled && ::Mongoid::Auditor.config.log_models
16
23
 
@@ -7,7 +7,7 @@ module Mongoid
7
7
 
8
8
  self.skip_audit = true
9
9
 
10
- queue_as :default
10
+ queue_as { ::Mongoid::Auditor.config.queue_name || :default }
11
11
 
12
12
  def perform(state, exception = nil, entry = nil)
13
13
  return unless config.enabled
@@ -15,6 +15,8 @@ module Mongoid
15
15
  case state.to_sym
16
16
  when :model
17
17
  log_model(entry)
18
+ when :models
19
+ log_models(entry)
18
20
  when :controller
19
21
  log_controller_error(exception, entry)
20
22
  else
@@ -35,6 +37,10 @@ module Mongoid
35
37
  Audit.log(entry) if config.log_models
36
38
  end
37
39
 
40
+ def log_models(entries)
41
+ Audit.log_many(entries) if config.log_models
42
+ end
43
+
38
44
  def log_controller_error(exception, entry)
39
45
  return unless config.log_controllers
40
46
 
@@ -50,7 +50,7 @@ module Mongoid
50
50
  def set_request_id
51
51
  return unless @current_job
52
52
 
53
- context = ::Mongoid::Auditor::RequestContext.find_by(job_id: @current_job.job_id)
53
+ context = ::Mongoid::Auditor::RequestContext.where(job_id: @current_job.job_id).first
54
54
  context&.request_id || "#{@current_job.class.name}-#{@current_job.job_id}"
55
55
  end
56
56
  end
@@ -13,7 +13,9 @@ module Mongoid
13
13
  end
14
14
 
15
15
  before_perform do |job|
16
- ::Mongoid::Auditor::Current.reset_all
16
+ # A job performed inline (perform_now) would otherwise drop the caller's buffered entries
17
+ ::Mongoid::Auditor::AuditBuffer.flush
18
+ ::Mongoid::Auditor::Current.reset
17
19
 
18
20
  request_id_from_context(job)
19
21
  init_job_audit_store(job) unless job.class.skip_audit
@@ -22,6 +24,8 @@ module Mongoid
22
24
  around_perform do |job, block|
23
25
  audit_job_exceptions(job, &block)
24
26
  clear_request_context(job)
27
+ ensure
28
+ ::Mongoid::Auditor::AuditBuffer.flush
25
29
  end
26
30
  end
27
31
 
@@ -37,7 +41,7 @@ module Mongoid
37
41
  end
38
42
 
39
43
  def request_id_from_context(job)
40
- context = ::Mongoid::Auditor::RequestContext.find_by(job_id: job.job_id)
44
+ context = ::Mongoid::Auditor::RequestContext.where(job_id: job.job_id).first
41
45
  ::Mongoid::Auditor::Current.request_id = context&.request_id
42
46
  end
43
47
 
@@ -7,6 +7,8 @@ module Mongoid
7
7
  include Mongoid::Timestamps
8
8
  include Mongoid::Auditor::AuditLogHelpers
9
9
 
10
+ EVENTS = %w[create update destroy error perform index show].freeze
11
+
10
12
  field :request_id, type: String
11
13
  field :actor, type: String
12
14
 
@@ -26,17 +28,19 @@ module Mongoid
26
28
  field :model_error, type: Hash, default: nil
27
29
 
28
30
  # Indexes for performance
29
- index({ request_id: 1 })
31
+ index({ request_id: 1, sequence: 1 })
30
32
  index({ model_type: 1, model_id: 1 })
31
- index({ model_type: 1, model_id: 1, event: 1 })
33
+ index({ model_type: 1, event: 1, created_at: -1 })
32
34
  index({ actor: 1 })
33
- index({ has_error: 1, created_at: -1 })
35
+ index({ has_error: 1, event: 1, created_at: -1 })
34
36
  index({ created_at: -1 })
35
- index({ request_id: 1, sequence: 1 })
36
37
 
37
38
  # Validations
38
39
  validates :request_id, presence: true
39
- validates :event, presence: true, inclusion: { in: %w[create update destroy error] }
40
+ # Error logs keep the controller action that failed as their event (e.g. `close`, `update_status`),
41
+ # so only regular entries are held to the fixed list.
42
+ validates :event, presence: true
43
+ validates :event, inclusion: { in: EVENTS }, unless: :has_error
40
44
  validates :sequence, presence: true, numericality: { only_integer: true }
41
45
 
42
46
  def model
@@ -50,17 +50,28 @@ module Mongoid
50
50
  audit_errors.where(actor: actor_id)
51
51
  end
52
52
 
53
- # Quick summary: class names and counts
53
+ # Quick summary: class names and counts via MongoDB aggregation
54
54
  def error_summary
55
- audit_errors.group_by { |log| log.error&.dig('class') || 'Unknown' }.transform_values(&:count)
55
+ aggregate_error_summary(audit_errors)
56
56
  end
57
57
 
58
58
  def error_summary_today
59
- errors_today.group_by { |log| log.error&.dig('class') || 'Unknown' }.transform_values(&:count)
59
+ aggregate_error_summary(errors_today)
60
60
  end
61
61
 
62
62
  def error_summary_last(days)
63
- errors_last(days).group_by { |log| log.error&.dig('class') || 'Unknown' }.transform_values(&:count)
63
+ aggregate_error_summary(errors_last(days))
64
+ end
65
+
66
+ private
67
+
68
+ def aggregate_error_summary(scope)
69
+ scope.collection.aggregate(
70
+ scope.pipeline +
71
+ [
72
+ { '$group' => { '_id' => { '$ifNull' => ['$error.class', 'Unknown'] }, 'count' => { '$sum' => 1 } } }
73
+ ]
74
+ ).to_h { |doc| [doc['_id'], doc['count']] }
64
75
  end
65
76
  end
66
77
  end
@@ -42,7 +42,11 @@ module Mongoid
42
42
  return if ::Mongoid::Auditor::Current.path.nil?
43
43
 
44
44
  entry = build_entry(event, before_attrs, after_attrs)
45
- ::Mongoid::Auditor::AuditorJob.perform_later(MODEL_AUDIT, nil, entry)
45
+ if ::Mongoid::Auditor::AuditBuffer.active?
46
+ ::Mongoid::Auditor::AuditBuffer.push(entry)
47
+ else
48
+ ::Mongoid::Auditor::AuditorJob.perform_later(MODEL_AUDIT, nil, entry)
49
+ end
46
50
  rescue StandardError => e
47
51
  logger&.error("Auditable#append_audit_entry failed for #{self.class.name}(#{id}): #{e.class} #{e.message}")
48
52
  end
@@ -46,7 +46,7 @@ module Mongoid
46
46
  end
47
47
 
48
48
  def today_time
49
- @today_time ||= Time.current.all_day
49
+ Time.current.all_day
50
50
  end
51
51
  end
52
52
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mongoid
4
4
  module Auditor
5
- VERSION = '0.1.1'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -5,15 +5,17 @@ require 'mongoid/auditor/configuration'
5
5
 
6
6
  require 'active_support/current_attributes'
7
7
  require 'mongoid/auditor/audit'
8
+ require 'mongoid/auditor/audit_buffer'
8
9
  require 'mongoid/auditor/railtie' if defined?(Rails)
9
10
 
10
11
  module Mongoid
11
12
  module Auditor
12
13
  class << self
13
- attr_accessor :config
14
+ def config
15
+ @config ||= Configuration.new
16
+ end
14
17
 
15
18
  def configure
16
- self.config ||= Configuration.new
17
19
  yield(config)
18
20
  end
19
21
  end
data/mise.toml ADDED
@@ -0,0 +1,2 @@
1
+ [tools]
2
+ ruby = "latest"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pralad Mishra
@@ -38,7 +38,7 @@ dependencies:
38
38
  version: '7.0'
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
- version: 8.1.1
41
+ version: '8.2'
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
@@ -48,7 +48,7 @@ dependencies:
48
48
  version: '7.0'
49
49
  - - "<"
50
50
  - !ruby/object:Gem::Version
51
- version: 8.1.1
51
+ version: '8.2'
52
52
  description: |2-
53
53
 
54
54
  Provides an easy way to track changes, creations, and errors across your Rails
@@ -61,6 +61,7 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
+ - ".github/dependabot.yml"
64
65
  - CHANGELOG.md
65
66
  - CODE_OF_CONDUCT.md
66
67
  - LICENSE.txt
@@ -68,6 +69,7 @@ files:
68
69
  - Rakefile
69
70
  - lib/mongoid/auditor.rb
70
71
  - lib/mongoid/auditor/audit.rb
72
+ - lib/mongoid/auditor/audit_buffer.rb
71
73
  - lib/mongoid/auditor/configuration.rb
72
74
  - lib/mongoid/auditor/generators/install_generator.rb
73
75
  - lib/mongoid/auditor/generators/templates/mongoid_auditor_initializer.rb
@@ -85,6 +87,7 @@ files:
85
87
  - lib/mongoid/auditor/helpers/models/request_context.rb
86
88
  - lib/mongoid/auditor/railtie.rb
87
89
  - lib/mongoid/auditor/version.rb
90
+ - mise.toml
88
91
  - sig/mongoid/auditor.rbs
89
92
  homepage: https://github.com/SELISEdigitalplatforms/l3-ruby-mongoid-auditor
90
93
  licenses: