posthog-ruby 3.26.0 → 3.26.1
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/lib/posthog/client.rb +3 -2
- data/lib/posthog/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: 669accebe3e1d0205f2d74494765a7ac02aafc58ba2dc33f253628d8d0adfce0
|
|
4
|
+
data.tar.gz: 1a38ec678c23fc04922030b9c546374990d36d18c7e4c0a065b1bbf4b9d57748
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aea72b91211ee5539434b7a6e3131d75f93ae452c2b67c306ab90f13f6a1e009c0b07c7502391dc702632b177ce435b1f06a620909af8ff47bb33a32014e0eec
|
|
7
|
+
data.tar.gz: 2fe6f690c5dbc039543c40b1a8c79e550c0c4c10fffc8bf96a69e5a2ff268a3fd6f2f76b029625c5b742452b480e9cde92d7af88ef7f38984b64fc5bebe031ae
|
data/lib/posthog/client.rb
CHANGED
|
@@ -187,7 +187,8 @@ module PostHog
|
|
|
187
187
|
|
|
188
188
|
# Warn when multiple clients are created with the same API key (can cause dropped events)
|
|
189
189
|
unless @disabled || opts[:test_mode] || opts[:disable_singleton_warning]
|
|
190
|
-
previous_count =
|
|
190
|
+
previous_count = PostHog::Client._increment_instance_count(@api_key)
|
|
191
|
+
@instance_registered = true
|
|
191
192
|
if previous_count >= 1
|
|
192
193
|
logger.warn(
|
|
193
194
|
'Multiple PostHog client instances detected for the same API key. ' \
|
|
@@ -947,7 +948,7 @@ module PostHog
|
|
|
947
948
|
|
|
948
949
|
flushed = false
|
|
949
950
|
begin
|
|
950
|
-
|
|
951
|
+
PostHog::Client._decrement_instance_count(@api_key) if @instance_registered
|
|
951
952
|
@feature_flags_poller&.shutdown_poller
|
|
952
953
|
flushed =
|
|
953
954
|
if @sync_mode
|
data/lib/posthog/version.rb
CHANGED