flu-rails 8.0.2 → 8.0.3
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/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/flu-rails/action_controller_extender.rb +3 -1
- data/lib/flu-rails/event_factory.rb +2 -1
- data/lib/flu-rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53b6a5973d48efbc23dc72483a46a4eba091d295a4f8bd3e1c927cd3d9c06671
|
|
4
|
+
data.tar.gz: c425c485c1f1dfe7e1c61382296c17b49108cf3a8b9a257df15e02ce6e96ff45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec67a57f43091e09464f0d78444b224a2e76dd85c004c79d2d07a033ef5ca50cbc9882329e05a5b6d55c5d919d424fc6baa0435d2a96e5230142e50a3ba37029
|
|
7
|
+
data.tar.gz: eb021576551ca0f52d874a9f9c66d8cb71d5194e9e36867a38bcb220b8df6c9cf97ddef6b299419292d7592c5591851fb1221fba2b6fafa605e4a070ece475a6
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
### [8.0.3] - 2026-08-01
|
|
9
|
+
|
|
10
|
+
* Use `uuid_v7` as Event ID (requires Ruby 3.3)
|
|
11
|
+
|
|
8
12
|
### [8.0.2] - 2026-08-01
|
|
9
13
|
|
|
10
14
|
**Fixed**
|
data/README.md
CHANGED
|
@@ -304,8 +304,8 @@ scoped RubyGems credential.
|
|
|
304
304
|
3. Tag the commit and push the tag:
|
|
305
305
|
|
|
306
306
|
```
|
|
307
|
-
$ git tag -a v8.0.
|
|
308
|
-
$ git push origin v8.0.
|
|
307
|
+
$ git tag -a v8.0.3 -m "Version 8.0.3"
|
|
308
|
+
$ git push origin v8.0.3
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
The workflow then checks that the tag matches `Flu::VERSION`, runs the tests, builds the gem
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
require "active_support/core_ext/string/inflections"
|
|
2
2
|
require "active_support/core_ext/time/zones"
|
|
3
|
+
require "random/formatter"
|
|
4
|
+
require "securerandom"
|
|
3
5
|
|
|
4
6
|
module Flu
|
|
5
7
|
class ActionControllerExtender
|
|
@@ -28,7 +30,7 @@ module Flu
|
|
|
28
30
|
# landed on ActionController::Base itself, leaking onto every controller of the host
|
|
29
31
|
# application. Here 'self' is the class calling 'track_requests', which is where they belong.
|
|
30
32
|
define_method(:flu_define_request_id) do
|
|
31
|
-
request_id = SecureRandom.uuid
|
|
33
|
+
request_id = Random.respond_to?(:uuid_v7) ? Random.uuid_v7 : SecureRandom.uuid
|
|
32
34
|
@flu_request_id = request_id
|
|
33
35
|
Flu::CoreExt.flu_tracker_request_id = request_id
|
|
34
36
|
end
|
|
@@ -50,7 +50,8 @@ module Flu
|
|
|
50
50
|
final_emitter = overriden_emitter.blank? ? original_emitter : overriden_emitter
|
|
51
51
|
# 'overriden_emitter' selects the emitter of the event, it is not part of what is tracked:
|
|
52
52
|
# it is dropped from the payload instead of being published as an 'overridenEmitter' key.
|
|
53
|
-
|
|
53
|
+
uuid = Random.respond_to?(:uuid_v7) ? Random.uuid_v7 : SecureRandom.uuid
|
|
54
|
+
Event.new(uuid, final_emitter, kind, name, deep_camelize(data.except(:overriden_emitter)))
|
|
54
55
|
end
|
|
55
56
|
|
|
56
57
|
def create_data_from_entity_changes(action_name, entity, request_id, request_entity_metadata, changes, user_metadata_lambda, association_columns, ignored_model_changes, flu_overriden_emitter_lambda)
|
data/lib/flu-rails/version.rb
CHANGED