posthog-ruby 3.11.1 → 3.12.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/lib/posthog/client.rb +8 -0
- 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: b8e287772525236ba5312d91e3a5e9c0f71ba079dbe90e73108dea39b1d02d73
|
|
4
|
+
data.tar.gz: d5f52b018111579ab218dbfeb3220b55bb8b4d953273ef4f216d07455578cc82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc598260671fd298d28335308a66f5b4b4472e6c38cfd0697198ef61942f9bd9118897dc6c6b6d0e4e163d568094520f0ce08f40579af7c7b0549e6a83c46369
|
|
7
|
+
data.tar.gz: 6227c32f2dd2c10f14c48953b4bc86e7ee7d4ddb0a7b04b28a8d5917e932a11c95f615d8ad21bdc1cb02ba6b01bd36a545c062cefb30b7201f32e55251a76120
|
data/lib/posthog/client.rb
CHANGED
|
@@ -745,6 +745,14 @@ module PostHog
|
|
|
745
745
|
@feature_flags_poller.load_feature_flags(true)
|
|
746
746
|
end
|
|
747
747
|
|
|
748
|
+
# Whether the client will actually send events. It is disabled when the
|
|
749
|
+
# api_key is missing or blank, in which case every capture call no-ops.
|
|
750
|
+
#
|
|
751
|
+
# @return [Boolean]
|
|
752
|
+
def enabled?
|
|
753
|
+
!@disabled
|
|
754
|
+
end
|
|
755
|
+
|
|
748
756
|
# Flush pending events and stop background resources.
|
|
749
757
|
#
|
|
750
758
|
# @return [void]
|
data/lib/posthog/version.rb
CHANGED