posthog-ruby 3.11.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 334d837a2faf144afce1125f198607af7d4078b34329c394df8e4e221bf1ab89
4
- data.tar.gz: 62c48db3c45c0a962294546c06b485ace4e4d6f40bd5178f6c393f61e4243344
3
+ metadata.gz: b8e287772525236ba5312d91e3a5e9c0f71ba079dbe90e73108dea39b1d02d73
4
+ data.tar.gz: d5f52b018111579ab218dbfeb3220b55bb8b4d953273ef4f216d07455578cc82
5
5
  SHA512:
6
- metadata.gz: 2e23767920c9f2169e45dfae59515e15bb17df9d6c69d08caaea786b4ee3a84f2e47aac6ac0f677b9193862eaf571c6657f1975142b749d8766fb49fcbf4c2c4
7
- data.tar.gz: 7e51f30ec5ff951e639ce97efba159fa63a419897b12b5ca6418149323fd7a2ae469bbca2ba13eb9fa02cf8071cf0e39453cd96282eaadf4bdf1331e4269ae6e
6
+ metadata.gz: cc598260671fd298d28335308a66f5b4b4472e6c38cfd0697198ef61942f9bd9118897dc6c6b6d0e4e163d568094520f0ce08f40579af7c7b0549e6a83c46369
7
+ data.tar.gz: 6227c32f2dd2c10f14c48953b4bc86e7ee7d4ddb0a7b04b28a8d5917e932a11c95f615d8ad21bdc1cb02ba6b01bd36a545c062cefb30b7201f32e55251a76120
@@ -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]
@@ -1242,7 +1242,7 @@ module PostHog
1242
1242
 
1243
1243
  # rubocop:disable Lint/ShadowedException
1244
1244
  def _request(uri, request_object, timeout = nil, include_etag: false)
1245
- request_object['User-Agent'] = "posthog-ruby#{PostHog::VERSION}"
1245
+ request_object['User-Agent'] = "posthog-ruby/#{PostHog::VERSION}"
1246
1246
  request_timeout = timeout || 10
1247
1247
 
1248
1248
  begin
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostHog
4
- VERSION = '3.11.0'
4
+ VERSION = '3.12.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posthog-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''