flu-rails 8.0.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 721522defefd5f7c30f0cd24dd1773b6191cf93bc8162d791e349883dd91698f
4
- data.tar.gz: 3d5e0c52ddbffbdf5c021647a76460acde5726ca1201bda1022d21fdb3095a05
3
+ metadata.gz: 53b6a5973d48efbc23dc72483a46a4eba091d295a4f8bd3e1c927cd3d9c06671
4
+ data.tar.gz: c425c485c1f1dfe7e1c61382296c17b49108cf3a8b9a257df15e02ce6e96ff45
5
5
  SHA512:
6
- metadata.gz: 9965aef8635a94a1f2e8843253e3c8817b2b6b0f61f13b1f0137a1d555eb638c6e12d4f620c004e47f3365cec9fc9da57a2076e629f53ea11df045c21a0c0a27
7
- data.tar.gz: 5818a4c90e2b819a12483f9683a75119c33e6573b57e0952916a3cbd258dd6d0e536be85105efbb1b1415fafa105c5de9de478ae3976a06f12ab2f28a86203a8
6
+ metadata.gz: ec67a57f43091e09464f0d78444b224a2e76dd85c004c79d2d07a033ef5ca50cbc9882329e05a5b6d55c5d919d424fc6baa0435d2a96e5230142e50a3ba37029
7
+ data.tar.gz: eb021576551ca0f52d874a9f9c66d8cb71d5194e9e36867a38bcb220b8df6c9cf97ddef6b299419292d7592c5591851fb1221fba2b6fafa605e4a070ece475a6
data/CHANGELOG.md CHANGED
@@ -5,7 +5,11 @@ 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
- ### [Unreleased]
8
+ ### [8.0.3] - 2026-08-01
9
+
10
+ * Use `uuid_v7` as Event ID (requires Ruby 3.3)
11
+
12
+ ### [8.0.2] - 2026-08-01
9
13
 
10
14
  **Fixed**
11
15
 
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.1 -m "Version 8.0.1"
308
- $ git push origin v8.0.1
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
- Event.new(SecureRandom.uuid, final_emitter, kind, name, deep_camelize(data.except(:overriden_emitter)))
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)
@@ -1,3 +1,3 @@
1
1
  module Flu
2
- VERSION = "8.0.1"
2
+ VERSION = "8.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flu-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.1
4
+ version: 8.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loïc Vigneron