mongoid-auditor 0.1.2 → 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 +4 -4
- data/.github/dependabot.yml +7 -0
- data/CHANGELOG.md +24 -1
- data/README.md +8 -2
- data/lib/mongoid/auditor/audit.rb +39 -10
- data/lib/mongoid/auditor/audit_buffer.rb +89 -0
- data/lib/mongoid/auditor/configuration.rb +5 -1
- data/lib/mongoid/auditor/helpers/controller_helpers/init_audit_log.rb +7 -0
- data/lib/mongoid/auditor/helpers/jobs/auditor_job.rb +6 -0
- data/lib/mongoid/auditor/helpers/jobs/concerns/auditable_job_error.rb +1 -1
- data/lib/mongoid/auditor/helpers/jobs/concerns/init_job_audit_log.rb +6 -2
- data/lib/mongoid/auditor/helpers/models/audit_log.rb +6 -1
- data/lib/mongoid/auditor/helpers/models/concerns/audit_log_helpers.rb +1 -3
- data/lib/mongoid/auditor/helpers/models/concerns/auditable.rb +5 -1
- data/lib/mongoid/auditor/version.rb +1 -1
- data/lib/mongoid/auditor.rb +1 -0
- data/mise.toml +2 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12346b391a9f93fae93802b2d9c07851f8819b45e3de9d9070d961545f047db9
|
|
4
|
+
data.tar.gz: 72e0f459222889480beb69dbce73beac063d2bb980bea02158c6f717e4503939
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cae1d1ba09fc35e240921421d0bf4ffb59e9f7f0622ab2ce9c73d2c31e89dd42e6e0bd240614c01644df38490dabdc0b8551ea416109bba3251a555546aaa43d
|
|
7
|
+
data.tar.gz: d5cd0b73820b3452133ac5f1cfb1b98a051ada0e56805730a622bf79149f2ae9c9741c89d2830898716ca134fd7cb4fcab3b65ef1c7b8f6d6e8d493da9f1f9e6
|
data/CHANGELOG.md
CHANGED
|
@@ -18,4 +18,27 @@
|
|
|
18
18
|
- Fixed stale `today_time` memoization on long-lived objects
|
|
19
19
|
|
|
20
20
|
### Changed
|
|
21
|
-
- Optimized indexes for better query coverage
|
|
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`, `error`, `perform`, `index`, or `show`.
|
|
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).
|
|
@@ -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` —
|
|
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:**
|
|
@@ -15,29 +15,58 @@ module Mongoid
|
|
|
15
15
|
log_error(e, entry)
|
|
16
16
|
end
|
|
17
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
|
+
|
|
18
25
|
def logger
|
|
19
26
|
defined?(Rails) ? Rails.logger : nil
|
|
20
27
|
end
|
|
21
28
|
|
|
22
29
|
private
|
|
23
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
|
+
|
|
24
56
|
def log_error(err, entry)
|
|
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)
|
|
25
63
|
entry = entry.is_a?(Hash) ? entry.with_indifferent_access : {}
|
|
26
|
-
|
|
27
|
-
request_id: entry[:request_id],
|
|
28
|
-
actor: entry[:actor],
|
|
29
|
-
path: entry[:path],
|
|
30
|
-
params: entry[:params],
|
|
31
|
-
model_type: entry[:model_type],
|
|
32
|
-
model_id: entry[:model_id],
|
|
64
|
+
%i[request_id actor path params model_type model_id sequence].index_with { |key| entry[key] }.merge(
|
|
33
65
|
has_error: true,
|
|
34
66
|
event: entry[:event] || 'error',
|
|
35
67
|
dirties: entry[:dirties] || {},
|
|
36
|
-
sequence: entry[:sequence],
|
|
37
68
|
error: error_data(err)
|
|
38
69
|
)
|
|
39
|
-
rescue StandardError => e
|
|
40
|
-
logger&.error("Auditor::Audit.log failed to persist error: #{e.class} #{e.message}\n#{e.backtrace&.take(5)&.join("\n")}")
|
|
41
70
|
end
|
|
42
71
|
|
|
43
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
|
-
|
|
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
|
|
@@ -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
|
|
|
@@ -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.
|
|
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
|
-
|
|
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.
|
|
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
|
|
|
@@ -35,7 +37,10 @@ module Mongoid
|
|
|
35
37
|
|
|
36
38
|
# Validations
|
|
37
39
|
validates :request_id, presence: true
|
|
38
|
-
|
|
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
|
|
39
44
|
validates :sequence, presence: true, numericality: { only_integer: true }
|
|
40
45
|
|
|
41
46
|
def model
|
|
@@ -71,9 +71,7 @@ module Mongoid
|
|
|
71
71
|
[
|
|
72
72
|
{ '$group' => { '_id' => { '$ifNull' => ['$error.class', 'Unknown'] }, 'count' => { '$sum' => 1 } } }
|
|
73
73
|
]
|
|
74
|
-
).
|
|
75
|
-
result[doc['_id']] = doc['count']
|
|
76
|
-
end
|
|
74
|
+
).to_h { |doc| [doc['_id'], doc['count']] }
|
|
77
75
|
end
|
|
78
76
|
end
|
|
79
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::
|
|
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
|
data/lib/mongoid/auditor.rb
CHANGED
data/mise.toml
ADDED
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.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pralad Mishra
|
|
@@ -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:
|