posthog-ruby 3.1.0 → 3.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c7c88ed8541cb75a430abfde7ec41a1df10253839b5bfaf4f92eb838b677860
4
- data.tar.gz: 6d4549bb4e56e3d95a28ed0f70b75c275d45a30a40b8aa09756a5bcef0edfd5b
3
+ metadata.gz: 47b1ce0c330a250b307dd757fa3024fcd516e8cf264576e52fde101c412d2e76
4
+ data.tar.gz: '08725cd78aab55aa87b70ebcf65a2a061b641cbab043a2df61552eff199cc534'
5
5
  SHA512:
6
- metadata.gz: eae21f85d2fd42612fc5aa7488db52cb7280f68a9bdb58bac1ead90f3c871ecb30d0195e2f211413fb2b6858846c0c5521da2e1c14d9833baf8128b5784370fb
7
- data.tar.gz: 1329afd21f70e229b2126dddbae1d19a69fef99494c073a0d01cffb6160ae6a79f0471e56f3886bfe5a80432415c0e3901f98c5d327f68f65a0f9ea6c18197f0
6
+ metadata.gz: 983808c3419cfab8772b3dbe175070d42dc10a357f1cb657bc36aa56389e867027e4c3ad3286d2d78eb2c232e2448f7190658beafcb846d2e5f72deb3d747d04
7
+ data.tar.gz: 92aab3899eb59d728170098b0b6ff62badffbcc890080c67eaf9657399f3de4f3c96d6241942ec1bf64b06bdc53e9dd588845a4c4cbe8b079759cbe51a71b0df
@@ -628,7 +628,8 @@ module PostHog
628
628
  end
629
629
 
630
630
  def _request_feature_flag_definitions
631
- uri = URI("#{@host}/api/feature_flag/local_evaluation?token=#{@project_api_key}")
631
+ uri = URI("#{@host}/api/feature_flag/local_evaluation")
632
+ uri.query = URI.encode_www_form([['token', @project_api_key]])
632
633
  req = Net::HTTP::Get.new(uri)
633
634
  req['Authorization'] = "Bearer #{@personal_api_key}"
634
635
 
@@ -646,7 +647,8 @@ module PostHog
646
647
  end
647
648
 
648
649
  def _request_remote_config_payload(flag_key)
649
- uri = URI("#{@host}/api/projects/@current/feature_flags/#{flag_key}/remote_config/")
650
+ uri = URI("#{@host}/api/projects/@current/feature_flags/#{flag_key}/remote_config")
651
+ uri.query = URI.encode_www_form([['token', @project_api_key]])
650
652
  req = Net::HTTP::Get.new(uri)
651
653
  req['Content-Type'] = 'application/json'
652
654
  req['Authorization'] = "Bearer #{@personal_api_key}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostHog
4
- VERSION = '3.1.0'
4
+ VERSION = '3.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posthog-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-07-24 00:00:00.000000000 Z
10
+ date: 2025-08-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: concurrent-ruby
@@ -55,7 +54,6 @@ licenses:
55
54
  - MIT
56
55
  metadata:
57
56
  rubygems_mfa_required: 'true'
58
- post_install_message:
59
57
  rdoc_options: []
60
58
  require_paths:
61
59
  - lib
@@ -70,8 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
68
  - !ruby/object:Gem::Version
71
69
  version: '0'
72
70
  requirements: []
73
- rubygems_version: 3.5.10
74
- signing_key:
71
+ rubygems_version: 3.6.6
75
72
  specification_version: 4
76
73
  summary: PostHog library
77
74
  test_files: []